Slides 13b: Time-Series Models; Measuring Forecast Error - PowerPoint PPT Presentation

1 / 36
About This Presentation
Title:

Slides 13b: Time-Series Models; Measuring Forecast Error

Description:

C = (Business) Cycle - an upturn or downturn not caused by ... w1Yt w2Yt-1 w3Yt-2 ... wnYt-n 1. Swi = 1. Weighted Moving Average. Weighted Moving Average ... – PowerPoint PPT presentation

Number of Views:58
Avg rating:3.0/5.0
Slides: 37
Provided by: kenneth83
Category:

less

Transcript and Presenter's Notes

Title: Slides 13b: Time-Series Models; Measuring Forecast Error


1
Slides 13b Time-Series ModelsMeasuring
Forecast Error
MGS3100 Chapter 13
Forecasting
2
Forecasting Models
3
Time Series Models
  • General Form Y T C S e, where
  • T Trend - long term movement of mean
  • C (Business) Cycle - an upturn or downturn not
    caused by seasonal variation effect of the
    economy
  • S Seasonal Variation - repetitive pattern
    observed over a specific time period
  • e Error (random variation)
  • Practical Forecast Form Y T S
  • C is important, but difficult to forecast
  • Dont forecast an error!

4
Components of a Time Series
Time series value
Linear trend and seasonality time series
Future
Linear trend time series
A stationary time series
Time
5
Time Series Stationary Models
  • Stationary Model Assumptions
  • Assumes item forecasted will stay steady over
    time (constant mean random variation only)
  • Techniques will smooth out short-term
    irregularities
  • Forecast for period t1 is equal to forecast for
    period tk the forecast is revised only when new
    data becomes available.
  • Stationary Model Types
  • Naïve Forecast
  • Moving Average
  • Weighted Moving Average
  • Exponential Smoothing

6
Stationary Time Series ModelsThe Naïve Model
  • Whatever happened last period will happen again
    this time
  • The model is simple and flexible
  • Provides a baseline to measure other models
  • Attempts to capture seasonal factors at the
    expense of ignoring trend

or
7
Measures of Forecast Error
  • Bias - The arithmetic sum of the errors
  • MAD - Mean Absolute Deviation
  • MAPE Mean Absolute Percentage Error
  • Mean Square Error (MSE) - Similar to simple
    sample variance
  • Standard Error - Standard deviation of the
    sampling distribution (the square
  • root of the MSE)
  • Bias, MAD, and MAPE - typically
  • used for time series

8
Naïve Forecast
9
Naïve Forecast Graph
10
Stationary Time Series ModelsMoving Averages
  • The Moving Average Method
  • The forecast is the average of the last n
    observations of the time series.


11
Moving Averages
12
Moving Averages Forecast
13
Moving Averages Graph
14
Stability vs. Responsiveness
  • Should I use a 2-period moving average or a
    3-period moving average?
  • The larger the n the more stable the forecast.
  • A 2-period model will be more responsive to
    change.
  • We dont want to chase outliers.
  • But we dont want to take forever to correct for
    a real change.
  • We must balance stability with responsiveness.

15
Stationary Time Series ModelsWeighted Moving
Averages
  • The Weighted Moving Average Method
  • Historical values of the time series are assigned
    different weights when performing the forecast

w1Yt w2Yt-1 w3Yt-2 wnYt-n1
Swi 1
16
Weighted Moving Average
17
Weighted Moving Average
18
Stationary Time Series ModelsExponential
Smoothing
  • Exponential Smoothing
  • Moving average technique that requires a minimum
    amount of past data
  • Uses a smoothing constant a with a value between
    0 and 1 (Usual range 0.1 to 0.3)
  • Forecast for period t Forecast for period t-1
    plus a times the difference between the actual
    value and forecast in period t-1 Yt Yt-1
    a(Yt-1 - Yt-1), or
  • Can also be expressed as Yt a(Yt-1) (1-
    a)(Yt-1)
  • a(Actual value in period t-1) (1- a)(Forecast
    in period t-1)

