Professional Documents
Culture Documents
McGraw-Hill Education / Jacobs Copyright ©2020 McGraw-Hill Education. All rights reserved. No reproduction or distribution
without the prior written consent of McGraw-Hill Education.
OPERATIONS MANAGEMENT
Lecture - 7
Chapter 3: Forecasting
Forecasting in Starbucks
• Starbucks, the largest coffee chain in the world with over 30000 stores in
80 countries.
o Variety of products beyond coffee, coffee beans, salads, sandwiches, mugs, etc.
o Product offerings varies by season, and some are store location-specific.
o Many are perishable, some runs the risk of becoming obsolete.
o Starbucks branded coffee and ice cream are sold in grocery stores.
o Need for forecasting regional and global demand as well as store-specific or demand.
1
2023-10-22
Decoupling Points
2
2023-10-22
Forecasting Methods
Use time series data Use cross sectional or time series data
3
2023-10-22
Components of Demand
Components of Demand
Exhibit 3.1
4
2023-10-22
Components of Demand
• Identification of trend
lines is a common
starting point when
developing a forecast
• Common trend types
include linear, S-curve,
asymptotic, and
exponential : we focus
on linear
10
11
5
2023-10-22
Model Selection
12
13
6
2023-10-22
• No Trend; No Seasonality
• Moving Average Techniques
• Simple Moving Average
• Weighted Moving Average
• Exponential Smoothing Technique
• With Trend but Not Seasonality
• Exponential Smoothing With Trend
• Simple Linear Regression (least Squares method)
• With Trend and Seasonality
• Additive vs Multiplicative Demand Models
14
Smoothing methods
15
7
2023-10-22
Moving Averages
• Note that, each observation in the moving average calculation receives the same
weight, 1/n
16
17
8
2023-10-22
Week Demand
1 650
2 678
3 720 • Question: What are the 3-week and 6-week
4
5
785
859
moving average forecasts for demand?
6
7
920
850
• Assume you only have 3 weeks and 6 weeks
8 758 of actual demand data for the respective
9 892
10 920 forecasts
11 789
12 844
𝑨𝒕 𝟏 + 𝑨𝒕 𝟐 + 𝑨𝒕 𝟑 + +𝑨𝒕 𝒏
𝑭𝒕 =
𝒏
18
19
9
2023-10-22
𝐹 =𝑤 𝐴 +𝑤 𝐴 +𝑤 𝐴 + ⋯+ 𝑤 𝐴
𝑤𝒏 = weight given to time period “t” occurrence (weights must add to one)
𝒘𝒊 = 𝟏
𝒊 𝟏
20
Question: Given the weekly demand and weights, what is the forecast for the
4th period or Week 4?
Week Demand
Period Weights
1 650
t-1 0.5
2 678
t-2 0.3
3 720
t-3 0.2
4
Note that the weights place more emphasis on the most recent data,
that is time period “t-1”
21
10
2023-10-22
22
23
11
2023-10-22
24
Week Demand
1 820 Question: Given the weekly demand data, what are the
2 775 exponential smoothing forecasts for periods 2-10 using
3 680 a=0.2?
4 655 Assume F1=D1
5 750
𝑭𝒕 = 𝑭𝒕 𝟏 + 𝜶(𝑨𝒕 𝟏 − 𝑭𝒕 𝟏)
6 802 Or,
7 798 𝑭𝒕 = 𝜶𝑨𝒕 𝟏 + 𝟏 − 𝜶 𝑭𝒕 𝟏
8 689 Where,
9 775 𝐹 =𝐹𝑜𝑟𝑒𝑐𝑎𝑠𝑡 𝑣𝑎𝑙𝑢𝑒 𝑓𝑜𝑟 𝑡𝑖𝑚𝑒 𝑝𝑒𝑟𝑖𝑜𝑑 𝑡
𝐹 =𝐹𝑜𝑟𝑒𝑐𝑎𝑠𝑡 𝑣𝑎𝑙𝑢𝑒 𝑓𝑜𝑟 𝑡ℎ𝑒 𝑝𝑟𝑒𝑣𝑖𝑜𝑢𝑠 𝑡𝑖𝑚𝑒 𝑝𝑒𝑟𝑖𝑜𝑑 𝑡−1
10 𝐴 =𝐴𝑐𝑡𝑢𝑎𝑙 𝑜𝑐𝑐𝑢𝑟𝑒𝑛𝑐𝑒 𝑓𝑜𝑟 𝑡𝑖𝑚𝑒 𝑝𝑒𝑟𝑖𝑜𝑑 𝑡−1
𝛼=𝐴𝑙𝑝ℎ𝑎, 𝑡ℎ𝑒 𝑠𝑚𝑜𝑜𝑡ℎ𝑖𝑛𝑔 𝑐𝑜𝑛𝑠𝑡𝑎𝑛𝑡 : Determines how reactive your
forecasts are to actual demand changes
25
12
2023-10-22
26
Note how that the smaller alpha results in a smoother line in this example. Forecasts
are less reactive to demand changes in that case.
27
13
2023-10-22
• No Trend; No Seasonality
• Moving Average Techniques
• Simple Moving Average
• Weighted Moving Average
• Exponential Smoothing Technique
• With Trend but Not Seasonality
• Exponential Smoothing With Trend
• Simple Linear Regression (least Squares method)
• With Trend and Seasonality
• Additive vs Multiplicative Demand Models
28
29
14
2023-10-22
30
ACTUAL
MONTH F T FIT
DEMAND
1 31 30.00 1.00 31.00
2 34 31.00 1.00 32.00
3 33 32.60 1.18 33.78
4 35 33.55 1.11 34.66 𝐹 = 𝐹𝐼𝑇 + 𝛼 𝐴 − 𝐹𝐼𝑇 = 32 + 0.3 × 34 − 31 = 32.60
5 37 34.76 1.14 35.90 𝑇 = 𝑇 + 𝛿 𝐹 − 𝐹𝐼𝑇 = 1 + 0.3 × 32.60 − 32 = 1.18
6 36 36.23 1.24 37.47 𝐹𝐼𝑇 = 𝐹 + 𝑇 = 32.6 + 1.18 = 33.78
7 38 37.03 1.11 38.14
8 40 38.10 1.10 39.19
9 40 39.43 1.17 40.60
10 41 40.42 1.11 41.54
31
15
2023-10-22
32
𝑌 = 𝑎 + 𝑏𝑡
Where,
𝑌 −𝑡ℎ𝑒 𝑑𝑒𝑝𝑒𝑛𝑑𝑒𝑛𝑡 𝑣𝑎𝑟𝑖𝑎𝑏𝑙𝑒 𝑣𝑎𝑙𝑢𝑒, (Sales)
𝑎 −𝑡ℎ𝑒 𝑦−𝑖𝑛𝑡𝑒𝑟𝑐𝑒𝑝𝑡 𝑜𝑓 𝑡ℎ𝑒 𝑙𝑖𝑛𝑒
𝑏 −𝑡ℎ𝑒 𝑠𝑙𝑜𝑝𝑒 𝑜𝑓 𝑡ℎ𝑒 𝑙𝑖𝑛𝑒
𝑡 −𝑖𝑛𝑑𝑒𝑥 𝑓𝑜𝑟 𝑡ℎ𝑒 𝑡𝑖𝑚𝑒 𝑝𝑒𝑟𝑖𝑜𝑑
33
16
2023-10-22
34
n t y ty t2
∑ 𝒕𝒚 − 𝒏𝒕̅ 𝒚 𝟐𝟔𝟖, 𝟐𝟎𝟎 − 𝟏𝟐 ∗ 𝟔. 𝟓 ∗ 𝟐, 𝟕𝟕𝟗. 𝟐
1 1 600 600 1 𝒃= = = 𝟑𝟓𝟗. 𝟔
∑ 𝒕𝟐 − 𝒏𝒕̅𝟐 𝟔𝟓𝟎 − 𝟏𝟐 ∗ 𝟔. 𝟓𝟐
2 2 1,550 3,100 4 𝐚 = 𝒚 − 𝒃𝒕̅ = 𝟐, 𝟕𝟕𝟗. 𝟐 − 𝟑𝟓𝟗. 𝟔 ∗ 𝟔. 𝟓 = 𝟒𝟒𝟏. 𝟔𝟕
3 3 1,500 4,500 9
4 4 1,500 6,000 16 𝒀𝟏 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟏 = 𝟖𝟎𝟏. 𝟑
5 5 2,400 12,000 25 𝒀𝟐 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟐 = 𝟏, 𝟏𝟔𝟎. 𝟗
6 6 3,100 18,600 36 ⋮
7 7 2,600 18,200 49 𝒀𝟏𝟐 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟏𝟐 = 𝟒, 𝟕𝟓𝟕. 𝟏
8 8 2,900 23,200 64
The forecast is then extended to periods 13-16
9 9 3,800 34,200 81
10 10 4,500 45,000 100 𝒀𝟏𝟑 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟏𝟑 = 𝟓, 𝟏𝟏𝟔. 𝟒
11 11 4,000 44,000 121 𝒀𝟏𝟒 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟏𝟒 = 𝟓, 𝟒𝟕𝟔. 𝟎
12 12 4,900 58,800 144 𝒀𝟏𝟓 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟏𝟓 = 𝟓, 𝟖𝟑𝟓. 𝟔
SUM 78 33,350 268,200 650 𝒀𝟏𝟔 = 𝒂 + 𝒃𝒕 = 𝟒𝟒𝟏. 𝟔𝟕 + 𝟑𝟓𝟗. 𝟔 ∗ 𝟏𝟔 = 𝟔, 𝟏𝟗𝟓. 𝟐
Average 6.5 2779.2
𝒕̅ 𝒚
35
17
2023-10-22
36
• No Trend; No Seasonality
• Moving Average Techniques
• Simple Moving Average
• Weighted Moving Average
• Exponential Smoothing Technique
• With Trend but Not Seasonality
• Exponential Smoothing With Trend
• Simple Linear Regression (least Squares method)
• With Trend and Seasonality
• Additive vs Multiplicative Demand Models
37
18
2023-10-22
38
Seasonal Variation
39
19
2023-10-22
40
41
20
2023-10-22
step 3 = divide avg. seasonal dem. by avg. dem. to get seasonal indices
step 4 = de-seasonalize the data: divide the actuals by its seasonal index
42
43
21
2023-10-22
44
Forecast Errors
• Forecast error is the difference between the forecast value and what
actually occurred
• All forecasts contain some level of error
• Sources of error
• Bias – when a consistent mistake is made
• Random – errors that are not explained by the model being used
• Measures of error
• Mean absolute deviation (MAD)
• Mean absolute percent error (MAPE)
• Tracking signal
45
22
2023-10-22
MAD =
∑ 𝐴 −𝐹 Tracking signal indicates whether
𝑛
𝑤ℎ𝑒𝑟𝑒 forecast errors are accumulating
𝑡 = period number over time or not (either positive or
𝐴 = actual demand during period 𝑡 negative errors)
𝐹 = forecast demand during period 𝑡
𝑛 = total number of periods Running sum of forecast errors
𝑇𝑆 =
Mean absolute deviation
46
47
23
2023-10-22
48
• Identify factors (independent variables) that can be used to predict the values for
the forecast variable (e.g., sales).
• A little more involved data collection than the time series cases.
• Use Excel (Tools/Data analysis) to obtain the statistics.
• Check each independent variable and the intercept for statistical significance (p-
values ~ ≤ 0.05)
• Drop insignificant variable(s), one at a time and re-run the model as many times
as needed
• If the “clean” model has a good adjusted R2 (subjective measure) the final model
can be used to make decisions.
See the solution for Problem 29 in the Solutions to Suggested Problems from
Forecasting Chapter.pdf.
49
24
2023-10-22
50
51
25