Correlation

Definitionnoun

What is correlation in math?

Correlation is a measure of how strongly two variables move together in a straight-line pattern. In a positive correlation both rise together; in a negative correlation one rises as the other falls. The correlation coefficient r runs from −1 to 1: values near ± 1 are strong and values near 0 are weak. Correlation does not prove causation.

In Spanish
correlación
Also called
correlation coefficient, r value, association, linear correlation
How to say it
kor-uh-LAY-shun
Grade level
6-8
Grade 8Algebra 1StatisticsCCSS 8.SP.A.1CCSS HSS-ID.C.8CCSS HSS-ID.C.9SATACTGEDHiSETAP

Correlation in a picture

Positive, negative and no correlationThree scatter plots. Left: points rise from lower left to upper right, positive correlation, r about 0.89. Middle: points fall from upper left to lower right, negative correlation, r about negative 0.99. Right: points scattered with no trend, no correlation, r about negative 0.02.positiver ≈ 0.89as x grows, y growsnegativer ≈ −0.99as x grows, y fallsno correlationr ≈ −0.02no up or down trendr is between −1 and 1; closer to ±1 means stronger.A strong correlation does not prove causation.
The direction of the cloud gives the sign of r, and how tightly it hugs a line gives the size of r.

Formal definition and notation

For paired data (x1, y1), …, (xn, yn), the Pearson correlation coefficient r (formula below) is the sum of the products of the paired deviations from the means, divided by the square root of the product of the two sums of squared deviations, and always satisfies −1 ≤ r ≤ 1. The sign of r matches the sign of the slope of the least-squares line, and |r| measures how closely the points in the scatter plot cluster around that line. r = ± 1 only when every point lies exactly on a line. r measures linear association only, and it has no units.

Symbol Read it as Meaning
r r the correlation coefficient of a sample
r2 r squared the coefficient of determination: the share of the variation in y explained by the line

Key facts

  • Positive: r > 0, the points trend up. Negative: r < 0, the points trend down. None: r near 0, no linear trend.
  • The sign shows direction and the size shows strength: r = −0.9 is a stronger correlation than r = 0.6.
  • r measures only straight-line patterns. Points on a U-shaped curve can have r = 0 and still be closely related.
  • One outlier can raise or lower r a lot, so always look at the scatter plot.
  • Correlation is not causation. Ice cream sales and sunburns rise together because both increase in hot weather, a lurking (confounding) variable.

Correlation coefficient formula

Correlation coefficient formula
r = Σ (x − x)(y − y)√Σ (x − x)2 · Σ (y − y)2
x, y
the means of the x-values and of the y-values
Σ
add over every data pair
r
a number from −1 to 1 with no units

Calculators and spreadsheets (CORREL) compute r for you. A common rough guide: |r| above 0.7 is strong, 0.3 to 0.7 moderate, below 0.3 weak.

Correlation examples, step by step

Example 1: A perfect correlation

Warm-up

The points (1, 8), (2, 6), (3, 4) and (4, 2) are plotted. Describe the correlation and give r.

  1. As x goes up by 1, y goes down by 2 every time.
  2. So every point lies on one straight line that falls to the right.
  3. A perfect downward line has r = −1.

Answer: A perfect negative correlation, r = −1.

Example 2: Compute r by hand

Core

Find r for the data x: 1, 2, 3, 4, 5 and y: 2, 4, 5, 4, 5.

  1. Means: x = 3 and y = 4.
  2. Deviations: x gives −2, −1, 0, 1, 2; y gives −2, 0, 1, 0, 1.
  3. Sum of products: 4 + 0 + 0 + 0 + 2 = 6. Sums of squares: 10 for x and 6 for y.
  4. r = 6√10 · 6, which is 6√60 ≈ 0.77.

Answer: r ≈ 0.77, a fairly strong positive correlation.

Example 3: Related, but r = 0

Test-style

