Skip to content
  1. IB Question Bank
  2. Maths AA
  3. Statistics & Probability
Topic 4.04 · SL and HL

Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson): notes and practice questions

Summary
  • Scatter diagrams display pairs of data points to show the relationship between two variables.
  • The line of best fit (or regression line) represents the linear relationship, typically found using the least squares method.
  • Pearson’s correlation coefficient (r) quantifies the strength and direction of a linear relationship, with values between -1 and 1:
  • r=1 r = 1 indicates a perfect positive correlation,
  • r=−1 r = -1 indicates a perfect negative correlation,
  • r=0 r = 0 indicates no linear correlation.

How it is examined

Describing the correlation wants two words, strength and direction, and one of them is usually dropped. The interpretation of aa and bb has to be in context with units. Extrapolation warnings are their own mark. Paper 2, 6 to 9 marks across parts.

Given in the booklet

Nothing. The AA booklet has no entry for Pearson's rr, no least-squares regression formula and no coefficient of determination. Every one of these comes from the GDC, which is why the guidance says technology should be used.

Key ideas
  • Linear correlation of bivariate data.
  • Pearson's product-moment correlation coefficient, rr.
  • Scatter diagrams; lines of best fit, by eye, passing through the mean point.
  • Equation of the regression line of yy on xx.

Linking questions

  • Aim 8: the correlation between smoking and lung cancer was "discovered" using mathematics, and science had to justify the cause.

Practice questions

40 questions · 4 easy · 32 medium · 4 hard
Showing 20 of 20

Question 1

EasyPaper 1 · no calculator5 marks
(a)

An IB student is conducting five different investigations for their mathematics internal assessment. For each investigation, they collect bivariate data and calculate the Pearson product-moment correlation coefficient, rr.

Use the list below to state the correct description for the following values of rr.

perfect positive, strong positive, weak positive, zero, weak negative, strong negative, perfect negative

(a) For an investigation into daily temperature and the number of people at a public pool, r=0.91r = 0.91.

[1]
(b)

(b) For an investigation into a car's engine size and its fuel efficiency, r=−0.35r = -0.35.

[1]
(c)

(c) For an investigation into the number of hours a person trains per week and their time to complete a marathon, r=−0.82r = -0.82.

[1]
(d)

(d) For an investigation into a person's shoe size and their monthly phone bill, r=0.03r = 0.03.

[1]
(e)

(e) For an investigation into the side length of a square and its perimeter, r=1r = 1.

[1]

Question 2

MediumPaper 2 · calculator6 marks
(a)

An agronomist studies the effect of monthly rainfall on the yield of a new variety of wheat. The monthly rainfall, RR in mm, and the wheat yield, YY in kg per hectare, were recorded for seven different regions.

The results are shown in the table below.

Monthly Rainfall, RR (mm)5075100120150180200
Wheat Yield, YY (kg/ha)410475560610690740800

The relationship between the variables can be modelled by the regression equation Y=aR+bY = aR + b.

(a) Find the value of aa and of bb.

[3]
(b)

(b) Write down the value of the Pearson's product-moment correlation coefficient, rr.

[1]
(c)

(c) Use the regression equation to estimate the wheat yield in a region where the monthly rainfall is 135 mm.

[2]

Question 3

HardPaper 2 · calculator19 marks
(a)(i)

(a) A study investigates the relationship between the amount of a specific fertilizer (xx kg) applied to a crop field and the resulting crop yield (yy tonnes). Data from 88 experimental plots is collected and presented in the table below.

xx (kg)yy (tonnes)
10105.55.5
12126.26.2
14147.07.0
16168.18.1
18189.09.0
20209.89.8
222210.510.5
242411.211.2

(i) Calculate the Pearson product moment correlation coefficient for this data.

[2]
(a)(ii)

(ii) In two words, describe the linear correlation that is exhibited by this data.

[1]
(a)(iii)

(iii) Calculate the yy on xx line of best fit, in the form y=ax+by = ax + b. Give the values of aa and bb to three significant figures.

