Consider the following data
| Year | 2012 | 2013 | 2014 | 2015 | 2016 |
| Production (in tonnes) | 15 | 20 | 25 | 30 | 35 |
The equation of straight line trend by method of least squares is :
Answer & explanation
Correct answer: option 3
The correct answer is Option (3) → \(y=25+5x\)
Note: The given answer is as per the official NTA Answer Key. However, the question does not say which year is taken as the origin (x = 0), and with the first year 2012 as the origin Option (4) could also be a possible answer, as explained below.
The trend line \(y=a+bx\) is fitted by the normal equations of least squares:
\(\sum y=na+b\sum x\)
\(\sum xy=a\sum x+b\sum x^2\)
Usual method: the number of years (5) is odd, so the middle year 2014 is taken as the origin, x = year − 2014. Then x = −2, −1, 0, 1, 2 and \(\sum x=0\).
\(\sum y=15+20+25+30+35=125\)
\(\sum x^2=4+1+0+1+4=10\)
\(\sum xy=-30-20+0+30+70=50\)
\( \displaystyle a=\frac{\sum y}{n}=\frac{125}{5}=25 \)
\( \displaystyle b=\frac{\sum xy}{\sum x^2}=\frac{50}{10}=5 \)
\(y=25+5x\) (origin 2014, x in years)
Other reading: the first year 2012 as the origin, x = year − 2012. Then x = 0, 1, 2, 3, 4.
\(\sum x=10\), \(\sum x^2=30\), \(\sum xy=0+20+50+90+140=300\)
\(125=5a+10b\)
\(300=10a+30b\)
Doubling the first equation gives \(250=10a+20b\); subtracting it from the second gives \(10b=50\), so \(b=5\) and \(a=15\):
\(y=15+5x\) (origin 2012)
Both are the same line (production rises by exactly 5 tonnes a year); only the origin of x differs.
Option (1) \(y=5+25x\) — Incorrect. The slope is 5 tonnes per year with either origin; 25x would mean a rise of 25 tonnes a year.
Option (2) \(y=10+15x\) — Incorrect. Production rises by 5 tonnes a year, not 15, whichever year is the origin.
Option (3) \(y=25+5x\) — Correct. With the middle year 2014 as the origin (the usual choice for an odd number of years), a = 25 and b = 5.
Option (4) \(y=15+5x\) — Should also be correct, though not the answer given by NTA. With 2012 as the origin, a = 15 and b = 5: at x = 0 it gives 15 tonnes, the production of 2012.