The points (−2, 4), (−1, 1), (0, 0), (1, 1), (2, 4) all lie on y = x2. A student finds r = 0 and says x and y are not related. Is that right?

  1. x = 0 and y = 2.
  2. Products of deviations: (−2)(2) + (−1)(−1) + 0(−2) + 1(−1) + 2(2) = 0, so r = 0.
  3. But every y is exactly x2: the relationship is perfect, just not a straight line.
  4. r measures only linear association.

Answer: No. r = 0 only means there is no straight-line trend; y is completely determined by x through y = x2.

Common mistakes

✗ MistakeConcluding from r = 0.8 between hours of TV and test scores that TV raises scores.
✓ InsteadSay the two variables are positively associated; only a controlled experiment can show that one causes the other.

A third, lurking variable or plain coincidence can produce a correlation.

✗ MistakeSaying r = −0.9 is weak because it is negative.
✓ Insteadr = −0.9 is strong; the minus sign only means y falls as x rises.

Strength is the distance from 0, the absolute value |r|; the sign is direction.

✗ MistakeReading r = 1 as “the slope is 1”.
✓ Insteadr = 1 means every point is on a rising line, whatever its slope: (1, 10), (2, 30), (3, 50) has r = 1 and slope 20.

r measures how tightly the points fit a line, not how steep the line is.

Not to be confused with

Correlationvs.Causation

Causation means one variable changes the other. Correlation only says they move together; shoe size and reading level are correlated in children because both grow with age.

Correlationvs.Slope

Slope is how steep the line of best fit is (in units of y per unit of x); r is how closely points follow it and has no units.

Correlationvs.Scatter plot

A scatter plot is the graph of the paired data; correlation is the pattern or the number r that describes it.

Quick check: 3 questions

Question 1 of 3

Which correlation coefficient shows the strongest linear relationship?

Show answer and explanation

Answer: D. Strength is how close |r| is to 1: |−0.92| = 0.92 is the largest. Choosing 0.65 treats positive as stronger, which is not how r works.

Question 2 of 3

What is r for the points (1, 3), (2, 5), (3, 7)?

Show answer and explanation

Answer: B. All three points lie on the rising line y = 2x + 1, so r = 1. 2 is the slope, which is not r; −1 would need a falling line; 0 means no trend.

Question 3 of 3

Among children aged 5 to 12, shoe size and reading score have r = 0.8. What is the best conclusion?

Show answer and explanation

Answer: C. A strong correlation can come from a third variable that drives both. Age explains both measures, so neither causes the other; the data can be correct.

Correlation: frequently asked questions

What does a correlation of 0 mean?

It means there is no straight-line trend: knowing x does not help you predict y with a line. It does not always mean the variables are unrelated. Points on a U-shaped curve, like y = x2 for x from −2 to 2, can have r = 0 even though y is completely determined by x.

Is a negative correlation bad?

No. Negative only describes direction: as one variable goes up, the other goes down. Outdoor temperature and heating cost have a negative correlation, and that is simply how they behave. A correlation of −0.9 is just as strong as 0.9, only in the opposite direction.

Why does correlation not imply causation?

Two variables can rise and fall together because a third variable drives both, because of coincidence, or because the cause runs the other way. Ice cream sales and swimming accidents both rise in summer heat. To show cause and effect, researchers use randomized experiments that control the other variables.

Practice and tools

Sources

  1. OpenStax, Introductory Statistics 2e, 12.3 The Regression Equation
  2. OpenStax, Introductory Statistics 2e, 12.2 Scatter Plots
  3. Common Core State Standards, High School Statistics: Interpreting Data (S-ID.C.8, S-ID.C.9)
  4. Common Core State Standards, Grade 8 Statistics and Probability (8.SP.A.1)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 8.SP.A.1, CCSS HSS-ID.C.8, CCSS HSS-ID.C.9

Cite this entry

Effortless Math Team. “Correlation.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/correlation/

Flashcard

TermCorrelationhow two variables move together
DefinitionHow strongly two variables follow a straight-line trend. r from −1 to 1: r = 0.9 strong positive, r = 0 none. Not causation.
Study the full deck

Browse all terms in the Math Dictionary · More statistics terms · Random term