Master Moving Averages & Least Squares Method
🎯 6 Marks Weightage• Odd Duration Moving Averages
• Even Duration Moving Averages
• Trend Analysis
• Smoothing Time Series
• Straight Line Fit (y = a + bx)
• Normal Equations
• Trend Prediction
• Future Forecasting
Time-based Data — Complete One-Shot (31 min)
▶ Watch on YouTube →A 3-period moving average is calculated for the data: 10, 12, 15, 18, 20. What is the moving average for the third period?
When calculating a 4-year moving average, the centering process requires:
The normal equations for fitting y = a + bx using least squares method are:
The main purpose of calculating moving averages in time series analysis is to:
If Σx = 55, Σy = 350, Σxy = 3025, Σx² = 385, and n = 10, the value of 'b' in y = a + bx is:
In a 5-period moving average, the first moving average value will be placed against:
Assertion (A): The method of least squares minimizes the sum of squares of vertical deviations.
Reason (R): This ensures the best fit line passes through all data points.
Assertion (A): Moving averages with larger periods produce smoother trends.
Reason (R): Larger periods include more data points in each average, reducing the impact of individual fluctuations.
If the trend equation is y = 20 + 3x where x represents years starting from 2020 (x = 0), what is the predicted value for year 2025?
The data shows quarterly sales: Q1=100, Q2=150, Q3=200, Q4=250. What is the 4-quarter moving average?
🔒 Razorpay secured · UPI / Cards / Net Banking · Instant PDF to your email
The following data gives the number of effective accidents during various days of the week. Calculate 3-day moving averages and determine the trend values.
| Day | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| Accidents | 12 | 18 | 15 | 20 | 25 | 22 | 28 |
Step 1: Understanding 3-day Moving Average
A 3-day moving average is calculated by taking the average of three consecutive days. Since 3 is odd, the moving average is centered at the middle day.
| Day | Accidents (Y) | 3-Day Moving Average | Trend |
|---|---|---|---|
| Monday | 12 | - | - |
| Tuesday | 18 | (12+18+15)/3 = 15.00 | 15.00 |
| Wednesday | 15 | (18+15+20)/3 = 17.67 | 17.67 |
| Thursday | 20 | (15+20+25)/3 = 20.00 | 20.00 |
| Friday | 25 | (20+25+22)/3 = 22.33 | 22.33 |
| Saturday | 22 | (25+22+28)/3 = 25.00 | 25.00 |
| Sunday | 28 | - | - |
Final Answer: The trend values are: 15.00, 17.67, 20.00, 22.33, and 25.00 for Tuesday through Saturday respectively.
Calculate 4-year moving averages and centered moving averages for the following data:
| Year | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 |
|---|---|---|---|---|---|---|---|
| Sales (₹ Lakhs) | 80 | 90 | 92 | 83 | 94 | 99 | 92 |
Step 1: Understanding 4-Year Moving Average
Since 4 is even, we need to calculate both the 4-year moving average and then center it by taking the average of two consecutive moving averages.
| Year | Sales (Y) | 4-Year MA | Centered MA (Trend) |
|---|---|---|---|
| 2016 | 80 | - | - |
| 2017 | 90 | (80+90+92+83)/4 = 86.25 | - |
| 2018 | 92 | (90+92+83+94)/4 = 89.75 | (86.25+89.75)/2 = 88.00 |
| 2019 | 83 | (92+83+94+99)/4 = 92.00 | (89.75+92.00)/2 = 90.88 |
| 2020 | 94 | (83+94+99+92)/4 = 92.00 | (92.00+92.00)/2 = 92.00 |
| 2021 | 99 | - | - |
| 2022 | 92 | - | - |
Final Answer: Centered MAs: 2018 = 88.00, 2019 = 90.88, 2020 = 92.00 lakhs. Steady increasing trend.
Fit a straight line trend y = a + bx by the method of least squares for the following data and estimate the sales for the year 2024:
| Year | 2018 | 2019 | 2020 | 2021 | 2022 |
|---|---|---|---|---|---|
| Sales (₹ Crores) | 30 | 35 | 38 | 42 | 45 |
Step 1: Transforming the data
Take 2020 as origin (x = 0). Then: 2018→x=-2, 2019→x=-1, 2020→x=0, 2021→x=1, 2022→x=2
| Year | x | y | xy | x² |
|---|---|---|---|---|
| 2018 | -2 | 30 | -60 | 4 |
| 2019 | -1 | 35 | -35 | 1 |
| 2020 | 0 | 38 | 0 | 0 |
| 2021 | 1 | 42 | 42 | 1 |
| 2022 | 2 | 45 | 90 | 4 |
| Total | Σx=0 | Σy=190 | Σxy=37 | Σx²=10 |
From eq 1: 190 = 5a → a = 38
From eq 2: 37 = 10b → b = 3.7
For 2024: x = 4 → y = 38 + 3.7(4) = 38 + 14.8 = ₹52.8 crores
The production of a company (in thousand tonnes) for the years 2017–2023 is given below. Fit a linear trend equation and estimate the production for 2025.
| Year | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 |
|---|---|---|---|---|---|---|---|
| Production | 50 | 55 | 60 | 65 | 70 | 75 | 80 |
Step 1: Taking 2020 as origin (middle year, n=7).
| Year | x | y | xy | x² |
|---|---|---|---|---|
| 2017 | -3 | 50 | -150 | 9 |
| 2018 | -2 | 55 | -110 | 4 |
| 2019 | -1 | 60 | -60 | 1 |
| 2020 | 0 | 65 | 0 | 0 |
| 2021 | 1 | 70 | 70 | 1 |
| 2022 | 2 | 75 | 150 | 4 |
| 2023 | 3 | 80 | 240 | 9 |
| Total | Σx=0 | Σy=455 | Σxy=140 | Σx²=28 |
a = 455/7 = 65 | b = 140/28 = 5
For 2025: x = 5 → y = 65 + 25 = 90 thousand tonnes
From the following data, calculate 5-year moving averages and represent the trend:
| Year | 2015 | 2016 | 2017 | 2018 | 2019 | 2020 | 2021 | 2022 | 2023 |
|---|---|---|---|---|---|---|---|---|---|
| Production | 120 | 135 | 140 | 150 | 155 | 165 | 170 | 180 | 185 |
| Year | Production | Calculation | 5-Year MA |
|---|---|---|---|
| 2015 | 120 | - | - |
| 2016 | 135 | - | - |
| 2017 | 140 | (120+135+140+150+155)/5 | 140 |
| 2018 | 150 | (135+140+150+155+165)/5 | 149 |
| 2019 | 155 | (140+150+155+165+170)/5 | 156 |
| 2020 | 165 | (150+155+165+170+180)/5 | 164 |
| 2021 | 170 | (155+165+170+180+185)/5 | 171 |
| 2022 | 180 | - | - |
| 2023 | 185 | - | - |
🔒 Razorpay secured · UPI / Cards / Net Banking · Instant PDF to your email
