Market Forecasting m3 Notes
Market Forecasting m3 Notes
Modeling Principles
Time series Analysis
- reasonableness and parsimony
- goodness of fit (residual analysis)
Time series Forecasting
- forecast accuracy
- parsimony and reasonableness
Types of Windows
Centered moving average
- based on a window centered around t
- more useful for data visualization
- t
Trailing moving average
- based on a window from time t and backwards
- t
Computing a Trailing MA
1. Choose window width (W)
2. For MA at time t, place window on time points (t-W+1,…,t)
3. Compute average of values in the window
Computing a Centered MA
- Odd width: center window on time t and average the values in the window
- Even width: take the two “almost centered” windows and average the values in them
* time-plot of the moving averages can help reveal he level and trend of a series, by filtering out
the seasonal and random components
MA not suitable if
1. series with trend
2. series with seasonality
Excel chart tools > design > add chart element > trendline
EXAMPLE - 8:32 – 18:12 (XLMiner)
FORECASTING WITH EXPONENTIAL SMOOTHING:
Benefits
- only need to store the last forecast and most recent observation
- unlike MA, it gives more weight to more recent observations
- simple to understand
XLMiner time series > smoothing > exponential smoothing > default α =2
REMOVING TREND AND/OR SEASONALITY:
Approach 1: Regression
- to remove trend and/or seasonality, fit a regression model with trend and/or seasonality
- series of forecast errors should be de-trended and de-seasonalized
Approach 2: Differencing
- differencing means taking the difference between two observations
- differencing is a simple and popular operation for removing a trend and/or seasonality
from a time series
- lag-1 difference: y t − y t −1 for removing trend
- lag-M difference: y t − y M −1 for removing seasonality with M seasons
- double-differencing: difference the differenced series
- compared to residuals from regression with trend, differencing is useful for removing a
local/changing trend shape
- simple and popular operation for removing a trend and/or seasonality from a time series
Seasonal Indexes
- for series with M seasons:
S j = seasonal index for the jth season
* indicates the exceedance of Y on season j above/below the average of Y in a
complete cycle of seasons
- average of the M seasonal indexes is 1 (they must sum to M)
Choosing α and β
- default values
- minimize RMSE or MAPE (or other goodness-of-fit criterion) for training set
* danger of over-fitting – make sure chosen values are reasonable
Overview Equation
F t+ k =(L ¿ ¿t +k T t )S t+ k−M ¿
St = seasonal index of period t
M = number of seasons
- Forecasts take into account level, trend, and seasonality:
- multiplicative seasonality, additive seasonality also available
- If forecast horizon > one cycle of seasons, use the last set of estimated seasonal indexes
Level Equation
Yt
Lt =α +(1−α )(Lt−1 +T t−1)
S t− M
Trend Equation
T t=β ( Lt −Lt−1 ) + ( 1−β ) T t −1
- same as Holt’s
Seasonality Equation
Yt
St =γ + ( 1−γ ) St −M
Lt
- multiplicative
Technical Notes
- all three smoothing constants are between 0 and 1
- to obtain forecasts (in XLMiner) you must re-run the exponential smoothing on the non-
partitioned data otherwise you lose the information in the most recent observations
- initialization (technical):
* L1=Y 1 or L1=a from estimated model Y t =a+ bt
* T 1=Y 2−Y 1 or ( Y T −Y 1 ) /T (average overall trend)
* initial seasonal indexes = MA indexes (that were seen earlier)
- look for method/model that gives lowest MAP and choose that one