Correlation Formula

Correlation measures the strength and direction of the linear relationship between two quantitative variables, ranging from -1 to +1.

The Formula

−1≤r≤1

Ask yourself: Do the dots show a direction and tightness of pattern?

Quick example

Height and weight: r≈0.7 (positive). Temperature and heating bill: r<0 (negative).

Notation

r summarizes direction and strength for a roughly linear association.

What this formula means

Correlation measures the strength and direction of the linear relationship between two quantitative variables, ranging from −1 to +1.

Two correlated variables are like two dancers. With positive correlation, when one steps forward the other usually steps forward too; with negative, one steps back as the other steps forward. The tighter they stay in step, the closer r is to 1 or −1. Dancing in step does not tell you who is leading, or whether both are just following the music.

Formal view

r=1n−1∑i=1n(xi−xˉsx)(yi−yˉsy) where −1≤r≤1

Worked examples

Example 1

medium
Given five data points (1,2),(2,4),(3,5),(4,4),(5,5), compute the Pearson correlation coefficient r.
Show solution

Answer

r≈0.775

First step

1.
Compute means: xˉ=3, yˉ=4.

See the full worked solution + why-it-works coaching

SetupKey insightWhy it worksCommon pitfallConnection

Free: full solutions on 3 topics a day. No card.

Every topic, every day: the Family plan

Example 2

easy
A study finds r=−0.85 between hours of TV watched per day and exam scores. Interpret this value.

Example 3

medium
Scatterplot shows data tightly clustered around a flat horizontal trend. Estimate r.

Common mistakes

  • Saying correlation proves causation — association alone is not proof of cause.
  • Calling any upward pattern strong — strength depends on how tightly dots cluster around the trend.
  • Using correlation with categorical data — correlation needs paired numerical variables.

Why this formula matters

Correlation puts a number on a pattern you can see: r=0.9 means the dots hug a rising line, r=−0.2 means a weak, slightly falling cloud. Without it, people call any upward drift 'strong'. Knowing its limits matters as much: ice cream sales and sunburns are correlated because both rise in hot weather, not because ice cream causes sunburn.

Frequently asked questions

What is the Correlation formula?

Correlation measures the strength and direction of the linear relationship between two quantitative variables, ranging from −1 to +1.

How do you use the Correlation formula?

Use correlation when each person or thing has two numerical measurements and the question asks whether they go together, in which direction, and how strongly. Draw the scatter plot first; correlation summarizes what it shows. If the data are categories (favorite color, type of pet), a two-way table fits instead. If the question asks whether one thing causes the other, correlation alone cannot answer it; that needs an experiment.

What do the symbols mean in the Correlation formula?

r summarizes direction and strength for a roughly linear association.

Why is the Correlation formula important in Math?

Correlation puts a number on a pattern you can see: r=0.9 means the dots hug a rising line, r=−0.2 means a weak, slightly falling cloud. Without it, people call any upward drift 'strong'. Knowing its limits matters as much: ice cream sales and sunburns are correlated because both rise in hot weather, not because ice cream causes sunburn.

What do students get wrong about Correlation?

The procedure for correlation is the easy part; the trap is saying correlation proves causation. Asking "Do the dots show a direction and tightness of pattern?" first is what keeps a correct-looking calculation from being attached to the wrong concept.

What should I learn before the Correlation formula?

Before studying the Correlation formula, you should understand: mean, standard deviation.