Home › IB Maths AI SL › Exam practice › Bivariate Data

IB Maths AI SL · Unit 4

Bivariate Data: AI SL exam practice with markscheme

Covers least-squares regression line; scatter plots & r on the GDC; spearman's rank correlation. Work through the 10 questions on paper as if it were the exam, then open each solution and mark your work against the markscheme.

10 questions · 43 marks · about 48 minutes · 5 Paper 1 style, 5 Paper 2 style

Download the PDF 8 pages, worked solutions after the questions

Question 1

3 marks · Paper 1 style · calculator allowed

In a photography contest, Judge A and Judge B rank 5 participants. The sum of the squared differences between their ranks, ∑d2, is found to be 12. Calculate the exact value of Spearman's rank correlation coefficient, rs, for this data.

[3]

Show solution

Spearman formula with n=5: rs=1−6∑d2n(n2−1)
Substitute: rs=1−6(12)5(25−1)=1−72120 M1
72120=0.6 A1
rs=1−0.6=0.4 A1

Answer: 0.4

Question 2

3 marks · Paper 1 style · calculator allowed

Two judges rank six dancers.

DancerABCDEF
Judge 1123456
Judge 2214365

(a) Find Spearman's rank correlation coefficient, rs. [2]

(b) Comment on the level of agreement between the judges. [1]

Show solution

(a)

Pearson's r of the ranks, GDC (M1)

rs=0.829 A1

(b)

strong agreement (strong positive correlation of ranks) A1

Answer: (a) rs=0.829

Question 3

3 marks · Paper 1 style · calculator allowed

For data with x between 2 and 20, the regression line of y on x is y=2.4x+15 and r=0.93.

(a) Estimate y when x=10. [2]

(b) Explain why the line should not be used to estimate y when x=50. [1]

Show solution

(a)

2.4×10+15 (M1)

39 A1

(b)

50 is outside the range of the data (extrapolation) R1

Answer: (a) 39

Question 4

3 marks · Paper 1 style · calculator allowed

Five pairs of values are recorded.

x37295
y59486

(a) Rank each set of values. [2]

(b) Find Spearman's rank correlation coefficient. [1]

Show solution

(a)

x: 2,4,1,5,3 A1

y: 2,5,1,4,3 A1

(b)

rs=0.9 A1

Answer: (b) rs=0.9

Question 5

4 marks · Paper 2 style · calculator allowed

The table shows the hours of sunshine, x, and the number of ice creams sold, y, at a kiosk on six days.

Sunshine, x121518222530
Ice creams, y303441404855

(a) Find Spearman's rank correlation coefficient. [3]

(b) Find Pearson's product-moment correlation coefficient. [1]

Scatter diagram of ice creams sold y against hours of sunshine x on six days: (12, 30), (15, 34), (18, 41), (22, 40), (25, 48), (30, 55).
Sunshine and ice creams sold
Show solution

(a)

ranks of x: 1,2,3,4,5,6; ranks of y: 1,2,4,3,5,6 (M1)(A1)

rs=0.943 A1

(b)

r=0.974 A1

Answer: (a) rs=0.943; (b) r=0.974

Question 6

5 marks · Paper 2 style · calculator allowed

The table shows the speed of a car, x km h−1, and its fuel economy, y km per litre, on six test runs.

Speed, x102030405060
Economy, y625851474036

(a) Find the value of r and describe the correlation. [2]

(b) Find the regression line of y on x and estimate y when x=45. [3]

Scatter diagram of fuel economy y (km per litre) against speed x (km/h) on six runs: (10, 62), (20, 58), (30, 51), (40, 47), (50, 40), (60, 36).
Speed and fuel economy
Show solution

(a)

r=−0.997 A1

strong negative A1

(b)

y=−0.537x+67.8 A1A1

43.6 A1

The scatter diagram with the regression line y = −0.537x + 67.8 and the estimate at 45 km/h read from it: 43.6 km per litre.
Estimate at 45 km/h: 43.6 km per litre

