Bivariate data pairs two variables, such as hours revised and test score. Plot a scatter diagram, measure the strength of a linear relationship with Pearson's (or Spearman's for ranks), and if the correlation is strong use the regression line of on from your GDC to predict , but only inside the range of the data.
Free account: 5 more practice questions on correlation & regression with instant feedback, and full worked answers on the free questions. Free, no card. Join free →
Describe a scatter diagram by its direction (positive or negative), its form (linear or not) and its strength (strong, moderate, weak). Outliers and clusters are worth naming. Correlation is not causation: a third factor can drive both variables.
Pearson's correlation coefficient
runs from to . Close to or means a strong linear relationship; close to 0 means little linear relationship. Use the GDC's two-variable statistics, and quote , not , when is asked for.
Spearman's rank correlation
is Pearson's calculated on the ranks of the data. It measures whether one variable goes up when the other does (a monotonic relationship), even if the pattern is curved. Rank each variable separately; tied values share the average of their ranks.
The regression line
The line of on , , comes from the GDC. Interpret the gradient in context with units: "each extra hour of revision adds about marks". For example, with , 6 hours predicts marks.
Is the prediction reliable?
A prediction is reliable when the correlation is strong and the value you substitute is inside the range of the data (interpolation). Outside the range (extrapolation) the pattern may not continue, so say the prediction is unreliable.
Key formulas
Regression: (GDC); use to predict within the data range only Learn it
near 1: strong linear correlation; Spearman's = PMCC of the ranks Learn it
Mean () In the booklet
The IB formula booklet is provided in every exam paper. In the booklet = printed there, so know where to find it; Learn it = not in the booklet, so learn it by heart. All AI SL formulas →
Correlation & Regression worked examples
Worked example 1: Pearson's correlation coefficient · easy
A researcher records hours of sunshine and ice creams sold over days: . Find to 3 s.f. and interpret it.
Solution
1. Enter: -values in List 1, -values in List 2 on the GDC.
2. Run: 2-Var linear regression (LinReg ).
3. Extract:
4. State: .
5. Interpret: Very strong, positive linear correlation between sunshine and sales.
4. State: .
5 steps · 1 to fill in
Examiner tip: If your GDC doesn't display , enable "Diagnostics" in the catalogue or mode settings.
Worked example 2: Regression line and prediction · medium
Using the same data, find the regression line , then estimate ice creams sold with hours of sunshine.
Solution
1. Run: LinReg on the GDC using the same lists.
2. Extract: , .
3. Equation: .
4. Substitute: .
5. State: approximately ice creams.
4. Substitute: .
5 steps · 1 to fill in
Examiner tip: Always use the regression line of on when predicting a -value from an -value.
Worked example 3: Reliability and extrapolation · hard
The kiosk owner uses to predict sales for hours. Explain mathematically why this is unreliable.
Solution
1. Original domain: .
2. Compare: lies far outside this range.
3. Classify: This is extrapolation.
4. State: The estimate is unreliable — no guarantee the linear trend holds beyond hours.
4 steps
Examiner tip: Even with , any prediction outside the poles of the data must be classified as unreliable.
Correlation & Regression exam-style questions
3 questions from our AI SL bank, written in the style of IB papers, easiest first. One has its full worked solution open here. Each has a full mark scheme in the practice area.
Question 1 · easy · 4 marks · Paper 1
A set of bivariate data has a regression line on with the equation . The mean value of the -data is .
State the exact coordinates of the mean point, , for this data set.
Explain the mathematical significance of the mean point in relation to the line of best fit.
A student investigates the relationship between the shoe size of primary school children and their reading speed in words per minute. The student calculates a Pearson’s correlation coefficient of .
State the direction and strength of the linear correlation.
The student concludes that having larger feet causes children to read faster. Explain why this conclusion is invalid, suggesting a possible lurking variable.
Full worked solution Free, no sign-in
There is a strong, positive, linear correlation. A1A1
Correlation does not imply causation. R1
The relationship is likely caused by a lurking (confounding) variable, such as the age of the child. As children get older, their feet grow larger, and simultaneously their cognitive abilities develop, causing them to read faster. R1
Every question here has a full worked solution.See them all →
Question 3 · hard · 4 marks · Paper 1
The weights of 10 athletes and the weights of their corresponding bicycles are recorded. The Pearson’s correlation coefficient is found to be . The researcher realises that the bicycle weights were recorded in kilograms, but they should have been recorded in grams (by multiplying every bicycle weight by 1000).
State the new value of after the bicycle weights are converted to grams.
Give a mathematical reason for your answer to part (a).
Where students lose marks on correlation & regression
Examiner's noteInterpreting in context: parameters, derivatives and justifications
Where marks are lost: Weaker candidates could not say what a gradient or intercept means in context, gave only one of the two when comparing costs, described a regression gradient loosely, explained sampling weaknesses too briefly to show understanding, and justified a choice with reasons that did not use the model or the numbers.
Examiners flagged this in 3 exam series (May 2024, November 2024, November 2025). Summarised in our own words from IB subject reports, IB Programme Resource Centre. Read the full note →
Correlation & Regression on your calculator
A GDC is allowed on every AI paper. Keystrokes for the Casio fx-CG50, TI-84 Plus CE and TI-Nspire, with a checked worked example:
What is the difference between Pearson's and Spearman's correlation?
Pearson's r measures how close the data are to a straight line. Spearman's r_s is Pearson's r applied to the ranks, so it measures whether the variables increase together even when the pattern is curved.
When is a regression prediction reliable?
When the correlation is strong and you predict y for an x inside the range of the data. Predicting outside the range is extrapolation, and the pattern may not continue.
How many IB Maths AI SL bivariate data questions are there?
There are 45 exam-style bivariate data questions in the AI SL question bank (Paper 1: 21 · Paper 2: 24), graded 12 easy, 15 medium, 12 hard, 6 very hard. Every question has a full IB-style mark scheme (M, A and R marks).
Is bivariate data on Paper 1 or Paper 2?
Both. In the bank, Paper 1: 21 · Paper 2: 24. Practise with your GDC — AI papers expect calculator methods throughout.