19
Exponential Smoothing Data
Class Exercise What is the forecast for January
of the following year? How about March? Find
the Bias, Mad MAPE. (Note a equals 0.1.)
20
Exponential Smoothing (Alpha .419)
21
Exponential Smoothing
22
Evaluating the Performance of Forecasting
Techniques
  • Several forecasting methods have been presented.
  • Which one of these forecasting methods gives the
    best forecast?

23
Performance Measures Sample Example
  • Find the forecasts and the errors for each
    forecasting technique applied to the following
    stationary time series.
  • Time 1 2 3 4 5 6 Time series 100 110
    90 80 105 115
  • 3-Period Moving average 100 93.33 91.6
  • Error for the 3-Period MA - 20 11.67 23.4
  • 3-Period Weighted MA(.5, .3, .2) 98 89 85.5
  • Error for the 3-Period WMA - 18 16 29.5

24
Performance Measures MAD for the Sample
Example
18.35
21.17
25
Performance Measures MAPE for the Sample
Example
.188
.211
26
Performance Measures Selecting Model Parameters
  • Use the performance measures to select a good set
    of values for each model parameter.
  • For the moving average
  • the number of periods (n).
  • For the weighted moving average
  • The number of periods (n),
  • The weights (wi).
  • For the exponential smoothing
  • The exponential smoothing factor (a).
  • Excel Solver can be used to determine the values
    of the model parameters.

27
Trend Seasonality
  • Trend analysis
  • Technique that fits a trend equation (or curve)
    to a series of historical data points
  • Projects the equation into the future for medium
    and long term forecasts. Typically do not want to
    forecast into the future more than half the
    number of time periods used to generate the
    forecast
  • Seasonality analysis
  • Adjustment to time series data due to variations
    at certain periods.
  • Adjust with seasonal index - ratio of average
    value of the item in a season to the overall
    annual average value.
  • Examples demand for coal in winter months
    demand for soft drinks in the summer and over
    major holidays

28
Linear Trend AnalysisMidwestern Manufacturing
Sales
29
Least Squares for Linear Regression Midwestern
Manufacturing
Objective Minimize the squared deviations!
30
Least Squares Method
Where
predicted value of the dependent variable
(demand)
X value of the independent variable (time)
a Y-axis intercept - b b Slope of
the regression line
31
Linear Trend Data Error Analysis
32
Least Squares Graph
33
Another way to Determine TrendUse the Excel
Regression Function
  • Run linear regression to test b1 in the model
    Ytb0b1tet
  • Excel results

0.71601
This large P-value indicates that there is
little evidence that trend exists
  • Conclusion A stationary model is appropriate.

34
Forecasting Seasonal Data Quick Method
Ratio Demand / Average Demand
Seasonal Index ratio of the average value of
the item in a season to the overall average
annual value. Example average of year 1
January ratio to year 2 January ratio. (0.851
1.064)/2 0.957
If Year 3 average monthly demand is expected to
be 100 units. Forecast demand Year 3 January
100 X 0.957 96 units Forecast demand Year 3
May 100 X 1.309 131 units
35
Forecasting Seasonal Data With Trend
  • Calculate the seasonal indices (as shown on the
    previous slide)
  • Calculate deseasonalized treand by dividing the
    actual value (Y) by the seasonal index for that
    period
  • Deseasonalized Trend Y / Seasonal index
    (e.g., 80
    units/ 0.957 83.595)
  • Find the trend line, and extend the trend line
    into the desired forecast period.

36
Forecasting Seasonal Data With Trend Calculating
the Seasonal Forecast
  • 4. Now that we have the Seasonal Indices and
    Trend line, we can reseasonalize the data and
    generate the seasonalized forecast by
    multiplying the trend line values in the forecast
    period by the appropriate seasonal indices for
    each time period as follows

Y Trend x Seasonal Index
Write a Comment
User Comments (0)
About PowerShow.com