Solution:
This past paper question is beyond the current ISC syllabus; it is included for extra practice.
Key idea: The regression line of y on x is y−yˉ=byx(x−xˉ), and the regression line of x on y is x−xˉ=bxy(y−yˉ). With n pairs of values, byx=n∑x2−(∑x)2n∑xy−∑x∑y and bxy=n∑y2−(∑y)2n∑xy−∑x∑y. To estimate y from a given x, we use the line of y on x.
Step 1 — Make the table of sums.
There are n=8 pairs. We list x, y, x2, y2 and xy for each pair and add each column.
| x | y | x2 | y2 | xy |
|---|
| 9 | −4 | 81 | 16 | −36 |
| 10 | −3 | 100 | 9 | −30 |
| 11 | −1 | 121 | 1 | −11 |
| 12 | 0 | 144 | 0 | 0 |
| 13 | 1 | 169 | 1 | 13 |
| 14 | 3 | 196 | 9 | 42 |
| 15 | 5 | 225 | 25 | 75 |
| 16 | 8 | 256 | 64 | 128 |
| Total: 100 | 9 | 1292 | 125 | 181 |
Step 2 — Find the means.
We divide each column total of x and y by n=8.
xˉ=8100
xˉ=225
yˉ=89
Step 3 — Work out the three building blocks.
These three quantities appear in the formulas for byx and bxy.
n∑xy−∑x∑y=8×181−100×9
n∑xy−∑x∑y=548
n∑x2−(∑x)2=8×1292−1002
n∑x2−(∑x)2=336
n∑y2−(∑y)2=8×125−92
n∑y2−(∑y)2=919
Step 4 — Find the regression coefficients.
We divide as the formulas say and simplify.
byx=336548
byx=84137
bxy=919548
Step 5 — Write the line of y on x.
We put the means and byx into y−yˉ=byx(x−xˉ) and multiply both sides by 84 to clear the fractions.
y−89=84137(x−225)
84y−2189=137x−23425
84y=137x−1618
In decimal form, this line is y≈1.631x−19.262.
Step 6 — Write the line of x on y.
We put the means and bxy into x−xˉ=bxy(y−yˉ) and multiply both sides by 919.
x−225=919548(y−89)
919x−222975=548y−21233
919x=548y+10871
In decimal form, this line is x≈0.596y+11.829.
Step 7 — Estimate y when x=13.5.
We are estimating y from a known x, so we use the line of y on x from Step 5.
84y=137×13.5−1618
84y=231.5
y=84231.5
y≈2.76
Watch out: Do not use the line of x on y to estimate y. Each line is meant only for estimating the variable on its left-hand side.
Therefore, the line of y on x is 84y=137x−1618, the line of x on y is 919x=548y+10871, and the estimated value of y when x=13.5 is about 2.76.