CCalclabhub

Statistics

Correlation from covariance

Dividing by both standard deviations removes the units and produces a dimensionless measure of linear association between minus one and one.

Last updated

The Formula

r = Cov(X,Y) / (sX sY)

Dividing by both standard deviations removes the units and produces a dimensionless measure of linear association between minus one and one.

SymbolMeaning
rCorrelation coefficient
Cov(X,Y)Covariance of the two variables
sX, sYStandard deviations of each variable

What Each Symbol Means

rdimensionless

Correlation coefficient

Standardised covariance, comparable across datasets with different units.

Cov(X,Y)x units times y units

Covariance of the two variables

The unstandardised joint variation in the numerator.

sX, sYsame as each variable

Standard deviations of each variable

Their product rescales covariance back to a pure number.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate the covariance page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate The Covariance, filed under Math. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Correlation from covariance?

The formula for Correlation from covariance is r = Cov(X,Y) / (sX sY). Dividing by both standard deviations removes the units and produces a dimensionless measure of linear association between minus one and one.

What does each symbol in Correlation from covariance stand for?

r is correlation coefficient; Cov(X,Y) is covariance of the two variables; sX, sY is standard deviations of each variable.

What units should I use with Correlation from covariance?

Substitute r in dimensionless, Cov(X,Y) in x units times y units, sX, sY in same as each variable. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Correlation from covariance?

Reading the size as a strength without checking units. A covariance of 1.2 is not weak or strong in any absolute sense, because the number scales with the units of both variables. Rescaling one variable changes the figure even though the relationship has not changed. Standardise to a correlation if you need a comparable strength.