Consider the following data:
| Year | 2012 | 2013 | 2014 | 2015 | 2016 |
| Production (in tonnes) | 3 | 6 | 9 | 16 | 24 |
A straight line trend by the method of least squares is:
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(y=11.6+5.2x\)
With an odd number of years, the usual choice is to take the middle year 2014 as the origin, with x = year − 2014 in units of one year. Then x = −2, −1, 0, 1, 2, and \(\sum x = 0\).
For the trend y = a + bx the normal equations become, since \(\sum x = 0\),
\( \displaystyle a = \frac{\sum y}{n},\quad b = \frac{\sum xy}{\sum x^2} \)
The sums:
\(\sum y = 3 + 6 + 9 + 16 + 24 = 58\)
\(\sum xy = -6 - 6 + 0 + 16 + 48 = 52\)
\(\sum x^2 = 4 + 1 + 0 + 1 + 4 = 10\)
\( \displaystyle a = \frac{58}{5} = 11.6,\quad b = \frac{52}{10} = 5.2 \)
So the trend line is y = 11.6 + 5.2x, with the origin at 2014 and x in years.