Forecasting_Session1_2_3_4 (2)
Forecasting_Session1_2_3_4 (2)
Course Pages
Classroom Link: https://classroom.google.com/c/NzMzODcwNjE4MjQ4?cjc=rna775p
Class Code: rna775p
Class Rules
Session Topics
❖ Forecasting
❖ Aggregate Requirement Planning
❖ Material Requirement Planning
❖ Scheduling
❖ Supply Chain Management
❖ Quality Management
❖ Lean and TPM
❖ Theory of Constraints
❖ Waiting Line Management
❖ Service Management
❖ Project Management
Resources
❖ Textbook
❖ Notes
❖ Case study
❖ Data Set
❖ Excel/ Python
❖ Group Exercise
❖ Industry Experts
Forecasting
Alok Raj
PODS Area
Office: Room No 14, 2nd Floor, Library Building, Tel. 3439
Email: [email protected]
Objectives
❖ Understand the fundamental principles of forecasting.
Products/
Services
Demand
Uncertainty
Good
Forecasting model
Material Material
Make-to-Order- Pull
Types of Demand
❖ Independent demand (finished product)
❖ Dependent demand (component parts or subassemblies)
https://www1.grc.nasa.gov/wp-content/uploads/NASA-Glenn-Airplane-Parts-Image-2.jpg
What is the way for forecasting
First data: Diaper data sales
Year Actual
Demand
(×100000)
2014 25
2015 26
2016 24
2017 28
Actual Demand (×100000)
2018 26 30
28
2019 27 26
24
2020 26 22
20
2021 28 18
16
2022 25 14
12
10
2023 ?
2014 2015 2016 2017 2018 2019 2020 2021 2022 2023
Second data: Passenger data sales
Sales of automobiles in India
25.00
20.00
Sales of automobiles in India (in millions)
15.00
10.00
5.00
0.00
2010 2012 2014 2016 2018 2020 2022 2024 2026
Jun-16
Aug-16
Nov-16
Nov-17
Oct-16
Jun-17
Aug-17
Oct-17
Feb-16
Apr-16
May-16
Jul-16
Sep-16
Dec-16
Feb-17
Apr-17
May-17
Jul-17
Sep-17
Dec-17
Jan-16
Jan-17
Mar-16
Mar-17
30 Jun-17 374
2017
31 Jul-17 413
32 Aug-17 405
33 Sep-17 355
34 Oct-17 306
35 Nov-17 271
36 Dec-17 306
37 Jan-18
38 Feb-18
39 Mar-18
40 Apr-18
41 May-18
42 Jun-18
2018 ?
43 Jul-18
44 Aug-18
45 Sep-18
46 Oct-18
47 Nov-18
48 Dec-18
Quantitative Methods
0
2000 2005 2010 2015 2020 2025
Do you think forecasting approach will be same for all type of products
Quantitative Methods of forecasting
Demand Forecasting
(Independent demand)
✓ Average
✓ Simple moving average ✓ Regression analysis ✓ Seasonality index
✓ Weightage average ✓ Holt’s exponential ✓ Regression with
✓ Exponential smoothing smoothing dummy coding
Method 1 : The Naïve Method
● Ft=A t-1 : Simplest Approach to Forecasting
1 130 -
130/1 =130
2 155
(130+155)/2 =142.50
3 145
(130+155+145)/3 = 143.33
4 160
(130+155+145+160)/4 = 147.5
5 151
6 143 (130+155+145+160+151)/5= 148.2
7 (130+155+145+160+151+143)/6 = 147.33
The Moving Average Forecast
“The recent history is more relevant ”
● The Simple Average forecast uses ALL THE HISTORY of demands to
generate the forecast for the next period
165
160
155
150
145
140
135
130
125
120
1 2 3 4 5 6 7
● Formula
n=3:
Period Demand Forecast w t-1=0.5, w t-2=0.3,
1 130 - w t-3=0.2
Measures of Error
❖ Mean absolute deviation (MAD)
❖ Mean absolute percent error (MAPE)
❖ Mean squared error (MSE)
❖ Root mean sum of square (RMSE)
Measuring Forecast Errors: Mean Absolute
Deviation (MAD)
n
A
n
t - Ft
t=1
t=1
MAD =
nn
❖ The ideal Mean Absolute Deviation (MAD)is zero which would mean there
is no forecasting error at all.
❖ The larger the MAD, the less the accurate the resulting model.
Measuring Forecast Errors: Mean Absolute
Deviation (MAD)
Absolute
Period Demand Forecast Error Error
1 130 - - -
Squared
Period Demand Forecast Error Error
1 130 - - -
2 155 130.00 25.00 625.00
3 145 155.00 -10.00 100.00
4 160 145.00 15.00 225.00
5 151 160.00 -9.00 81.00
6 143 151.00 -8.00 64.00
MSE = 219.00
Measuring Forecast Errors: Mean Absolute
Percentage Error (MAPE)
Abs %
Period Demand Forecast Error % Error
Error
1 130 - - - -
2 155 130.00 25.00 =25/155=16.13% 16.13%
3 145 155.00 -10.00 =-10/145=-6.90% 6.9%
4 160 145.00 15.00 =15/160=9.38% 9.38%
5 151 160.00 -9.00 =-9/151=-5.96% 5.96%
6 143 151.00 -8.00 =-8/143=-5.59% 5.59%
MAPE 8.79%
Measure of Forecast Error
σ 𝐴𝑡 −𝐹𝑡
⦁ Mean Absolute deviation (MSD): 𝑀A𝐷 = 𝑛
σ 𝐴𝑡 −𝐹𝑡 2
⦁ Mean squared error (MSE): 𝑀A𝐷 = 𝑛
⦁ The MSE penalizes large errors more significantly than small efforts because all
errors are squared.
⦁ Lower MSE implies better prediction
❖ Data Volatility: SMAs can smooth out short-term fluctuations and highlight longer-term
trends in data that is very volatile. This can be beneficial when you want to avoid reacting
to what might be considered "noise" in the data.
❖ Data Patterns: If the data has a seasonal pattern or other cyclical changes, neither SMA
nor WMA may be sufficient as they don't inherently account for such patterns. More
sophisticated methods like Exponential Smoothing or ARIMA may be more suitable in
such cases.
Practice Problem-1
Day Number Sold a) If a two-period moving average had been used to
1 25 forecast sales, what would the daily forecasts have
2 31 been starting with the forecast for Day 3?
3 29 b) If a four-period moving average had been used
4 33 determine what the forecasts would have been for
5 34 each day, starting with Day 5.
6 37 c) Use a three-period weighted moving average with
7 35 w1=0.2, w2=0.3, and w3=0.5 and forecast sales for
8 32 the 4th day onwards.
9 38 d) Use a four-period weighted moving average with
10 40 w1=0.4, w2=0.3, w3=0.2, and w4=0.1and forecast
11 37 sales for the 5th day onwards.
12 32 e) Plot the original data and each set of forecasts on
the same graph. Which forecast has the better
ability to respond quickly to changes?
Method 5 : Exponential Smoothing
Smoothing constant
α = 0.10 0.271
α = 0.90 0.999
Summary: Exponential Smoothing
Most popular
● Because…
❖ Formulating an exponential model is relatively easy and
it is surprisingly accurate.
❖ Little computation is required so the computer
storage requirements are small
12 2015 2789678
2732983 1000000
13 2016 3047582 500000
14 2017 3288581 0
15 2018 3377389 2000 2005 2010 2015 2020 2025
16 2019 2773575
17 2020 3062280
18 2021 3650698
19 2022 4578639
20 2023 4901844
21 2024 4382797
To determine the significance levels (1%, 5%, and 10%) of a statistical result based on
the t-value and p-value, we follow these steps
Standard
Coefficients Error t Stat P-value Lower 95% Upper 95% Lower 95.0% Upper 95.0%
❖ Seasonality refers to periodic fluctuations that regularly occur in data due to seasonal
factors. It's often seen in monthly or quarterly sales data, where certain times of the year
are consistently higher or lower than others.
Approach
❖Seasonal Factor
2. Decomposition of Time Series: Time series data can be decomposed into three components: trend, seasonality,
and randomness. This helps in understanding the underlying patterns. Methods like STL (Seasonal and Trend
decomposition using Loess) are commonly used.
3. Choosing the Right Model: Depending on the nature of the seasonality, different models can be applied.
Common models include:
1. Seasonal Factor
2. Regression Approach
3. SARIMA (Seasonal ARIMA): An extension of ARIMA that specifically addresses seasonality.
4. Exponential Smoothing: Methods like Holt-Winters which are simple yet powerful for forecasting
seasonal data.
4. Parameter Selection: This involves choosing parameters that best fit the model to your data. For SARIMA,
these include seasonal order and non-seasonal order parameters.
5. Model Validation: Before using the model for forecasting, it’s crucial to validate it using historical data. This
involves checking the model’s performance against known data and adjusting as necessary.
6. Forecasting: Once the model is validated, it can be used to forecast future data points.
Time series data with seasonality
Sales Year 1 Year 2 Year 3 Year 4 Year 5 Demand Dt
25,000
JAN 2,000 3,000 2,000 5,000 5,000
❖ Assume that sales in Year 6 will follow similar seasonal patterns. Predict the sales for September and November in Year 6 if
the growth rate remains consistent with previous years.
❖ Suggest two strategies the business can adopt to boost sales during off-season months like February and April.
Regression Approach with help of dummy coding
❖ Solve this problem with help of dummy coding and estimate month wise sales
for Year 6
Dummy coding
✓ Forecasting at FoodMart
Case Article
Forecasting Beer
Demand at
Anadolu Efes
❖ Efes forecasts the monthly demand for the coming year during the fall of the current
year.
❖ Historically, high-level sales managers, based on input from their sales personnel, have
done this forecasting mostly subjectively.
❖ They now want to formalize this process so that significant factors on beer demand can
be identified and used to predict the monthly demand
Questions
❖ Plot the monthly beer demand and discuss your observations.
❖ Run the multiple linear regression model to explain the monthly beer demand in terms
of the predictor variables, discuss the validity of the model, and interpret the results.
❖ Are there any problems with the validity of the original model? If so, make the
necessary modifications and repeat the process with new model(s). Employ variable
selection methods to eliminate irrelevant variables.
❖ Are there unusual observations? Interpret and discuss.
❖ Discuss the predictive capability of each predictor variable. Make predictions for the
monthly demands of the following year. Make necessary assumptions if you need data
on predictor variables. You may create scenarios by assuming some values for
“uncontrollable” variables and trying some values for “controllable” variables. Discuss
the results.
❖ Are there alternative models that include different sets of predictor variables with
approximately the same explanation power? How would you interpret such results?
Key Takeaways
• Time period, beer price, Ramadan proportion, and Tou index are critical
factors with statistically significant impacts.