A straight-line trend is to be fitted by the method of least squares to the data of the six years 2019 to 2024, taking
\( \displaystyle X = \frac{\text{year} - 2021.5}{0.5} \)
The values of X for the six years, in order, are
Answer & explanation
Correct answer: option 2
The correct answer is Option (2) → −5, −3, −1, 1, 3, 5
For an even number of years the origin is the midpoint of the two middle years, here 2021.5. Each year differs from 2021.5 by a half-number, and dividing by 0.5 doubles it:
\( \displaystyle 2019: \frac{2019 - 2021.5}{0.5} = \frac{-2.5}{0.5} = -5 \)
\( \displaystyle 2020: \frac{-1.5}{0.5} = -3, \quad 2021: \frac{-0.5}{0.5} = -1 \)
\( \displaystyle 2022: \frac{0.5}{0.5} = 1, \quad 2023: \frac{1.5}{0.5} = 3, \quad 2024: \frac{2.5}{0.5} = 5 \)
So X = −5, −3, −1, 1, 3, 5; they are odd numbers that go up by 2 each year, and \(\sum X = 0\).
Why the other options are incorrect
Option (1) −3, −2, −1, 1, 2, 3 — Incorrect. These are not equally spaced (−1 to 1 is a step of 2, the others are steps of 1); the formula gives values 2 apart for consecutive years.
Option (3) −2.5, −1.5, −0.5, 0.5, 1.5, 2.5 — Incorrect. These are the values of year − 2021.5 before dividing by 0.5.
Option (4) 0, 1, 2, 3, 4, 5 — Incorrect. These take 2019 as the origin; with the origin at 2021.5 the sum of the X values must be 0.