Porisma
All chapter practice

Correlation and linear regression

Practice section 4 of 6

Questions 19–24 in this collection

Practice questions

Discussion practice · 1 of 6

Compare pollution models and audit a damaged regression fragment

(a) Traffic engineers compare traffic flow on a busy main road with air pollution at a nearby monitoring station. Each hour, sensors report the average traffic flow xx (vehicles per hour) for the preceding hour; the station supplies a pollution reading yy in a suitable unit, with higher readings indicating more pollution. A random sample of eight hours gives:

xxyy
17961.0
19182.2
21203.5
23154.2
23684.3
24204.5
25884.9
28505.5

(i) Draw the scatter diagram, labelling the axes.

Two proposed models are y=a+bxy=a+bx and y2=c+dxy^2=c+dx.

(ii) Find the correlation coefficient between (a) xx and yy, and (b) xx and y2y^2.

(iii) Use (i) and (ii) to explain which model is better.

(iv) Find a suitable regression equation and use it to estimate yy when x=2000x=2000.

(v) Comment on the validity of the headline “Heavy traffic causes air pollution” in light of these results.

(b) A partly destroyed research paper retains these statements: the mean of xx is 4.4; the regression of yy on xx is y=2.5x+3.8y=2.5x+3.8; the regression of xx on yy begins x=1.5y−…x=1.5y-\ldots. Calculate the missing constant at the end of the second equation.

[2017/JJC/II/10]

CJC · Discussion · Question 6

Solution

Discussion practice · 2 of 6

Recover a missing price index and choose the prediction direction

The consumer price index measures average price changes in a fixed basket of consumption goods and services commonly purchased by resident households over time. It is commonly used as a measure of consumer price inflation. In the 2013 Singapore household expenditure survey, housing and food made up about half of the average monthly expenditure of an average household.

The table shows housing and food price indices from 2005 to 2012, with 2005 as the base period (index 100). For example, food index 104.6 in 2007 means average food prices increased by 4.6% from 2005 to 2007.

YearHousing price index xxFood price index yy
2005100100
2006100.7101.6
2007102.3104.6
2008116.8112.6
2009123.1115.2
2010124.3116.8
2011missing120.3
2012148123.1

(i) Show that the missing housing price index for 2011 is 136 (nearest integer), given the regression of yy on xx is y=54.271+0.48363xy=54.271+0.48363x, correct to 5 significant figures.

(ii) Draw the scatter diagram, labelling the axes clearly. Comment on the suitability of the linear model.

(iii) Estimate the housing price index in 2016 when the food price index is 134.6. Find an appropriate regression equation for yy and x\sqrt{x} and use it for the estimate. Explain why this estimate might not be reliable.

(iv) Find the product moment correlation coefficient between yy and x\sqrt{x}.

(v) It would be convenient to tabulate x/100x/100 and y/100y/100 instead. Without further calculations, explain whether the correlation between x/100\sqrt{x/100} and y/100y/100 differs from (iv).

[2017/MJC/II/9]

CJC · Discussion · Question 7

Solution

Discussion practice · 3 of 6

Compare used-car prices with reciprocal mileage

Adriana investigates how used-car prices depend on distance driven. A UK website lists seven cars of the same make and model; distance dd is in miles and price pp is in pounds sterling.

dd (miles)pp (pounds sterling)
1458812450
895415200
2403011900
3755110700
4545210600
3010010900
505522500

The source supplies the scatter diagram shown here and the correlation coefficient rd,p=−0.78r_{d,p}=-0.78.

(a) What conclusion should Adriana reach about the relationship between dd and pp? Justify your answer.

(b) Would the coefficient differ if distances were converted to kilometres and prices to Singapore dollars? Use the given conversions: 1 mile = 1.6 kilometres; 1 pound sterling = 1.7 Singapore dollars.

Adriana discovers that the car with d=5055d=5055 and p=22500p=22500 is a special version with a bigger engine and many extra features.

(c) Explain why this special car should not be used in the analysis.

For the rest of the question, exclude this special car.

(d) Use a reciprocal transformation to sketch pp against 100000/d100000/d. Draw a line of best fit by eye.

(e) Mark the distances used to obtain the least-squares regression of pp on 100000/d100000/d. Explain why these distances are squared and why the method is called least squares.

(f) Use your calculator to find this least-squares regression equation and the corresponding correlation coefficient.

