Porisma
All chapter practice

Correlation and linear regression

Practice section 2 of 6

Questions 7–12 in this collection

Practice questions

Self-practice · 1 of 6

Compare two scatters and fit both regression directions

For each dataset, find (i) the correlation coefficient rr and comment on how it relates to the shape of the scatter diagram, (ii) the regression of yy on xx, and (iii) the regression of xx on yy.

(a)

xxyy
35
712
95
1112
1410
1417
1523
2116
2210
2320
2625

(b)

xxyy
0.65
110
215
2.510
2.82.5
3.67.5
42.5
45
415
510

CJC · Lecture · Self-practice

Solution

Worked example · 2 of 6

Compare two models using squared residuals

A random sample of five employees has ages xx years and monthly earnings yy thousand dollars.

Employeexxyy
A193.16
B213.21
C263.34
D284.03
E323.99

(i) Alex uses y=0.1x+1.8y=0.1x+1.8. Calculate the sum of squared residuals for Alex’s line.

(ii) Bertrand uses another straight line whose sum of squared residuals is 2. State, with a reason, which model gives a better fit.

CJC · Lecture · Example 6

Solution

Worked example · 3 of 6

Choose the regression line before substituting

Eight observed pairs are:

xxyy
37
48
69
1011
1120
1219
1521
1722

It is given that r=0.93r=0.93, the regression of yy on xx is y=1.188x+3.042y=1.188x+3.042, and the regression of xx on yy is x=0.736y−1.009x=0.736y-1.009.

(a) Taking xx as the independent variable, estimate (i) yy when x=14x=14 and (ii) xx when y=11y=11.

(b) Now taking yy as the independent variable, estimate (i) yy when x=14x=14 and (ii) xx when y=11y=11.

(c) With neither variable identified as independent, estimate (i) yy when x=14x=14 and (ii) xx when y=11y=11.

(d) Use an appropriate regression line to estimate xx if the independent variable yy is correctly determined as 30. Explain why this is not a good estimate.

CJC · Lecture · Example 7

Solution

Worked example · 4 of 6

Predict a French mark from an English mark

Ten randomly selected students have these French test marks yy and English test marks xx.

xx (English)yy (French)
1920
4243
4433
5256
5150
5367
6673
5668
6077
3743

(i) Obtain the product moment correlation between yy and xx and comment on it.

(ii) Obtain the regression line of yy on xx, correct to 3 decimal places.

(iii) Given that the regression coefficient for xx on yy is 0.66, show by calculation that this line is x=0.66y+13.02x=0.66y+13.02.

(iv) Tom missed the French test but scored 65 in English. Predict a suitable French mark and comment on its reliability.

CJC · Lecture · Example 8

Solution

Worked example · 5 of 6

Transform both variables without changing correlation

After a school physical fitness test, ten pupils have the following masses mm (kg) and overall scores ss.

Pupilmmss
A38.660
B41.858
C38.672
D54.159
E44.962
F32.194
G38.486
H41.462
I30.281
J52.454

(i) Calculate the product moment correlation coefficient between mm and ss for this sample.

(ii) Given u=10(m−30)u=10(m-30) and v=s−50v=s-50, calculate the product moment correlation coefficient between uu and vv for this sample.

CJC · Lecture · Example 9

Solution

Worked example · 6 of 6

Fit a straight line to logarithms of both variables

A researcher gave eight children lists of words of varying difficulty and asked each child to define them. The ages xx (years) and numbers of correctly defined words yy are:

Childxxyy
A2.59
B3.113
C4.318
D5.025
E5.935
F7.153
G8.181
H9.4132

(i) Sketch the scatter diagram and comment on whether a linear regression of yy on xx is suitable.

(ii) Calculate the product moment correlation coefficient between ln⁡y\ln y and ln⁡x\ln x. Comment on the suitability of ln⁡y=a+bln⁡x\ln y=a+b\ln x.

(iii) Find the least-squares regression of ln⁡y\ln y on ln⁡x\ln x. Sketch it on the scatter diagram of ln⁡y\ln y against ln⁡x\ln x.

CJC · Lecture · Example 10

Solution

Back to all practice questions