FORECASTING (1)
FORECASTING (1)
What is forecasting?
Many processes and the inputs and outputs or products and services is usually
uncertain.
Forecasting can be used for…
• Strategic planning (long range planning)
• Finance and accounting (budgets and cost controls)
• Marketing (future sales, new products)
• Production and operations
What is forecasting all about?
Predicted
demand
looking
Time back six
Jan Feb Mar Apr May Jun Jul Aug months
Actual demand (past sales)
Predicted demand
Some general characteristics of forecasts
• Trends
• Seasonality
• Cyclical elements
• Autocorrelation
• Random variation
Some Important Questions
1. Data availability
2. Time horizon for the forecast
3. Required accuracy
4. Required Resources
Time Series Models: Components
Random Trend
Composite
Seasonal
Product Demand over Time
Trend component
Seasonal peaks
Demand for product or service
Actual demand
Random line
variation
Year Year Year Year
1 2 3 4
Now let’s look at some time series approaches to forecasting…
Time Series: Moving average
At + At-1 + … + At-n
Ft+1 =
n
Month Bottles
Jan 1,325
Feb 1,353
Mar 1,305 What will
the sales be
Apr 1,275
for July?
May 1,210
Jun 1,195
Jul ?
What if we use a 3-month simple moving average?
1000
900
800
700 Demand
600
3-Week
500
6-Week
1 2 3 4 5 6 7 8 9 10 11 12
Week
Time series: weighted moving average
We may want to give more importance to some of the data…
wt + wt-1 + … + wt-n = 1
For a 6-month
SMA, attributing
equal weights to all
past data we miss
Time the downward
Jan Feb Mar Apr May Jun Jul Aug
trend
6-month simple moving average…
Make the weights for the last three months more than the first
three months…
July
1,277 1,267 1,257 1,247
Forecast
Smoothin
g constant
Denotes the importance
alpha α of the past error
Why use exponential smoothing?
Ft Ft 1 ( At 1 Ft 1 )
= 0.2
Month Actual Forecasted
Jun ? 1,309
Example:
= 0.8
Month Actual Forecasted
Jun ? 1,225
Impact of the smoothing constant
1380
1360
1340
1320
Actual
1300
a = 0.2
1280
1260 a = 0.8
1240
1220
1200
0 1 2 3 4 5 6 7
Impact of trend
Sales
Actual
Regular exponential
Data smoothing will always lag
Forecast behind the trend.
Can we include trend
analysis in exponential
smoothing?
Month
ARIMA models (autoregressive integrated
moving average)
Average Monthly
Temperature
What does that mean?
So LSM tries to
minimize the distance
between the line and
the points!
Average Monthly
Temperature
The best line is the one that minimizes the error
Y a bX
Y a bX
a y bx
b
xy nx y
x nx
2 2
How can we compare across forecasting models?
A t Ft
MFE i 1
n
AF t t
MAD i1
n