The yearly output (in thousand units) of a factory is given below.
| Year | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 | 2024 |
| Output (in thousand units) | 29 | 33 | 35 | 35 | 41 | 42 | 45 | 47 | 53 |
Using a straight-line trend fitted by the method of least squares, the trend value of the output (in thousand units) for the year 2018 is
Answer & explanation
Correct answer: option 1
The correct answer is Option (1) → 34.5
There are 9 years (an odd number), so the middle year 2020 is the origin: X = year − 2020 takes the values −4 to 4 and \(\sum X = 0\). For the trend line \(y = a + bX\):
\( \displaystyle a = \frac{\sum y}{n}, \quad b = \frac{\sum Xy}{\sum X^2} \)
The sums are
\(\sum y = 29 + 33 + 35 + 35 + 41 + 42 + 45 + 47 + 53 = 360\)
\(\sum Xy = -116 - 99 - 70 - 35 + 0 + 42 + 90 + 141 + 212 = 165\)
\(\sum X^2 = 16 + 9 + 4 + 1 + 0 + 1 + 4 + 9 + 16 = 60\)
So
\( \displaystyle a = \frac{360}{9} = 40 \)
\( \displaystyle b = \frac{165}{60} = 2.75 \)
The trend line is \(y = 40 + 2.75X\). For 2018, X = 2018 − 2020 = −2:
\(y = 40 + 2.75 \times (-2)\)
\(= 40 - 5.5\)
\(= 34.5\)
Why the other options are incorrect
Option (2) 35 — Incorrect. It is the actual output of 2018, not its trend value.
Option (3) 45.5 — Incorrect. It comes from taking X = +2; for 2018, before the origin, X = −2.
Option (4) 37.25 — Incorrect. It is the trend value for 2019 (X = −1).