[3]
(b)(i)

(b) Another four experimental plots are added to the study, with the following results:

xx (kg)yy (tonnes)
11119.09.0
15156.06.0
191912.012.0
23237.07.0

(i) Calculate the Pearson product moment correlation coefficient for the combined data of all 1212 plots.

[3]
(b)(ii)

(ii) In two words, describe the linear correlation that is exhibited by the combined data.

[1]
(b)(iii)

(iii) Suggest a reason why it would not be particularly valid to calculate the yy on xx line of best fit for the combined data.

[2]

Question 4

EasyPaper 1 · no calculator3 marks

A biologist is studying the relationship between the concentration of a nutrient, cc (in mg/L), and the weekly growth rate of a particular plant, gg (in cm/week). The relationship is found to be linear. The regression line of gg on cc passes through the mean point (10,2.5)(10, 2.5) and has a gradient of 0.20.2.

Estimate the weekly growth rate of a plant when the nutrient concentration is 2525 mg/L.

Question 5

MediumPaper 2 · calculator7 marks
(a)

The following table shows the advertising spending (in thousands of dollars) and the corresponding monthly sales (in thousands of units) for a new product over several months.

Advertising Spending (x)Monthly Sales (y)
513
815
1017
1219
1521
1823
2024
2225

The data is also represented on the following scatter diagram.

Scatter diagram showing advertising spending vs. monthly sales with data points plotted

The relationship between advertising spending (x) and monthly sales (y) can be modelled by the regression line of y on x with equation y=ax+by = ax + b, where a,b∈Ra, b \in \mathbb{R}.

Write down the value of aa and the value of bb.

[2]
(b)

Use this model to predict the monthly sales (in thousands of units) when the advertising spending is 25 thousand dollars.

[2]
(c)

Write down the value of xˉ\bar{x} and the value of yˉ\bar{y}.

[1]
(d)

Draw the line of best fit on the scatter diagram.

[2]

Question 6

HardPaper 2 · calculator12 marks
(a)

A marketing analyst is investigating the relationship between the amount spent on social media advertising, xx (in hundreds of dollars), and the monthly sales revenue, yy (in thousands of dollars), for a new product. The following data was collected over eight months:

xx (hundreds of dollars)1122334455667788
yy (thousands of dollars)15152222282835354141494955556262

The analyst models the data using the yy on xx regression line with equation y=ax+by = ax + b.

Write down the values of aa and of bb.

[2]
(b)

Explain what the gradient represents in the context of this problem.

[2]
(c)

Explain what the yy-intercept represents in the context of this problem.

[2]
(d)

Estimate the monthly sales revenue if the company spends $350 on social media advertising.

[2]
(e)

The company aims to achieve a monthly sales revenue of $40000. Find how much they should spend on social media advertising, according to this model.

[2]
(f)

Explain why it might be inappropriate to use this model to predict the monthly sales revenue if the company spends $10000 on social media advertising.

[2]

Question 7

EasyPaper 2 · calculator5 marks
(a)

Eight cars are tested to determine their fuel efficiency. Their weight, WW, in tonnes, and their fuel efficiency, FF, in kilometres per litre (km/L\text{km/L}), are shown in the table.

Weight (W tonnesW\text{ tonnes})1.201.351.501.101.651.401.251.55
Fuel efficiency (F km/LF\text{ km/L})18.516.214.020.112.515.817.613.2

The equation of the regression line of FF on WW for this data can be written in the form F=aW+bF = aW + b.

Find the value of aa and the value of bb.

[2]
(b)

Write down the value of the Pearson's product-moment correlation coefficient, rr.

[1]
(c)

Use the equation of the regression line of FF on WW to predict the fuel efficiency of a car with a weight of 1.45 tonnes1.45\text{ tonnes}.

[2]

Question 8

MediumPaper 2 · calculator7 marks
(a)(i)

