A straight-line trend \(y = a + bX\) is fitted by the method of least squares to the production of a factory for 7 years, with the middle year as origin. If \(\sum y = 315\), \(\sum X = 0\), \(\sum Xy = 84\) and \(\sum X^2 = 28\), then the trend line is
Answer & explanation
Correct answer: option 4
The correct answer is Option (4) → \(y = 45 + 3X\)
Since \(\sum X = 0\), the normal equations \(\sum y = na + b\sum X\) and \(\sum Xy = a\sum X + b\sum X^2\) reduce to
\( \displaystyle a = \frac{\sum y}{n}, \quad b = \frac{\sum Xy}{\sum X^2} \)
With n = 7:
\( \displaystyle a = \frac{315}{7} = 45 \)
\( \displaystyle b = \frac{84}{28} = 3 \)
So the trend line is \(y = 45 + 3X\).
Why the other options are incorrect
Option (1) \(y = 3 + 45X\) — Incorrect. The values of a and b are interchanged; a = 45 is the constant term and b = 3 is the coefficient of X.
Option (2) \(y = 52.5 + 3X\) — Incorrect. Here 315 is divided by 6; there are 7 years, so a = 315 ÷ 7 = 45.
Option (3) \(y = 45 + 0.33X\) — Incorrect. Here b is taken as 28 ÷ 84; the correct value is b = 84 ÷ 28 = 3.