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 and comment on how it relates to the shape of the scatter diagram, (ii) the regression of on , and (iii) the regression of on .
(a)
| 3 | 5 |
| 7 | 12 |
| 9 | 5 |
| 11 | 12 |
| 14 | 10 |
| 14 | 17 |
| 15 | 23 |
| 21 | 16 |
| 22 | 10 |
| 23 | 20 |
| 26 | 25 |
(b)
| 0.6 | 5 |
| 1 | 10 |
| 2 | 15 |
| 2.5 | 10 |
| 2.8 | 2.5 |
| 3.6 | 7.5 |
| 4 | 2.5 |
| 4 | 5 |
| 4 | 15 |
| 5 | 10 |
CJC · Lecture · Self-practice
Solution
Worked example · 2 of 6
Compare two models using squared residuals
A random sample of five employees has ages years and monthly earnings thousand dollars.
| Employee | ||
|---|---|---|
| A | 19 | 3.16 |
| B | 21 | 3.21 |
| C | 26 | 3.34 |
| D | 28 | 4.03 |
| E | 32 | 3.99 |
(i) Alex uses . 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:
| 3 | 7 |
| 4 | 8 |
| 6 | 9 |
| 10 | 11 |
| 11 | 20 |
| 12 | 19 |
| 15 | 21 |
| 17 | 22 |
It is given that , the regression of on is , and the regression of on is .
(a) Taking as the independent variable, estimate (i) when and (ii) when .
(b) Now taking as the independent variable, estimate (i) when and (ii) when .
(c) With neither variable identified as independent, estimate (i) when and (ii) when .
(d) Use an appropriate regression line to estimate if the independent variable 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 and English test marks .
| (English) | (French) |
|---|---|
| 19 | 20 |
| 42 | 43 |
| 44 | 33 |
| 52 | 56 |
| 51 | 50 |
| 53 | 67 |
| 66 | 73 |
| 56 | 68 |
| 60 | 77 |
| 37 | 43 |
(i) Obtain the product moment correlation between and and comment on it.
(ii) Obtain the regression line of on , correct to 3 decimal places.
(iii) Given that the regression coefficient for on is 0.66, show by calculation that this line is .
(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 (kg) and overall scores .
| Pupil | ||
|---|---|---|
| A | 38.6 | 60 |
| B | 41.8 | 58 |
| C | 38.6 | 72 |
| D | 54.1 | 59 |
| E | 44.9 | 62 |
| F | 32.1 | 94 |
| G | 38.4 | 86 |
| H | 41.4 | 62 |
| I | 30.2 | 81 |
| J | 52.4 | 54 |
(i) Calculate the product moment correlation coefficient between and for this sample.
(ii) Given and , calculate the product moment correlation coefficient between and 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 (years) and numbers of correctly defined words are:
| Child | ||
|---|---|---|
| A | 2.5 | 9 |
| B | 3.1 | 13 |
| C | 4.3 | 18 |
| D | 5.0 | 25 |
| E | 5.9 | 35 |
| F | 7.1 | 53 |
| G | 8.1 | 81 |
| H | 9.4 | 132 |
(i) Sketch the scatter diagram and comment on whether a linear regression of on is suitable.
(ii) Calculate the product moment correlation coefficient between and . Comment on the suitability of .
(iii) Find the least-squares regression of on . Sketch it on the scatter diagram of against .
CJC · Lecture · Example 10