A tutor wants to investigate the relationship between the number of hours a student spends studying for a mathematics test and the score they achieve on the test. They collect data from five students:

Number of hours studied (xx)25748
Test score (yy)5570856590

The relationship between xx and yy can be modelled by the regression line of yy on xx with equation y=ax+by = ax + b.

Find the value of aa and the value of bb.

[3]
(a)(ii)

Write down the value of Pearson's product-moment correlation coefficient, rr.

[1]
(b)

Interpret, in context, the value of aa found in part (a)(i).

[1]
(c)

Another student studies for 6 hours for the mathematics test.

Use the regression line from part (a)(i) to estimate this student's test score.

[2]

Question 9

HardPaper 1 · no calculator14 marks
(a)(i)

A marine biologist is studying a species of sea turtle. She collects data on the carapace length, LL cm, and mass, MM kg, for 30 turtles. The Pearson's product-moment correlation coefficient for this data is found to be r=−0.92r = -0.92. The equation of the regression line of MM on LL is M=−2.5L+150M = -2.5L + 150.

The biologist discovers her measuring tape was misaligned, and all length measurements are 2 cm too short. Her weighing scale was also faulty, showing a mass 1.5 kg less than the true mass for each turtle. The data is corrected for these errors.

(i) State the new value of the Pearson's product-moment correlation coefficient, rr.

[1]
(a)(ii)

(ii) State the new value for the gradient of the regression line of MM on LL.

[1]
(a)(iii)

(iii) Briefly justify your answers to part (a)(i) and (a)(ii).

[2]
(b)(i)

The biologist decides to present her findings to an international conference and converts her original measurements to different units. She converts the original length measurements from cm to mm, and the original mass measurements from kg to g.

(i) State the new value of rr.

[1]
(b)(ii)

(ii) Find the new value for the gradient of the regression line of mass on length.

[2]
(b)(iii)

(iii) Briefly justify your answer for the new gradient.

[2]
(c)(i)

For a different analysis, the biologist defines a "size index", SS, as S=200−LS = 200 - L. She investigates the relationship between the size index SS and the original mass MM in kg.

(i) Find the value of rr for the correlation between SS and MM.

[2]
(c)(ii)

(ii) Find the gradient of the regression line of MM on SS.

[2]
(c)(iii)

(iii) Describe the linear correlation between the size index SS and the mass MM.

[1]

Question 10

EasyPaper 1 · no calculator6 marks
(a)

A coffee shop owner records the average daily temperature, TT (in °C), and the number of hot coffees sold, CC, for a number of days. The scatter diagram shows the results.

Scatter diagram showing a negative correlation between temperature and coffee sales. The x-axis is Temperature (T) from 0 to 30. The y-axis is Number of hot coffees sold (C) from 100 to 300. Points are scattered generally from top-left to bottom-right.

The mean temperature for these days was 15 °C.

For these results, the equation of the regression line of CC on TT is C=−5T+250C = -5T + 250.

(a) Find the mean number of hot coffees sold.

[2]
(b)

(b) Draw the regression line on the scatter diagram.

[2]
(c)

(c) By placing a tick (✔) in the correct box, determine which of the following statements is true.

StatementCheckbox
The correlation is positive
The correlation is negative
There is no correlation
[1]
(d)

(d) Give a reason why the regression line should not be used to estimate the number of hot coffees sold when the average temperature is 35 °C.

[1]

Question 11

MediumPaper 2 · calculator7 marks
(a)

A botanist is studying the growth of a particular plant species. They record the average height of several plants (in cm) at different weeks after planting. The data collected is shown in the table below.

Week (x)Height (y) (cm)
28.4
410.9
614.5
818.2
1019.8
1222.8

The relationship between the week number (x) and the plant height (y) can be modelled by the regression line of y on x with equation y=ax+by = ax + b, where a,b∈Ra, b \in \mathbb{R}.

Write down the value of aa and the value of bb.

[2]
(b)

Use this model to predict the height of a plant after 15 weeks.

