PMCC and Correlation (AA HL)

Pearson's product-moment correlation coefficient rr measures the strength and direction of a linear relationship, with −1≤r≤1-1\le r\le1. Find rr using technology, then describe it: the sign gives the direction and the size of |r||r| gives the strength. It also covers why correlation does not prove causation. It's part of the broader Bivariate Statistics topic.

14 questions on this sub-topic.

Syllabus

CodeSyllabus content
SL4.4Linear correlation of bivariate data; Pearson's product-moment correlation coefficient rr, found using technology. Scatter diagrams; lines of best fit by eye, through the mean point. Distinction between correlation and causation. Equation of the regression line of yy on xx, and use for prediction, including the dangers of extrapolation. Interpreting the parameters aa and bb in y=ax+by=ax+b.

Official IB source: Mathematics: analysis and approaches subject brief (PDF, ibo.org).

Skills practised on this page:

Interpreting r

Pearson's correlation coefficient

r=SxySxxSyyr=\dfrac{S_{xy}}{\sqrt{S_{xx}S_{yy}}}

On the formula booklet, but always found using technology in practice: rr close to ±1\pm1 means a strong linear correlation, rr close to 00 means little or none.

Correlation vs causation

A strong rr never proves one variable causes the other - a third factor could be driving both, or the link could be coincidental.

Need the full syllabus wording and the wider statistics formula table? See Bivariate Statistics. For calculator steps, see the parent topic's GDC guidance.

Key terms

What does the sign of rr tell you?

A positive rr means yy tends to increase as xx increases. A negative rr means yy tends to decrease as xx increases.

e.g. r=−0.7r=-0.7 shows that as xx increases, yy tends to decrease.

What does the size of |r||r| tell you?

The closer |r||r| is to 11, the stronger the linear relationship, and the closer to 00, the weaker it is. The sign does not affect the strength.

e.g. r=−0.9r=-0.9 shows a stronger linear relationship than r=0.5r=0.5, because |−0.9|>|0.5||-0.9|>|0.5|.

What is a confounding variable?

A confounding variable is a third variable that influences both of the quantities being compared. It can produce a correlation between them even though neither causes the other.

e.g. Daily temperature can raise both the number of people swimming and the number of sunburn cases, so these two correlate without either causing the other.

Why should you look at the scatter diagram as well as rr?

rr only measures how well the points fit a straight line. A scatter diagram shows curved patterns and outliers that rr alone can hide.

e.g. The points (x,x2)(x,x^2) for x=−3,−2,−1,0,1,2,3x=-3,-2,-1,0,1,2,3 lie exactly on a curve, yet r=0r=0.

Worked examples

1
Easy
No calc
[3 marks]

Two quantities have Pearson’s product-moment correlation coefficient r=−0.85r=-0.85.

(a) Describe the linear relationship.

(b) State what r=0r=0 would indicate.

Worked solution

(a) Strong A1
negative linear correlation. A1

(b) No linear correlation between the variables. A1

A1 Strong A1 Negative A1 No linear correlation
2
Medium
No calc
[3 marks]

A study finds a strong positive correlation between ice-cream sales and drowning incidents.

(a) Suggest a confounding variable.
(b) Explain how it produces the correlation without direct causation.

Worked solution

(a) Hot weather (temperature). A1

(b) Higher temperatures increase both ice-cream sales and swimming (hence drownings), R1
This produces a correlation between the variables without either one causing the other. A1

A1 Confounding variable R1 Common cause mechanism A1 Explanation, no direct causation
3
Hard
No calc
[2 marks]

A scatter plot shows a strong positive trend except for one point far below.

Describe the effect of this outlier on r.r.

Worked solution

The outlier lies far off the otherwise tight trend, weakening the linear fit. R1
This reduces the magnitude of rr (closer to 0). R1

R1 Effect on fit R1 Magnitude of rr

Common mistakes

  • Treating correlation as causation. A strong rr shows two variables move together, not that one causes the other - a third factor, or coincidence, could explain the pattern.
  • Confusing the sign of rr with its strength. r=−0.9r=-0.9 is a stronger correlation than r=0.3r=0.3, even though it's negative - strength is about how close |r||r| is to 11, not about the sign.
  • Ignoring outliers when judging rr. A single far-off point can pull rr noticeably towards 00 even when the rest of the data shows a tight linear trend, so a low rr doesn't always mean "no relationship".

Using your GDC

Every step below is a real button sequence, not a vague "use your calculator" hint - covering the TI-84 Plus, TI-Nspire, and Casio fx-9860/fx-CG50. Pick your model to filter down to just the steps that apply to you.

Show steps for:
Linear regression (line of best fit) and r

Gives the regression line and the correlation coefficient in one step - the core skill for this whole topic.

  1. Enter x-values in one list and y-values in another.
  2. Turn on DiagnosticOn once (2nd → CATALOG) so rr appears; then STAT → CALC → 4:LinReg(ax+b), set Xlist and Ylist, Calculate.TI-84
  3. Calculator page → menu → Statistics → Stat Calculations → Linear Regression (mx+b).Nspire
  4. Statistics menu → CALC (F2) → REG (F3) → X (linear); rr shows automatically.Casio
  5. Read aa (gradient), bb (intercept), rr (correlation) and r2r^2 (coefficient of determination).
  6. Use the equation to predict - but only within the data range (interpolation).

Tip: rr near ±1\pm1 means a strong linear fit; near 00 means weak. r2r^2 is the proportion of variation explained.

Build and manipulate lists

Lists let you store paired data sets without re-entering values - essential for setting up xx and yy columns before running a regression.

  1. Enter data manually: go to the list editor and type xx-values and yy-values into two separate lists.
  2. 2nd → STAT (LIST) → OPS lets you sort or clear a list. Use L1 for xx, L2 for yy, and reference both together in LinReg.TI-84
  3. In a Lists & Spreadsheet page, use two named columns for xx and yy so both are available together for regression.Nspire
  4. In Statistics list editor, enter xx-values in List 1 and yy-values in List 2 before running REG.Casio
  5. Keep the xx and yy lists the same length and in matching pairs - a mismatched row shifts every pair after it.

Tip: Double-check the lists are paired correctly before running a regression - a single mistyped value can shift rr noticeably.

See the full GDC guide for more calculator models and topics.

Quick questions

What does Pearson's correlation coefficient r measure?

rr measures the strength and direction of the linear relationship between two variables, ranging from −1-1 (perfect negative) to +1+1 (perfect positive), with 00 meaning no linear correlation.

Does a strong correlation mean one variable causes the other?

No. A strong rr only shows the two variables move together - it never proves causation, since a third (confounding) factor could be driving both, or the pattern could be coincidental.

What does r = 1 or r = -1 mean?

Every point lies exactly on a straight line. The line has a positive gradient when r=1r=1 and a negative gradient when r=−1r=-1.

Can r be greater than 1?

No, rr always lies between −1-1 and 11 inclusive. A value outside this range means there has been a mistake in the calculation.

Do outliers affect the value of r?

Yes, a single outlier can raise or lower rr noticeably. Check the scatter diagram and comment on any outlier before interpreting rr.

Ready to practise properly?

14 correlation questions, marked instantly like the real exam.