Consider the following data:
| Year | 2010 | 2011 | 2012 | 2013 | 2014 |
| 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\)
There are 5 years (an odd number), so take the middle year 2012 as origin with x = year − 2012 (unit 1 year). Then x = −2, −1, 0, 1, 2 and \(\sum x = 0\), and the normal equations of the trend line y = a + bx reduce to
\( \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\)
So
\( \displaystyle a = \frac{58}{5} = 11.6,\quad b = \frac{52}{10} = 5.2 \)
The trend line is y = 11.6 + 5.2x, with origin at 2012 and x in years.