Forecasting Basic Concepts Basic ConceptsAnd Stationary Models
What is Forecasting? ForecastingForecasting is the process of predicting the future. ForecastingForecasting is an integral part of almost all business enterprises including –Manufacturing firms that forecast demand for their products, to schedule manpower and raw material allocation. –Service organizations that forecast customer arrival patterns to maintain adequate customer service. –Security analysts who forecast revenues, profits, and debt ratios, to make investment recommendations. –Firms that consider economic forecasts of indicators (housing starts, changes in gross national profit) before deciding on capital investments.
Benefits of Forecasting Good forecasts can lead to Reduced inventory costs Lower overall personnel costs and increased customer satisfaction A higher likelihood of making profitable financial decisions A reduced risk of untimely financial decisions
How Does One Prepare a Forecast? The forecasting process can be based on: –Educated guess. –Expert opinions. time series. –Past history of data values, known as a time series.
Components of a Time Series Long-term Trend EffectsLong-term Trend Effects Long-term trend is typically modeled as a linear, quadratic or exponential. stationaryA time series that does not exhibit any trend over time is a stationary model. Seasonal EffectsSeasonal Effects seasonalWhen a predictable, repetitive pattern is observed, the time series is said to have seasonal effects. Seasonal effects can be associated with calendar/climatic changes or tied to yearly, quarterly, monthly, etc. data Cyclical EffectsCyclical Effects cyclicalAn unanticipated “temporary” upturn or downturn that is not explained by seasonal effects are said to be cyclical effects. Cyclical effects can result from changes in economic conditions. Random EffectsRandom Effects
Example Motorhome Sales Long Term Trend Seasonal Effects Qtr 4 Lower than qtr 3 Qtr 3 Higher than qtr 2 Qtr 2 Higher than qtr 1 Qtr 1 Higher than qtr 4 Cyclical Effects Recessions of Early 80’s and 90’s
Steps in the Time Series Forecasting Process The goal of a time series forecast is to identify factors that can be predicted. This is a systematic approach involving the following steps. –Step 1: Hypothesize a form for the time series. Collect historical data and graph the data vs. time. Hypothesize and statistically verify a form for the time series. –Step 2: Select a forecasting technique from a set of possible methods for the form of the time series. Statistically determine which method best forecasts the data. –Step 3: Prepare a forecast.
Stationary Forecasting Models A stationary model is one that forecasts a constant time series value over time. The general form of such a model is: y t = 0 + t Assumptions for ε t independent normally distributed have a mean of 0 Value of the time series at time t True stationary value of the time series Value of the random error at time t
Determining if a Stationary Model Is Appropriate trend? Is there trend? Use Linear Regression -- Check the p-value for 1 seasonality?Is there seasonality? Visually check of time series graph Autocorrelation measures the relationship between the values of the time series every k periods; this is called autocorrelation of lag k. –There are tests for doing this, but we will just do a visual check. »Lag 7 autocorrelation indicates one week seasonality (daily data); lag 12 autocorrelation indicates 12-month seasonality (monthly data), etc. cyclical effects?Are there cyclical effects? Visually check of time series graph.
Moving Averages There are t observations: y 1 (oldest), y 2, y 3, …, y t (most recent) F t+1In stationary forecasting models, the forecast for the constant value, β 0, for the next time period t+1, F t+1, is the average (or a weighted average) of 1 or more of the immediately prior observations, y t, y t-1, etc. Since the time series is stationary, this forecast for time period t+1, will be the forecast for all future periods: t+2, t+3, etc. –The forecast changes only after more data is collected.
Moving Average Methods Last PeriodLast Period F t+1 = y t Use the last observed value of the time series n period Moving Averagen period Moving Average F t+1 = (y t + y t-1 + … + y t-n+1 )/n Average the last n observed values of the time series n period Weighted Moving Averagen period Weighted Moving Average F t+1 = w t y t + w t-1 y t-1 + … w t-n+1 y t-n+1 Weight the last n observed values (the w’s sum to 1) Exponential SmoothingExponential Smoothing* (*Discussed in another module) All observations are weighted with decreasing weights
Example Galaxy Industries needs to forecast weekly demand for the next three weeks for its Yoho brand yoyo based on the past 52 week’s demand. If demand is deemed to be stationary, use: Last Period Technique 4-Period Moving Average Technique 4-Period Weighted Moving Average Technique (.4,.3,.2,.1)
Time Series For the Past 52 Weeks WeekDemandWeekDemandWeekDemandWeekDemand
Determining if the Model Is Stationary Graph the time series. No discernable seasonal or cyclical effects.
Using Regression to Test for Trend Regression Data Analysis Select Regression from Data Analysis in Tools Menu
Using Regression to Test for Trend Where output is to begin Demand Time Periods
Is Linear Trend Present? Check p-value for β 1. High p-value = No indication of linear trend Stationary model Stationary model is appropriate.
Forecasts Since we have concluded that this is a stationary model, we can use moving average methods. Last Period: Since model is stationary, F 55 = F 54 = F 53 = Period Moving Average: Since model is stationary, F 55 = F 54 = F 53 = Period Weighted (.4,.3,.2,.1) Moving Average: Since model is stationary, F 55 = F 54 = F 53 = F F 53 = (y 52 + y 51 + y 50 + y 49 )/4 = ( )/4 = 401 F F 53 = y 52 = 484 F 53 F 53 =.4y y y y 49 = (484) +.3(482) +.2(393) +.1(245) = 441.3
EXCEL: Last Period Note: Rows 8-43 are hidden =B2 Drag cell C3 down to cell C54 =C54 Drag cell C55 down to cell C56
Excel: Moving Average Forecast Note: Rows 8-43 are hidden =Average(B2:B5) Drag cell C6 down to cell C54 Drag cell C55 down to cell C56 =C54
Excel: Weighted Moving Average =.4*B5+.3*B4+.2*B3+.1*B2 Drag cell C6 down to cell C54 Note: Rows 8-43 are hidden =C54 Drag cell C55 down to cell C56
Review Possible Factors in a Time Series Model –Trend, Seasonal, Cyclical, Random Effects Determining if the Time Series is Stationary –No noticeable seasonal or cyclical effects on time series plot –Use Regression to test for β 1 = 0 High p-value (No trend – stationary) Moving Average Forecasting Methods –Last Period, Moving Average, Weighted Moving Average, Exponential Smoothing –Forecasts for next period will be the forecasts for all future periods until additional time series values occur –Excel approach