Porisma

Worked solution

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

(i) Square each observed-minus-predicted difference

Answer

S=3.2363S=3.2363 (in squared thousands of dollars).

The source prints all five predicted values: 3.7,3.9,4.4,4.6,5.03.7,3.9,4.4,4.6,5.0. Pair them with the observed earnings and calculate:

AgeObservedPredictedResidual
193.163.70−0.54
213.213.90−0.69
263.344.40−1.06
284.034.60−0.57
323.995.00−1.01

S=(−0.54)2+(−0.69)2+(−1.06)2+(−0.57)2+(−1.01)2=3.2363.\begin{aligned}&S\\ & =(-0.54)^2+(-0.69)^2\\ &{}+(-1.06)^2+(-0.57)^2\\ &{}+(-1.01)^2\\ & =3.2363.\end{aligned}

The residuals, squares and final sum complete the blank Student working space. Square each residual before adding; do not square their sum or take a square root.

How did this part go?

(ii) Compare the same error measure on the same data

Answer

Bertrand’s model gives the better fit because 2<3.23632<3.2363.

The source states that Bertrand’s smaller sum of squared residuals makes it a better fit. Both values compare vertical earnings errors for these same five observations. This comparison does not establish that Bertrand’s line is the least-squares optimum among every possible line, or that either model predicts other populations accurately.

How did this part go?

Solution notes

Printed predictions and model-comparison conclusion retained. Residual arithmetic and units authored for the blank sum. No unsupported equation for Bertrand’s line invented; no printed marks.