Reference material for CORR
NULL
- that input row is ignored.
Parameter | Description | Supported input types |
---|---|---|
<expr1> | First numeric expression to use for correlation computation. | DOUBLE PRECISION |
<expr2> | Second numeric expression to use for correlation computation. | DOUBLE PRECISION |
CORR
returns a result of type DOUBLE PRECISION
.
PlayStats
table from the sample UltraFast
database.
Example
The CurrentLevel
and CurrentScore
variables are highly correlated, hence the result is very close to 1
.
0.9923304711897516
Example
But CurrentLevel
and CurrentScore
variables are not correlated at all, hence the result is very close to 0
.
0.0001599550562936943