Answer: (a) r=−0.997, strong negative; (b) 43.6 km per litre (line y=−0.537x+67.8)

Question 7

6 marks · Paper 2 style · calculator allowed

An environmentalist models the relationship between the distance from a highway (d, in metres) and the concentration of a pollutant (C, in parts per million). The equation of the regression line is C=−0.04d+8.5.

  1. Estimate the concentration of the pollutant at a distance of 50 metres from the highway.

  2. The actual concentration measured at 50 metres was 7.1 parts per million. Calculate the percentage error of the estimate.

[6]

Show solution
  1. Substitute d=50 into the regression line. (M1)
    C=−0.04(50)+8.5.
    C=−2.0+8.5=6.5 ppm. A1

  2. Use the percentage error formula: |Approximate−ExactExact|×100. (M1)
    Error=|6.5−7.17.1|×100. (A1)
    Error=|−0.67.1|×100≈8.45%. A1A1

Answer: (a) 6.5; (b) 8.45

Question 8

7 marks · Paper 2 style · calculator allowed

The table shows the age, x years, and the price, y thousand euros, of eight cars of the same model.

Age, x12345678
Price, y18.516.214.813.111.910.29.48.1

(a) Find Pearson's product-moment correlation coefficient, r. [2]

(b) Find the equation of the regression line of y on x. [2]

(c) Interpret the gradient of the line in context. [1]

(d) Estimate the price of a car that is 5.5 years old. [2]

Scatter diagram of price y (thousand euros) against age x years for eight cars: (1, 18.5), (2, 16.2), (3, 14.8), (4, 13.1), (5, 11.9), (6, 10.2), (7, 9.4), (8, 8.1).
Age and price of eight cars
Show solution

(a)

r=−0.994 A2

(b)

y=−1.45x+19.3 A1A1

(c)

the price falls by about €1450 for each extra year of age A1

(d)

−1.45×5.5+19.3 (M1)

11.3 thousand euros A1

The scatter diagram with the regression line y = −1.45x + 19.3 and the estimate for a car 5.5 years old read from it: 11.3 thousand euros.
Estimate at 5.5 years: 11.3 thousand euros

Answer: (a) r=−0.994; (b) y=−1.45x+19.3; (d) 11.3 thousand euros

Question 9

4 marks · Paper 2 style · calculator allowed

A data set is shown.

x123456
y248163264

(a) Write down the value of Spearman's rank correlation coefficient. [1]

(b) Find Pearson's product-moment correlation coefficient. [1]

(c) Explain why the two values are different. [2]

Show solution

(a)

rs=1 A1

(b)

r=0.906 A1

(c)

y always increases as x increases, so the ranks agree exactly R1

but the relationship is not linear, so r<1 R1

Answer: (a) rs=1; (b) r=0.906

Question 10

5 marks · Paper 1 style · calculator allowed

A linear regression line y=mx+c is fit to a set of data points. One of the data points is (5,12). The equation of the regression line is found to be y=1.8x+2.5.

  1. Calculate the residual for the point (5,12).
  2. The mean of the x values is x¯=4.2. Calculate the mean of the y values, y¯.

[5]

Show solution
  1. Predicted y for x=5: y=1.8(5)+2.5=9+2.5=11.5. M1A1
    Residual = Actual - Predicted = 12−11.5=0.5. A1
  2. The regression line must pass through the mean point (x¯,y¯). M1
    Substitute x¯=4.2: y¯=1.8(4.2)+2.5=7.56+2.5=10.06. A1

Answer: (a) 0.5; (b) 10.06

How the marks work: M marks are for a correct method, A marks for an accurate answer that follows it, R marks for a reason, and AG means the answer is given in the question. A mark in brackets, like (M1), can be implied by later correct work.

Notes, worked examples and more questions on this topic: AI SL Bivariate Data. Previous topic: Voronoi Diagrams. Next topic: Descriptive Statistics. Every AI SL topic.

Revise first with the AI SL revision notes, then finish on real papers: IB Maths AI SL past papers.