[2]
(c)

Write down the mean week number, xˉ\bar{x}, and the mean plant height, yˉ\bar{y}.

[1]
(d)

Draw the line of best fit on a scatter diagram for this data.

Scatter diagram of the data with axes from 0 to 14 for x and 0 to 25 for y, with points plotted from part a
[2]

Question 12

HardPaper 2 · calculator23 marks
(a)(i)

The following table shows the annual revenue of a tech startup, Quantum Innovations, tt years after its launch in 2015.

tt (years after 2015)02468
RR (revenue in millions of USD)1.52.84.25.57.1

A data analyst uses linear regression to model the revenue of Quantum Innovations using these data.

The analyst's model is R=at+bR = at + b.

(a)(i) Write down the value of aa and the value of bb.

[3]
(a)(ii)

(a)(ii) Interpret, in context, the value of aa.

[3]
(b)

(b) The analyst uses this model to predict the revenue of Quantum Innovations in the year 2030, where t=15t = 15, and calculates a revenue of approximately 11.811.8 million USD.

Comment on the reliability of the analyst's prediction.

[1]
(c)(i)

(c)(i) A financial expert, Elena, develops an exponential model for Quantum Innovations' future revenue.

In this model, RE(t)=1.6(1.08)tR_E(t) = 1.6(1.08)^t represents the revenue in millions of USD tt years after 2015, where 10≤t≤2510 \le t \le 25.

Use Elena's model to predict the revenue of Quantum Innovations in the year 2035.

[3]
(c)(ii)

(c)(ii) Interpret, in context, the value 1.081.08 in Elena's model.

[3]
(d)

(d) Another financial expert, Carlos, develops a third model for Quantum Innovations' revenue.

In this model, RL(t)=201+21e−0.15tR_L(t) = \frac{20}{1+21e^{-0.15t}} represents the revenue in millions of USD tt years after 2015, where 10≤t≤2510 \le t \le 25.

Use Carlos's model to predict the revenue of Quantum Innovations in the year 2035.

[1]
(e)

(e) Determine the year in which the difference between the predictions from Elena's model and Carlos's model is greatest.

[3]
(f)(i)

(f)(i) Find the value of

RE′(18)R_E'(18);

[2]
(f)(ii)

(f)(ii) Find the value of

RL′(18)R_L'(18).

[2]
(g)

(g) Compare and interpret, in context, the values of RE′(18)R_E'(18) and RL′(18)R_L'(18).

[2]

Question 13

MediumPaper 2 · calculator5 marks
(a)

A university lecturer is investigating the relationship between the number of hours, HH, students spend studying for a particular module each week and their final exam score, SS, out of 120. The results for eight randomly selected students are summarized in the table below.

Study Hours (HH )5781012141517
Exam Score (SS )60687582889598105

(a) Find Pearson's product-moment correlation coefficient, rr, for these data.

[2]
(b)

(b) The relationship between the variables can be modelled by the regression equation S=aH+bS = aH + b. Write down the value of aa and the value of bb.

[1]
(c)

(c) One student, who currently studies 10 hours per week, decides to increase their study time by an extra three hours per week. Based on the given data, determine by how many marks their final exam score could be expected to change.

[2]

Question 14

MediumPaper 2 · calculator7 marks
(a)

A tech company, "InnovateTech", is investigating the relationship between the average weekly training hours of its software developers and their quarterly productivity scores (out of 150). A sample of eight developers' data is collected and summarized in the table below.

Average weekly training hours (h)Productivity Score (P)
1282
1894
25116
30133
1586
22104
35145
28124

Find Pearson's product-moment correlation coefficient, rr, for these data.

[2]
(b)

The relationship between the variables can be modelled by the regression equation P=ah+bP = ah + b. Write down the value of aa and the value of bb.

[1]
(c)

InnovateTech is considering providing an optional advanced training module. Based on the given data, determine how a developer's productivity score could be expected to alter if they completed this module, which adds an extra five hours of training per week.

