CORR Function | Pearson Correlation Coefficient | VantageCloud Lake - CORR - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

Returns the Sample Pearson product moment correlation coefficient of its arguments for all non-null data point pairs.

For the CORR window function that performs a group, cumulative, or moving computation, see Window Aggregate Functions.

Sample Pearson Product Moment Correlation Coefficient

The Sample Pearson product moment correlation coefficient is a measure of the linear association between variables. The boundary on the computed coefficient ranges from -1.00 to +1.00.

High correlation does not imply a causal relationship between the variables.

The following table indicates the meaning of four extreme values for the coefficient of correlation between two variables.

Correlation Coefficient Association between Variables
-1.00 Perfectly linear, but inverse.

As the value for y varies, the value for x varies identically in the opposite direction.

0 Nonexistent (uncorrelated).
+1.00 Perfectly linear.

As the value for y varies, the value for x varies identically in the same direction.

NULL Cannot be measured because there are no non-null data point pairs in the data used for the computation.

ANSI Compliance

This statement is ANSI SQL:2011 compliant.