(g) Estimate the price of an ordinary car of this make and model that has travelled 5055 miles. Explain whether the estimate is likely to be reliable.

Expand diagram

Use the scrollbars or arrow keys to inspect details.

Reconstructed source scatter of all seven cars: mileage/price pairs 14588/12450, 8954/15200, 24030/11900, 37551/10700, 45452/10600, 30100/10900 and 5055/22500. Mileage is horizontal; price in pounds sterling is vertical. The observations decrease in a curved pattern.
Reconstructed source scatter of all seven cars: mileage/price pairs 14588/12450, 8954/15200, 24030/11900, 37551/10700, 45452/10600, 30100/10900 and 5055/22500. Mileage is horizontal; price in pounds sterling is vertical. The observations decrease in a curved pattern.
Reconstructed source scatter of all seven cars: mileage/price pairs 14588/12450, 8954/15200, 24030/11900, 37551/10700, 45452/10600, 30100/10900 and 5055/22500. Mileage is horizontal; price in pounds sterling is vertical. The observations decrease in a curved pattern.

CJC · Discussion · Question 8

Solution

Discussion practice · 4 of 6

Compare fuel-consumption models using squared residuals

Abi and Bhani measure fuel consumption yy (kilometres per litre) for a car driven at different constant speeds xx (kilometres per hour).

xxyy
4022
4520
5018
5517
6016

(i) Abi models the data with y=35−13xy=35-\frac13x.

(a) On graph paper, draw a scatter diagram of the data and the line y=35−13xy=35-\frac13x.

(b) For a fitted line y=f(x)y=f(x), the source describes the residual at (a,b)(a,b) as the vertical distance between (a,f(a))(a,f(a)) and (a,b)(a,b). Mark each residual on the diagram.

(c) Calculate the sum of squared residuals for Abi’s line.

(d) Explain why, in general, the sum of squared residuals is used instead of the sum of residuals.

Bhani uses a line through (40,22)(40,22) and (55,17)(55,17). The sum of squared residuals for Bhani’s line is 1.

(ii) State, with a reason, which model gives a better fit.

(iii) Cerie carries out a similar experiment on a different car. Her fitted line has a sum of squared residuals of 0. What can you deduce about her data points?

[N2019/II/10(modified)]

CJC · Discussion · Question 9

Solution

Review practice · 5 of 6

Choose a model with a limiting daily rate

The daily rate charged by a car-hire firm varies with the length of the hire period. The firm’s brochure gives the following data.

Hire period, xx days12345103050
Daily rate, yy dollars149119115112109105103101

Calculate the value of the product-moment correlation coefficient. [2]

Give a sketch of the scatter diagram for the data, as shown on your calculator, and hence

(i) comment on the value of the product-moment correlation coefficient,

(ii) state, with a reason, which of the following models is appropriate.

A: y=a+bxy=a+bx; B: y=a+bx2y=a+bx^2; C: y=a+bxy=a+\dfrac bx; D: y=a+bln⁡xy=a+b\ln x. [4]

For the appropriate model, calculate the least squares estimate of aa and bb, and verify that, for the transformed data, the product-moment correlation coefficient is close to 1. [3]

[2006/SP/II/7]

CJC · Review problems · Question 1

Solution

Review practice · 6 of 6

An outlier reverses the fitted trend

A chemical is sprayed onto various plots of land. After a year the concentration, xx, of the chemical is measured in each plot, and also the concentration, yy, of bacteria in the plot. Both xx and yy are measured in appropriate units. A statistician is given the following data to analyse.

xx5.116.174.714.153.872.7210.135.44
yy4.233.984.816.307.829.4511.714.15

(i) Calculate the correlation coefficient, and the line of regression of yy on xx. [3]

(ii) Give a sketch of the scatter diagram for the data, as shown on your calculator. Giving a reason, identify a data pair which should be regarded as suspect. [3]

(iii) Remove the suspect data pair, and calculate the correlation coefficient, and the line of regression of yy on xx, for the revised data. [2]

(iv) Comment of your answers to part (i) and (iii). [2]

Two other plots of land, A and B, are to be sprayed with the chemical. The value of xx for A is to be 1.2 and the value of xx for B is to be 4.95.

For each of these two plots, find the estimated value of yy, using the line of regression obtained in part (iii), and state, with a reason in each case, whether it would be good practice to regard this value as a valid prediction. [4]

CJC · Review problems · Question 2

Solution

Back to all practice questions