[2]
(d)

The CEO of InnovateTech asserts that increased training hours directly cause higher productivity scores. Comment on the validity of the CEO's assertion.

[1]
(e)

InnovateTech later discovered that due to a data entry error, all recorded productivity scores were exactly 10 points lower than their true values. The data was corrected by adding 10 points to each developer's productivity score.

State how, if at all, the value of rr would be affected.

[1]

Question 15

MediumPaper 2 · calculator6 marks
(a)

A rare vintage comic book, 'The Cosmic Crusader #1', was valued at $8000 on January 1st 2015. Its value is projected to increase by 3.5% on January 1st each year.

Find the projected value of 'The Cosmic Crusader #1' for the year 2025, to the nearest dollar.

[3]
(b)

Another rare comic book, 'Galactic Guardian #1', has had its value tracked over several years. The values for various years are shown in the following table.

Year (x)Annual Value (VV)
20158000
20179050
20199980
202111020
202311950

Assuming 'Galactic Guardian #1''s annual value can be approximately modelled by the equation V=ax+bV = ax + b, use your GDC to show that 'Galactic Guardian #1' is projected to have a higher value than 'The Cosmic Crusader #1' in the year 2024, according to the model.

[3]

Question 16

MediumPaper 2 · calculator7 marks
(a)

The total number of units produced, PP, by a factory depends on the number of hours, HH, the factory operates. A production manager uses the model P=−0.8H2+28H+50P = -0.8H^2 + 28H + 50 to predict the total units produced on any given day, where 5≤H≤205 \le H \le 20.

An energy auditor investigates the relationship between the total units produced and the energy consumption, EE, in kilowatt-hours (kWh). The following table shows the data collected on five different days.

Units Produced (P)Energy Consumption (E, in kWh)22516.225017.427518.829019.530520.3\begin{array}{|c|c|} \hline \textbf{Units Produced (P)} & \textbf{Energy Consumption (E, in kWh)} \\ \hline 225 & 16.2 \\ 250 & 17.4 \\ 275 & 18.8 \\ 290 & 19.5 \\ 305 & 20.3 \\ \hline \end{array}

Use the production model to estimate the number of units produced when the factory operates for 15 hours.

[2]
(b)

Find an appropriate regression equation that will allow the auditor to predict the energy consumption on a day when PP units are produced.

[3]
(c)

Hence, use your regression equation to predict the energy consumption when the factory operates for 15 hours.

[2]

Question 17

MediumPaper 2 · calculator5 marks
(a)

A group of students recorded the number of hours they spent studying for a mathematics exam, HH, and their corresponding exam score, SS. The data is shown in the table below.

Hours studying (HH)2345678
Exam score (SS)58657179869196

The regression line of SS on HH for this data can be written in the form S=aH+bS = aH + b.

Find the value of aa and the value of bb.

[2]
(b)

Write down the value of the Pearson's product-moment correlation coefficient, rr.

[1]
(c)

Use your regression line to estimate the exam score of a student who studied for 9 hours.

[2]

Question 18

MediumPaper 2 · calculator4 marks
(a)

A marketing analyst is investigating the relationship between the amount spent on online advertising and the number of product units sold.

The following table shows the advertising spend, xx (in thousands of dollars), and the corresponding number of units sold, yy (in hundreds), for a new product over seven different campaigns.

Advertising Spend (xx, in thousands of dollars)13710151820
Units Sold (yy, in hundreds)5585150215310360395

The value of Pearson's product-moment correlation coefficient, rr, for this data is 0.9990.999, correct to three significant figures.

The regression line of yy on xx for this data can be written in the form y=ax+by = ax + b.

Find the value of aa and the value of bb.

[2]
(b)

Use your regression line to estimate the number of units sold when the advertising spend is 1212 thousand dollars.

[2]

Question 19

MediumPaper 2 · calculator9 marks
(a)(i)

