Forecasting Lecture Material
Forecasting Lecture Material
“The most important things in life are the connections you make with others.”
Learning
Roadmap
Importance Features of
of forecast forecast
Elements of Forecasting
good forecast process
Forecast Forecasting
errors techniques
Why forecasting • Forecasting seeks to find the right balance between
supply and demand
matter?
Why Every Business Needs it?
• Forecasting reduces the risk of uncertainty
Forecast Defined &
its Nature
• Forecast is a statement about
the future value of a variable of
interest
• Forecasts are made with
reference to a specific time
horizon.
• Forecasts affect decisions and
activities throughout an
organization.
Features
Common to
All Forecasts
1. Techniques assume some
underlying causal system that
existed in the past will persist into
the future
2. Forecasts are not perfect
3. Forecasts for groups of items are
more accurate than those for
individual items
4. Forecast accuracy decreases as the
forecasting horizon increases
Determine the Establish a time Obtain, clean, and
Steps in the purpose of the
forecast
horizon analyze appropriate
data
Forecasting
Process
MAD =
Actual t − Forecastt MAD weights all errors evenly
Actual t − Forecastt
Actual t
100 MAPE weights errors according to
MAPE = relative error
n
Forecast Error Calculation Example
Solution
Find:
a) MAD
b) MSE
c) MAPE
Solution
Solution
Forecasting Approaches
• Qualitative forecasting
• permit the inclusion of soft
information
• Quantitative forecasting
• Rely on hard data
• Involves either the projection of
historical data or the
development of associative
methods
Forecast Techniques
Qualitative Quantitative
Qualitative Forecast Techniques
Executive opinions
Judgmental
Sales force opinions
Consumer
Basic Forecasting
Techniques:
Qualitative
Methods
https://hbr.org/1971/07/how-to-choose-
the-right-forecasting-technique
Quantitative Forecast Techniques
Naive
Associative
Time-series
Moving average
Regression
Exponential smoothing
Linear Trend
Basic Forecasting
Techniques:
Time Series and
Projection
https://hbr.org/1971/07/how-to-choose-
the-right-forecasting-technique
Time-Series Forecasts • Time-series forecast – a
time-ordered sequence of
observations taken at
regular time intervals
• Assume that future values
of the time-series can be
estimated from past values
of the time-series
• Analysis of time-series
data involves identifying
the underlying behavior of
the series
Time-Series Behaviors
Trend
Seasonality
Cycles
Irregular variations
Random variation
Trends and Seasonality
Trend Seasonality
A long-term upward or downward Short-term, fairly regular variations related
movement in data to the calendar or time of day
Cycle and
Variation
• A long-term
upward or
Cycle downward
movement in data
• Due to unusual
Irregular circumstances that
do not reflect
variation typical behavior
Time-Series Forecasting
Naïve Forecast
• Seasonal
The forecast for demand for school bags this
school year is equal to demand for school bag last
school year.
Time-Series Forecasting
Naïve Forecast
• Example
• Trend
Suppose the last two values were 50 and 55. What is the forecast for
the next period?
1
2 50
3 55 +5 55+5 = 60
the forecast is equal to the last value of the series plus or minus the difference between the last two values of the series.
• Averaging techniques smooth variations in
the data
• They can handle step changes or gradual
changes in the level of a series
Time-Series Forecasting • When is this technique appropriate?
Averaging • Techniques
1. Moving average
2. Weighted moving average
3. Exponential smoothing
• Technique that averages a number of the most recent
actual values in generating a forecast
Moving Average
𝑛 𝑛
where
𝐹𝑡 = Forecast for time period 𝑡
MA𝑛 = 𝑛 period moving average
𝐴𝑡−𝑖 = Actual value in period 𝑡 − 𝑖
𝑛 = Number of periods in the moving average
Moving Average Example
Donna’s Garden Supply wants a 3-month moving-average forecast, including a
forecast for next January, for shed sales.
3-month
Month Demand Moving Average
1 650
2 700
3 810
4 800
5 900
6 700
Freight car loadings over a 12-year period at a busy port are as follows:
Practice 3
a. Plot the data and the regression line on the same graph.
b. Determine the correlation coefficient and interpret it.
Round r to four decimals.
Ft = wt ( At ) + wt −1 ( At −1 ) + ... + wt − n ( At − n )
Time-Series Forecasting
where
wt = weight for period t , wt −1 = weight for period t − 1, etc.
At = the actual value for period t , At −1 = the actual value for period t − 1, etc.
Sample Problem
Given the following demand data:
a. Determine the demand for June using a weighted moving
average with a weight of .40 for the most recent period, .30 for
the next most recent, .20 for the next and .10 for the next.
b. If the actual demand for June is 49, forecast demand for July
using the same weights as in part a.
Ft = Ft −1 + ( At −1 − Ft −1 )
Time-Series Forecasting
where
Ft = Forecast for period t
Ft −1 = Forecast for the previous period
= Smoothing constant
At −1 = Actual demand or sales from the previous period
Exponential
Smoothing Example
In January, a local car
dealer predicted February
demand for 142 Ford
Mustangs. Actual February
demand was 153 autos.
Using a smoothing constant
chosen by management of a
= .20, the dealer wants to
forecast March demand
using the exponential
smoothing model.
Exponential Smoothing Example
Ft = a + bt
where
Ft = Forecast for period t
a = Value of Ft at t = 0
b = Slope of the line
t = Specified number of time periods from t = 0
Estimating Slope and Intercept
• Slope and intercept can be estimated from historical data
n ty − t y
b=
n t − ( t)
2
2
a=
y − b t
or y − bt
n
where
n = Number of periods
y = Value of the time series
Trend Line Equation
Example Week Unit Sales
1 700
Computer sales for a
2 724
Hong Kong-based firm
over the last 10 weeks 3 720
are shown. Plot the
4 728
data, and visually
check whether a linear 5 740
trend line would be
6 742
appropriate. Then
determine the equation 7 758
of the trend line, and 8 750
forecast sales for
weeks 11 and 12. 9 770
10 775
Trend Line
Equation Example
x = time
y = sales
Trend Line Equation Example
= 10(41,358) – 55(7,407) =
6,195 = 7. 51
10(385) - 55(55) 825
= 7,407- 7.51(55)
= 699. 40
10
The trend line is Ft = 699.40 + 7.51t, where t = 0 for period 0
Trend Line Equation Example
Substituting the values of t into equation, the forecasts for the next two
periods (t = 11 & t =12)
SUMMARY OUTPUT
Regression Statistics
Multiple
R 0.969606 Week Unit Sales
R Square 0.940135 1 700
Adjusted
R Square 0.932652 2 724
Standard 3 720
Error 6.085004
Observati
4 728
ons 10 5 740
6 742
ANOVA
Significan 7 758
df SS MS F ce F 8 750
Regressio
n 1 4651.882 4651.882 125.6339 3.6E-06 9 770
Residual 8 296.2182 37.02727 10 775
Total 9 4948.1 11 782.00 699.4+(7.51*11)
Coefficien Standard Lower Upper Lower Upper 12 789.51 699.4+(7.51*12)
ts Error t Stat P-value 95% 95% 95.0% 95.0%
Intercept 699.4 4.156849 168.2524 1.74E-15 689.8143 708.9857 689.8143 708.9857
Sales 7.509091 0.669937 11.20865 3.6E-06 5.964214 9.053968 5.964214 9.053968
800
790
780
770
760
750
Sales
740
730
720
710
700
690
0 2 4 6 8 10 12 14
Time
• Are based on the development of an equation
Associative that summarizes the effects of predictor
variables
Forecasting • Predictor variables - variables that can be
Techniques used to predict values of the variable of
interest
Simple Linear Regression
• Regression - a technique for fitting a
line to a set of data points
• Simple linear regression - the
simplest form of regression that
involves a linear relationship
between two variable
• Aims to obtain an equation of a
straight line that minimizes the
sum of squared vertical deviations
from the line (i.e., the least
squares criterion)
yc = a + bx
where
Least Squares Line yc = Predicted (dependent) variable
x = Predictor (independe nt) variable
b = Slope of the line
a = Value of yc when x = 0 (i.e., the height of the line at the y intercept)
and
n( xy ) − ( x )( y )
b=
( )
n x 2 − ( x )
2
a=
y − b x
or y − b x
n
where
n = Number of paired observations
Simple Linear Regression
Assumptions
n( xy ) − ( x )( y )
r=
( )
n x 2 − ( x )
2
( )
n y 2 − ( y )
2
Umbrella Sales
4 102
3 1 138
• Thus, to model the 2 144
seasonal effects in the 3 113
4 80
umbrella time series
4 1 109
we need 4-1 = 3
2 137
dummy variables 3 125
4 109
5 1 130
2 165
3 128
4 96
© 2019 Cengage. All Rights Reserved.
Umbrella Sales