In simple terms
A friendly intro before the formal notes — no formulas yet.
Finding Patterns in Paired Data
This topic is about examining pairs of measurements to see whether they are connected. A scatter diagram shows the pattern by eye, the number measures how strong and in which direction a straight-line pattern is, and the regression line turns that pattern into an equation you can predict with.
Imagine tracking how many hours you study for each maths test and the score you get. You'd expect more study to go with higher scores. Bivariate analysis plots those pairs (hours, score) as points, spots that they rise roughly along a line, and then draws that 'line of best fit'. You can read off a predicted score for 7 hours of study — but you should be wary of predicting the score for 40 hours, which is far beyond anything you have actually observed.
- 1
Plot the two variables on a scatter diagram to see whether the relationship looks positive, negative, or absent, and how tightly the points cluster.
- 2
Enter the data into your GDC and read off Pearson's . Its sign gives the direction; how close is to gives the strength.
- 3
If the correlation supports it, read the regression line from the GDC — this models the trend.
- 4
Substitute an -value to predict , and check whether that lies inside the data range (interpolation, reliable) or outside it (extrapolation, unreliable).
Explore the concept
Use the live diagram, PhET or GeoGebra sim, and synced steps — play it, drag controls, or tap a step.
Step 1
Plot the two variables on a scatter diagram to see whether the relationship looks positive, negative, or absent, and how tightly the points cluster.
Key formulas
Tap any symbol to reveal exactly what it means and its units.
Full topic notes
Formal explanation with the rigour you need for the exam.
Visualising relationships: scatter diagrams
The first step is always a scatter diagram: plot each data pair as a point . The independent (explanatory) variable goes on the horizontal axis and the dependent (response) variable on the vertical axis. From the cloud of points you read off two things at once. The direction is positive if the points trend upwards (as increases, increases), negative if they trend downwards, and there is no correlation if they scatter with no slope. The strength is how tightly the points hug a straight line — the closer they are to lying on one line, the stronger the correlation. A scatter diagram also exposes outliers and shows whether the pattern is linear at all; a strong U-shaped curve, for instance, is a real relationship that a straight-line measure will miss.
Direction: positive (upward trend), negative (downward trend), or none.
Strength: how closely the points cluster around a straight line — tight = strong, loose = weak.
Form: check the pattern is roughly linear before trusting or a regression line; a curved pattern needs a different model.
Outliers: single points far from the trend can distort both and the regression line — always look for them.
Quantifying correlation: Pearson's coefficient $r$
A scatter diagram is a judgement by eye; Pearson's product-moment correlation coefficient turns it into a single number. Your GDC computes it from the two data lists. It always lies in the range . The sign gives the direction — positive for a positive correlation, negative for a negative one — and the size of gives the strength: the closer is to , the more nearly the points lie on a straight line, while near means little or no LINEAR relationship. Two cautions matter for full marks. First, only measures LINEAR association: a data set curving strongly can have close to yet be tightly related. Second, a large shows association, not cause — correlation is never, by itself, evidence of causation.
: perfect positive linear correlation; : perfect negative linear correlation.
: strong linear correlation.
: moderate linear correlation.
: weak linear correlation.
: very weak or no linear correlation.
The sign of shows the direction; shows the strength; says nothing about causation or about non-linear patterns.
The least-squares regression line of $y$ on $x$
If the linear correlation is strong enough to justify it, we model the relationship with the least-squares regression line — the line for which the total of the squared VERTICAL distances from the data points to the line is as small as possible. The IB formula booklet writes it as:
y = ax + b
where is the gradient and is the -intercept, both produced by your GDC. This is the regression line of ON : it is built to predict from a given , so substitute an -value to obtain a predicted . Two facts are worth carrying into every question. First, the sign of the gradient always matches the sign of . Second — a guaranteed property — the line always passes through the mean point , so if a question hands you both means, you know one exact point on the line, and you can use it as a check on the GDC output.
The line of on predicts from — not the other way round.
The gradient is the predicted change in per unit increase in ; its sign matches the sign of .
The intercept is the predicted at , which may be meaningless in context.
The line always passes through the mean point .
Write down the unrounded and from the calculator before rounding the equation to 3 significant figures, and use those unrounded values for any prediction. When you are asked to comment on a prediction's reliability, decide interpolation versus extrapolation and state it explicitly — that sentence is usually where the mark is awarded.
Prediction: interpolation versus extrapolation
The whole value of the regression line is prediction, but not every prediction deserves the same trust. Interpolation means substituting an -value that lies INSIDE the range of the original data; the line was established across exactly that range, so the estimate is generally reliable. Extrapolation means substituting an -value OUTSIDE the data range; the line simply continues its straight trend into territory where no data was ever collected, and there is no guarantee the real relationship stays linear — or stays at all. This is why extrapolation is treated as unreliable and is a favourite examiner target. A model that fits perfectly across observed temperatures may predict, if pushed far enough, a negative number of sales, which is nonsense. Whenever you predict, look at the data range first and name which side of it your -value falls on.
Interpolation — inside the data range — generally reliable.
Extrapolation — outside the data range — generally unreliable.
Justify reliability by comparing the prediction's -value with the smallest and largest in the data.
Far extrapolation can give physically impossible answers (e.g. negative counts), a sign the model has been pushed too far.
Using the GDC efficiently
On Paper 2 the GDC produces , and together from one linear-regression command, so the routine is always the same: enter the explanatory variable in the first list and the response variable in the second, run the regression, and read off the three numbers. Keep the full-precision and — either leave them on screen or store them in memory — and only round the values you actually write as final answers. A quick reliability check on the whole set-up: because the line passes through , substituting the mean of your -list should return (very close to) the mean of your -list. If it does not, the lists were probably entered in the wrong order or a value was mistyped.
Common mistakes examiners penalise
Reading near as 'no relationship' — it only rules out a LINEAR one; a strong curve can give . Always look at the scatter diagram.
Claiming causation from a strong — a large shows association only. Do not say causes without separate justification; watch for a lurking variable.
Extrapolating without flagging it — predicting outside the data range is unreliable, and the mark is for saying so explicitly, not for producing a number.
Using the wrong regression line — the line of on predicts from ; do not use it to predict an from a given .
Rounding and before predicting — substitute the FULL unrounded values, then round only the final answer, normally to 3 s.f.; premature rounding can miss the accepted range.
Misreading the GDC output — check which value is the gradient and which is the intercept before writing ; the calculator may list them as .
Forgetting the mean point — the line must pass through ; ignoring this loses an easy check and sometimes an easy mark.
Model answer — marked the way our engine marks it
On Paper 2 the marks are analytic: each is tied to a specific line of working — a method mark (M) for the correct approach or an accuracy mark (A) for a correct value that DEPENDS on that method being right. Follow-through (FT) means a correct step built on an earlier slip can still score, 'ISW' (ignore subsequent working) means a correct answer is not un-done by extra scribble, and equivalent forms and correctly-rounded values are accepted. But that protection only exists if the method is on the page. Study how each of the 5 marks below is earned by a specific line — the interpretation, the substitution, the value, and the two-part reliability judgement.
Where this leads
Correlation and regression are your first models of a relationship between two variables, and the habits they teach carry forward: describe before you compute, let the GDC do arithmetic while you own the interpretation, and always ask whether a prediction sits inside the evidence. The same caution about extrapolation reappears wherever any model is used to forecast, and the idea that a summary number can hide a non-linear reality is a theme throughout statistics. Master the routine — scatter first, interpret with sign and strength, read the line, predict only with a reliability check — and bivariate questions become a fixed, high-scoring method you already own.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A café owner records the number of hot chocolates sold, , and the average daily temperature (°C), , for 8 days.
| Temp (°C), | 18 | 15 | 12 | 10 | 8 | 5 | 6 | 11 |
|---|---|---|---|---|---|---|---|---|
| Hot chocolates, | 12 | 16 | 25 | 28 | 36 | 45 | 42 | 27 |
(a) Find Pearson's product-moment correlation coefficient . [2] (b) Describe the correlation between temperature and hot chocolates sold. [1]
- 1
(a) Enter into List 1 and into List 2 and run linear regression (or two-variable statistics) on the GDC. [M1: correct use of GDC] . [A1: value to 3 s.f.]
Using the café data ( hot chocolates, temperature in °C):
(a) Find the equation of the regression line of on . [3] (b) Estimate the number of hot chocolates sold when the average temperature is 9 °C. [2] (c) Comment on the reliability of using the line to predict sales at 25 °C. [1]
- 1
(a) From the GDC's linear regression on the same two lists: and [M1: values of and from GDC] So the line of on is . [A2: correct equation to 3 s.f.]
A GDC gives the regression line of on as with . The data used had ranging from to .
(a) Interpret the value of . (b) Use the line to predict when . (c) Comment on the reliability of predicting when . [5]
- 1
Model answer — full working.
How it all connects
The big idea sits in the middle — tap a linked idea to explore the link.
Tap a linked idea to see how it connects back to the main topic — that connection is what examiners reward.
Glossary
Try to recall each definition before you reveal it.
Quick check
Answer in your head first — then tap to check. No pressure.
Revision flashcards
Flip the card. Test yourself before the exam.
What is bivariate data?
Data in which each observation records two variables, e.g. the height and weight of each person in a group. We study whether the two variables are associated.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Direction: positive (upward trend), negative (downward trend), or none.
- ✓
Strength: how closely the points cluster around a straight line — tight = strong, loose = weak.
- ✓
Form: check the pattern is roughly linear before trusting or a regression line; a curved pattern needs a different model.
- ✓
Outliers: single points far from the trend can distort both and the regression line — always look for them.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 2 question marked: interpret $r$, find a regression line, and justify a prediction with full working
Get a Paper 2 question marked: interpret , find a regression line, and justify a prediction with full working
Extra simulations & links
PhET, GeoGebra and other curated tools — open in a new tab.
Frequently asked
Checkpoint
One marked question is worth ten re-reads — close the loop before you move on.
Reading it isn’t knowing it — prove it.
Before you move on: do Get a Paper 2 question marked: interpret $r$, find a regression line, and justify a prediction with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.