In simple terms
A friendly intro before the formal notes — no formulas yet.
Do They Move Together?
Correlation squeezes the relationship between two variables into one honest number between and : its sign tells you the direction (do they rise together or move opposite ways?) and its size tells you the strength (how tightly do the points hug a line?). Regression then draws the single best-fit line so you can make predictions from it.
Picture an ice-cream van. On hotter days it sells more cones — temperature and sales rise together, a positive correlation. If the points on a temperature-versus-sales graph sit almost perfectly on a rising line, the correlation is strong (close to ); if they scatter loosely around it, the link is weak (closer to ). The regression line is the trend you would draw through that cloud to guess tomorrow's sales from tomorrow's forecast — trustworthy for a warm day like the ones you have seen, but reckless for a temperature far beyond your records.
- 1
Plot the data on a scatter diagram first, and look: is the trend roughly a straight line, a steadily rising or falling curve (monotonic), or no pattern at all?
- 2
Enter the two variables into GDC lists. For a linear relationship run linear regression to read Pearson's ; if the relationship is monotonic-but-curved or has an outlier, rank each list first and run the same calculation on the ranks to get Spearman's .
- 3
Interpret the coefficient in words: state the direction from its sign and the strength from its size, always in the context of the two variables.
- 4
If a line of best fit is given, use the regression equation to predict — but only inside the range of the data. Never claim the correlation proves that one variable causes the other.
Explore the concept
Use the live diagram and synced steps — play it or tap a step card to walk through.
Full topic notes
Formal explanation with the rigour you need for the exam.
Scatter diagrams and describing correlation
A scatter diagram plots one variable against the other, one point per observation. Before any calculation, look at the cloud of points and describe it in two words. The DIRECTION is positive if the points drift upwards from left to right (as rises, rises) and negative if they drift downwards. The STRENGTH is how tightly the points hug an imagined trend line: points strung almost perfectly along a line show a strong correlation; a loose, fuzzy cloud shows a weak one; a shapeless scatter shows none. Direction and strength are independent — a tight downward band is a strong negative correlation, not a weak one.
The scatter also tells you WHICH coefficient to reach for. If the points hug a straight line, Pearson's is the natural measure. If they follow a curve that keeps climbing (or keeps falling) — a monotonic pattern — or if one stray point sits far from the rest, then Spearman's rank coefficient describes the association more faithfully.
Positive correlation: the variables rise together — the scatter drifts up to the right.
Negative correlation: one rises as the other falls — the scatter drifts down to the right.
Strength is judged by how closely the points follow the trend, and is measured by (or ):
: very weak; : weak;
: moderate; : strong; : perfect.
Pearson's product-moment correlation coefficient $r$
Pearson's coefficient measures the strength and direction of a LINEAR relationship between two quantitative variables. It always satisfies : a value of means the points lie exactly on a rising straight line, means exactly on a falling straight line, and means no linear association at all. Read straight from the GDC's linear-regression output; you are never asked to compute it by hand in AI SL. Interpreting it takes two words — the sign gives the direction, the size gives the strength — and both must be tied to the context of the question.
Spearman's rank correlation coefficient $r_s$
Not every relationship is a straight line, and not every data set is free of outliers. Suppose two variables rise together steadily but along a curve, or suppose one extreme point would drag Pearson's away from the real trend. For these cases we use Spearman's rank correlation coefficient . The idea is simple: replace each value by its RANK within its own variable — smallest is rank 1, next is rank 2, and so on — then find Pearson's on the two lists of ranks. Because ranks record only the ORDER of the values, not their exact size, a monotonic curve ranks as neatly as a straight line, and a wild outlier becomes just 'the largest', so resists it. Like , it satisfies , and signals a perfect monotonic (order-preserving or order-reversing) relationship.
The least-squares regression line and prediction
Once a scatter looks reasonably linear, we fit the least-squares regression line of on , written . 'Least squares' means the line is positioned to make the total of the squared VERTICAL gaps between the points and the line as small as possible; the GDC reports the gradient and intercept . This line of on is built to predict from a value of . Two facts steer its safe use: the line always passes through the mean point — a quick sanity check — and a prediction is only trustworthy INSIDE the range of the data you collected.
Regression line of on : , with gradient and -intercept read from the GDC.
Mean point: the line always passes through ; substituting returns .
Interpolation: predicting for an inside the observed range — generally reliable, especially when is high.
Extrapolation: predicting for an outside the observed range — unreliable, because there is no evidence the trend continues.
Correlation is not causation
A strong correlation is easy to over-read. It tells you two variables move together — nothing more. It does NOT establish that changing one would change the other, because a hidden confounding variable may be driving both. The number of firefighters at a blaze correlates strongly with the damage done, but sending fewer firefighters would not reduce the damage; the size of the fire is the confounder that raises both. In an exam, describe a correlation by its strength and direction only, and reserve any claim of causation for questions that supply evidence of it, such as a controlled experiment.
Common mistakes examiners penalise
Confusing strength with direction — is a STRONG negative correlation, not a weak one. The sign is the direction; the size is the strength. Read both.
Calling 'no relationship' — it means no LINEAR relationship. The variables could still follow a strong curved (non-linear) pattern that Pearson's cannot see.
Using Pearson's on ranked or clearly non-linear data — when the data is ordinal, monotonic-but-curved, or outlier-driven, rank it and quote Spearman's instead.
Ranking the two variables in opposite directions — rank both smallest-to-largest (and average tied ranks), or the sign of will be wrong.
Extrapolating beyond the data — predicting for an outside the observed range is unreliable however high is; always state whether you are interpolating or extrapolating.
Claiming causation from correlation — a strong never proves one variable causes the other; a confounding variable may drive both.
Quoting the regression line of on to predict from — that line is built to predict ; using it the other way is not what least squares optimised.
Over-rounding — carry the GDC's full figures and round only the final answer, to 3 significant figures unless told otherwise.
Model answer — marked the way our engine marks it
In Paper 2 the marks are analytic: each is tied to a specific line of working — a method mark (M) or an accuracy mark (A) — and an accuracy mark depends on the method mark it follows. Follow-through (FT) means an earlier wrong value need not cost you the marks that depend on it, provided the later step is done correctly on your figure. The engine also ignores subsequent working (ISW) once a correct answer appears, and accepts any equivalent form and any correctly-rounded value. That protection exists only if the method is on the page. Study how each mark below is earned by a specific line.
Where this leads
Correlation and regression are how the statistics course turns description into prediction. The regression line you fit here is the simplest statistical model, and the discipline it teaches — inspect the scatter, choose the coefficient that suits the data, quote it with strength and direction, predict only where the data supports it, and never confuse association with cause — is exactly what later modelling, from exponential and quadratic fits to the reasoning behind the chi-squared test of independence, depends on. Master the two questions 'how tightly do they move together?' and 'how far can I trust a prediction?', and the rest of applied statistics becomes a set of variations on skills you already own.
Worked examples
See the formulas applied — reveal one step at a time, like the exam.
A tutor records the number of hours, , that eight students revised for a test and their percentage score, : \n \n | Hours, | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | \n |---|---|---|---|---|---|---|---|---| \n | Score, | 54 | 60 | 58 | 66 | 70 | 72 | 79 | 84 | \n \n (a) Find Pearson's product-moment correlation coefficient . \n (b) Interpret in context. \n (c) Write down the equation of the regression line of on . [5]
- 1
This is a Paper 2 question, so enter the hours in one list and the scores in a second, then run linear regression.\n\n**(a) Pearson's .** From the GDC's LinReg output:\n (3 s.f.). [M1 for using the GDC regression feature, A1 for the value]\n\n**(b) Interpretation.** The value is close to and positive, so there is a strong, positive (linear) correlation between hours revised and test score: students who revised more tended to score higher. [A1]\n\n**(c) Regression line.** The same screen gives and , so\n (3 s.f.). [A1]\n\nThe steepness ( marks per extra hour) is separate from the strength: measures how tightly the points follow this line, not how steep it is.
An estate agent records the floor area, (m), and selling price, (thousands of $), of seven flats: \n \n | Area, | 45 | 60 | 72 | 85 | 95 | 110 | 130 | \n |---|---|---|---|---|---|---|---| \n | Price, | 120 | 150 | 175 | 190 | 230 | 260 | 900 | \n \n The largest flat is a luxury penthouse. \n (a) Find Pearson's for the raw data. \n (b) By ranking the data, find Spearman's rank correlation coefficient . \n (c) Explain which coefficient better describes the relationship. [6]
- 1
(a) Pearson's . Entering the raw values and running linear regression:\n (3 s.f.). [M1 GDC, A1]\nThe penthouse price of $900,000 is an outlier that drags down to a merely 'moderate/strong' value.\n\n**(b) Spearman's .** Rank each variable from smallest () to largest ():\nArea ranks: . \nPrice ranks: (the prices are already in increasing order). \nEnter the two rank lists and run linear regression on the ranks:\n (3 s.f.). [M1 for ranking both variables, A1 for the value]\n\n**(c) Which is better.** Every larger flat costs more, so the relationship is perfectly MONOTONIC even though it is not perfectly linear, and one outlier distorts . Spearman's captures the true 'bigger means dearer' pattern faithfully, so is the better description here. [A1 for identifying the monotonic/outlier issue, A1 for concluding ]
The mass, grams, of a chemical produced at temperature C was measured at six temperatures from C to C, giving the regression line with , and mean temperature . \n (a) Estimate the mass produced at C. \n (b) Find , the mean mass. \n (c) State, with a reason, whether your estimate in (a) is reliable. [5]
- 1
(a) Prediction at C. Substitute into the regression line:\n g (3 s.f.). [M1 substitute, A1]\n\n**(b) Mean mass.** The line passes through the mean point , so substitute :\n g (3 s.f.). [M1 use on the line, A1]\n\n**(c) Reliability.** The value lies inside the data range , so this is interpolation; with (very strong), the estimate is reliable. [A1]
A GDC gives the regression line with . Interpret , predict when , and comment on predicting when (the data only goes up to ). [4]
- 1
Model answer — full working.\n\nInterpret . is close to and positive, so there is a strong, positive (linear) correlation between and .\n\nPredict when . Substitute into the regression line:\n\n\nComment on . The data only reaches , so lies well outside the observed range. Using the line here is EXTRAPOLATION, so the prediction is unreliable — there is no evidence the linear trend continues that far.\n\n---\nHow our marking engine awards the 4 marks:\n\n- A1 — interpret . Awarded for describing as a strong, positive correlation. Both features are needed: 'positive' (from the sign) and 'strong' (from near 1). 'Positive' alone, or a bare 'good correlation', does not score.\n- M1 — substitute . A method mark for correctly substituting into the line, i.e. . It is the substitution that is rewarded, so it survives an arithmetic slip in the final number.\n- A1 — value. Awarded for . This accuracy mark depends on the M1 above and is protected by follow-through: a candidate who substitutes correctly but slips in the arithmetic keeps the method, and a correct answer on a slightly different earlier value would still earn the FT mark.\n- A1 — extrapolation. Awarded for identifying that is beyond the data (), so the prediction is extrapolation and therefore unreliable. Naming it 'extrapolation' OR explaining 'outside the data range, so unreliable' both score.\n\n**'Accept equivalent forms and correct rounding.'** The engine accepts written as or left as , and accepts the final comment whether phrased as 'extrapolation' or 'outside the range of the data, so unreliable'. Once a correct statement appears, ISW means a later restatement does not lose marks.\n\nBottom line: a student who writes only '' scores the two prediction marks but throws away the interpretation and extrapolation marks — half the question. Showing the strength-and-direction reading, the substitution, and the range check secures all four, and follow-through then shields the arithmetic.
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.
Bivariate data
Data with two variables recorded for each observation, such as the height and mass of each person. Correlation and regression describe how those two variables move together.
Key takeaways
Review these before you close the topic — retrieval beats re-reading.
- ✓
Positive correlation: the variables rise together — the scatter drifts up to the right.
- ✓
Negative correlation: one rises as the other falls — the scatter drifts down to the right.
- ✓
Strength is judged by how closely the points follow the trend, and is measured by (or ):
- ✓
: very weak; : weak;
- ✓
: moderate; : strong; : perfect.
Practice — then mark it
The whole point: a real Cambridge question, marked mark-by-mark.
Get a Paper 2 correlation-and-regression question marked: quote $r$ or $r_s$, fit the line and predict — with full working
Get a Paper 2 correlation-and-regression question marked: quote or , fit the line and predict — 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 correlation-and-regression question marked: quote $r$ or $r_s$, fit the line and predict — with full working on paper, snap a photo, and get examiner-style feedback on exactly where you win and lose marks.