Juvenile Height

In the table below we show average juvenile height as a function of age [4].

Age 

1

3

5

7

9

11

13

Height (cm) 

75

92

108

121

130

142

155

Square Error Calculation

The sum of square errors is computed by:

  1. Compute the difference from the y value of the data point to y value on the line
    ei = yi - y(xi) = yi - (axi + b), i = 1,...n.
  2. Square the error, then add all the errors together.

For the juvenile height, we have

e1 = y1 - (6.46x1 + 72.3) = 75 - (6.46(1) + 72.3) = -3.76

e2 = y2 - (6.46x2 + 72.3) = 92 - (6.46(3) + 72.3) = 0.32

e3 = 108 - (6.46(5) + 72.3) = 3.40

e4 = 121 - (6.46(7) + 72.3) = 3.48

e5 = 130 - (6.46(9) + 72.3) = -0.44

e6 = 142 - (6.46(11) + 72.3) = -1.36

e7 = 155 - (6.46(13) + 72.3) = -1.28

The sum of square errors is

e12 + e22 +... + e72 = (-3.76)2 + (0.32)2 + ... + (-1.28)2 = 41.5