Given the data for the sales of a product in a state is as follows:
| Year | 2005 | 2006 | 2007 | 2008 | 2009 |
| Sales (In lakh Rs.) | 150 | 130 | 160 | 170 | 200 |
The equation of the straight-line trend by method of least squares is:
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(162 + 14x\)
There are 5 years (odd), so take the middle year 2007 as origin: x = year − 2007, giving x = −2, −1, 0, 1, 2 and \(\sum x = 0\). The trend line is y = a + bx with
\( \displaystyle a = \frac{\sum y}{n},\quad b = \frac{\sum xy}{\sum x^2} \)
The sums:
\(\sum y = 150 + 130 + 160 + 170 + 200 = 810\)
\(\sum xy = -300 - 130 + 0 + 170 + 400 = 140\)
\(\sum x^2 = 4 + 1 + 0 + 1 + 4 = 10\)
So:
\( \displaystyle a = \frac{810}{5} = 162,\quad b = \frac{140}{10} = 14 \)
The trend equation is y = 162 + 14x (origin 2007, x in years).