Forecasting and statistics

Correlation

A measure, between −1 and +1, of how closely two quantities move together.

Key points

  • Close to +1: they rise and fall together; close to −1: when one rises the other falls; close to 0: no linear relation.
  • The usual coefficient (Pearson) measures straight-line relations only.
  • A few extreme values can create or hide a correlation.

Formula

r = covariance(X, Y) ÷ (standard deviation of X × standard deviation of Y)

Illustrative example

Over 24 months, a shop’s online advertising spend and the number of website visits have a correlation of 0.8: months with more advertising usually have more visits. Correlation does not say how many visits one more leu brings; that needs a regression and, ideally, a test.

The company and figures in the example are illustrative.

Common mistakes

  • Concluding that one causes the other.
  • Computing correlation on very few data points.
  • Ignoring relations that are not straight lines (for example, an effect that levels off).

Read more

Related terms

Correlation vs causation · Leading indicator · Forecast drivers · Regression and R-squared

← All glossary terms