Fit a straight-line trend by the method of least squares to the following data on a shop's sales, and estimate the trend value for 2022.
| Year | 2017 | 2018 | 2019 | 2020 | 2021 |
|---|---|---|---|---|---|
| Sales (₹ lakh) | 18 | 20 | 22 | 28 | 32 |
Step 1 — Code the years. With 5 years, take the middle year (2019) as , so 2017 = , 2018 = , 2019 = , 2020 = , 2021 = . This makes .
Step 2 — Build the working table:
| Year | ||||
|---|---|---|---|---|
| 2017 | 18 | 4 | ||
| 2018 | 20 | 1 | ||
| 2019 | 22 | 0 | ||
| 2020 | 28 | 1 | ||
| 2021 | 32 | 4 | ||
| Total |
Step 3 — Apply the simplified normal equations (valid because ):
So the fitted trend line is .
Step 4 — Read off the trend values by substituting each :
| Year | 2017 | 2018 | 2019 | 2020 | 2021 |
|---|---|---|---|---|---|
| Trend |
Step 5 — Forecast 2022. 2022 codes to : .
Verification: substituting the normal-equation values back, should equal ✓ (matches the table total), and should equal ✓ (matches the table total) — both check out, confirming are correct.
Trend line: (X measured from 2019, in years); estimated trend value for 2022 = ₹34.8 lakh.
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.