(a) A mathematics teacher investigates the relationship between the number of hours a student spends studying for a test and their final score on the test. The teacher collected data from five students, as shown in the table below:

Hours Studied (x)Test Score (y)
262
370
478
585
691

The relationship between the hours studied, x, and the test score, y, can be modelled by the regression line of y on x with equation y=ax+by = ax + b.

(i) Find the value of a and the value of b.

[3]
(a)(ii)

(ii) Write down the value of Pearson's product-moment correlation coefficient, r.

[3]
(b)

(b) Interpret, in context, the value of a found in part (a)(i).

[1]
(c)

(c) On another occasion, a student studied for 7 hours for the test.

Use the regression line from part (a)(i) to estimate this student's test score.

[2]

Question 20

MediumPaper 2 · calculator7 marks
(a)

(a) The expected crop yield, YY, in kilograms (kg), from a certain field depends on the amount of fertilizer, FF, applied in kg. A farmer models the relationship using the equation Y=−0.8F2+30F+150Y = -0.8F^2 + 30F + 150, where 5≤F≤255 \leq F \leq 25.

Use this model to estimate the crop yield when the farmer applies 18 kg of fertilizer.

[2]
(b)

(b) The farmer also investigates the relationship between the crop yield, YY, and the total profit, PP, in dollars ($). The following table shows the data collected from five different harvests.

Crop Yield (YY in kg)Total Profit (PP in $)
339140
395175
425195
430205
409188
Crop Yield (YY in kg)Total Profit (PP in $)
339140
395175
425195
430205
409188

Find an appropriate regression equation that will allow the farmer to predict the total profit based on the crop yield.

[3]
(c)

(c) Hence, use your regression equation to predict the total profit when the farmer applies 18 kg of fertilizer.

[2]

20 more Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) questions in the app

Every answer is marked mark by mark, IB-style, and the AI tutor helps when you are stuck.

Where marks are lost

  • Using your own wrong value after failing a "show that".
Free. Every IB subject.
No card, no trial that runs out. Just a free account.
  • 50 marked answers a month
    Marked mark by mark, IB-style
  • Hints and mark schemes
    On every part of every question
  • 3,000+ questions
    All 6 subjects, SL and HL, mapped to the syllabus
  • Progress that adapts
    Your Study Profile picks what to practise next

Practise this topic as a session

Pick a difficulty and paper, and FourtyFive tracks your progress on this topic as you go.

or with email
FAQ

Questions,
answered.

Can't find what you're looking for? Email our student team.

What does Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) cover in IB Maths AA?

Scatter diagrams display pairs of data points to show the relationship between two variables. The line of best fit (or regression line) represents the linear relationship, typically found using the least squares method. Pearson’s correlation coefficient (r) quantifies the strength and direction of a linear relationship, with values between -1 and 1:.

Is Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) SL or HL?

Both. SL and HL students study Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) to the same depth.

How do I revise Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) for IB Maths AA?

Start from the core idea: scatter diagrams display pairs of data points to show the relationship between two variables. In the exam: describing the correlation wants two words, strength and direction, and one of them is usually dropped. The interpretation of a and b has to be in context with units. Then practise exam-style questions, easiest first, writing out every step of your working before you check it.

How does FourtyFive help me practise Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson)?

FourtyFive has 40 Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) questions. Every answer you write is marked mark by mark, IB-style, and you see where each mark was won or lost. Every part has a hint, the AI tutor helps you through the step you are stuck on, and your Study Profile picks what to practise next.

Is FourtyFive free for Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) practice?

Yes. A free account gives you 50 marked answers a month, and you do not need a card to sign up.

Can I handwrite Linear Correlation of bivariate data (scatter diagrams, lines of best fit, Pearson) answers on an iPad?

Yes. In the FourtyFive iPad app you write your working by hand with Apple Pencil, the way you would on paper, and it is marked the same way.

Start with the IB question
bank built for you.

Free to start, no card needed. Thousands of syllabus-mapped questions, AI Examiner marking, your weakest topics first.