Dr Mohammed Alahmed http fac ksu edu saalahmedksu

  • Slides: 42
Download presentation
Dr. Mohammed Alahmed http: //fac. ksu. edu. sa/alahmed@ksu. edu. sa (011) 4674108 Dr. Mohammed

Dr. Mohammed Alahmed http: //fac. ksu. edu. sa/alahmed@ksu. edu. sa (011) 4674108 Dr. Mohammed Alahmed The Forecast Process 1

 • Establish framework for a successful forecasting system. • Introduce the trend, cycle

• Establish framework for a successful forecasting system. • Introduce the trend, cycle and seasonal factors of a time series. • Introduce concept of Autocorrelation and Estimation of the Autocorrelation function. Dr. Mohammed Alahmed Chapter Objectives 2

The overall forecasting process can be outlined as follows: • Specify objectives • Identify

The overall forecasting process can be outlined as follows: • Specify objectives • Identify what to forecast Gathering Information • Identify time dimensions • Data considerations Choosing and fitting models Using and evaluating a forecasting model • Models selection • Forecast preparation • Models evaluation • Forecast presentation • Tracking results Dr. Mohammed Alahmed Problem Definition 3

Problem Definition 1. Specify the objectives 2. Determine what to forecast - Fore example

Problem Definition 1. Specify the objectives 2. Determine what to forecast - Fore example to forecast sales one must decide whether to forecast unit sales or dollar sales, total sales, or sales by region or product line. Dr. Mohammed Alahmed - How the forecast will be used in a decision context. 4

Gathering Information 1. Identify time dimensions The length and periodicity of the forecast. -

Gathering Information 1. Identify time dimensions The length and periodicity of the forecast. - Is the forecast needed on an annual, quarterly, monthly or daily basis, and how much time we have to develop the forecast? 2. Data consideration • Dr. Mohammed Alahmed • Quantity and type of data that are available. - Where to go to get the data? 5

Choosing and fitting models 1. Model selection - The pattern exhibited by the data

Choosing and fitting models 1. Model selection - The pattern exhibited by the data The quantity of historical data available The length of the forecast horizon 2. Model evaluation • Test the model on the specific series that we want to forecast. - Fit: refers to how well the model works in the set that was used to develop it. Accuracy: refers to how well the model works in the “holdout” period. Dr. Mohammed Alahmed • This phase depends on the following criteria: 6

Using and evaluating a forecasting model 1. Forecast preparation 2. Forecast Presentation • It

Using and evaluating a forecasting model 1. Forecast preparation 2. Forecast Presentation • It involves clear communication. 3. Tracking results • Over time, even the best models are likely to deteriorate in terms of accuracy and should be adjusted or replaced with alternative methods. Dr. Mohammed Alahmed • The result of having found model or models that you believe will produce an acceptably accurate forecast. 7

Explanatory versus Time Series forecasting • Assume that the variable to be forecasted exhibits

Explanatory versus Time Series forecasting • Assume that the variable to be forecasted exhibits an explanatory relationship with one or more independent variables. - For example: DCS = f (DPI, PR, Index, error) DCS = domestic car sales DPI = Disposable income PR = prime interest rate Index = University of Michigan index of consumer index. Dr. Mohammed Alahmed 1. Explanatory models 8

 • Makes no attempt to discover the factors affecting its behavior. • Hence

• Makes no attempt to discover the factors affecting its behavior. • Hence prediction is based ONLY on past values of a variable. • The objective is to discover the pattern in the historical data series and extrapolate that pattern into the future. DCS t+1 = f (DCS t , DCS t-1, DCS t-2, . . , error) Dr. Mohammed Alahmed 2. Time series forecasting 9

 • The data that are used most often in forecasting are time series.

• The data that are used most often in forecasting are time series. • Time series data are collected over successive increments of time. - Example: Monthly unemployment rate, the quarterly gross domestic product, the number of visitors to a national park every year for a 30 -year period. • Such time series data can display a variety of patterns when plotted over time. Dr. Mohammed Alahmed Trend, Seasonal, and Cyclical Data Patterns 10

 • A time series is likely to contain some or all of the

• A time series is likely to contain some or all of the following components: 1. Trend 2. Seasonal 3. Cyclical 4. Irregular Dr. Mohammed Alahmed Data Pattern 11

 • Trend in a time series is the long-term change in the level

• Trend in a time series is the long-term change in the level of the data (i. e. observations grow or decline over an extended period of time). 1. Positive trend: - When the series move upward over an extended period of time 2. Negative trend: - When the series move downward over an extended period of time 3. Stationary: - When there is neither positive or negative trend. Dr. Mohammed Alahmed Data Pattern (Trend) 12

 • Seasonal pattern in time series is a regular variation in the level

• Seasonal pattern in time series is a regular variation in the level of data that repeats itself at the same time every year. Examples: - Retail sales for many products tend to peak in November and December. - Housing starts are stronger in spring and summer than fall and winter. Dr. Mohammed Alahmed Data Pattern (Seasonal) 13

 • Cyclical patterns in a time series is presented by wavelike upward and

• Cyclical patterns in a time series is presented by wavelike upward and downward movements of the data around the long-term trend. • They are of longer duration and are less regular than seasonal fluctuations. • The causes of cyclical fluctuations are usually less apparent than seasonal variations. Dr. Mohammed Alahmed Data Pattern (Cyclical) 14

 • Irregular pattern in a time series data are the fluctuations that are

• Irregular pattern in a time series data are the fluctuations that are not part of the other three components • These are the most difficult to capture in a forecasting model Dr. Mohammed Alahmed Data Pattern(Irregular ) 15

Dr. Mohammed Alahmed Example 1: GDP, in 1996 Dollars 16

Dr. Mohammed Alahmed Example 1: GDP, in 1996 Dollars 16

Dr. Mohammed Alahmed Example 2: Quarterly data on housing 17

Dr. Mohammed Alahmed Example 2: Quarterly data on housing 17

Dr. Mohammed Alahmed Example 3: U. S. billings of the Leo Burnet advertising agency

Dr. Mohammed Alahmed Example 3: U. S. billings of the Leo Burnet advertising agency 18

 • The pattern that exist in the data is an important consideration in

• The pattern that exist in the data is an important consideration in determining which forecasting techniques are appropriate. • To forecast stationary data; use the available history to estimate its mean value, this is the forecast for future period. • The estimate can be updated as new information becomes available. • The updating techniques are useful when initial estimates are unreliable or the stability of the average is in question. Dr. Mohammed Alahmed Data Patterns and Model Selection 19

1. 2. 3. 4. 5. Naive methods Simple averaging methods, Moving averages Simple exponential

1. 2. 3. 4. 5. Naive methods Simple averaging methods, Moving averages Simple exponential smoothing Autoregressive moving average(ARMA) Dr. Mohammed Alahmed • Forecasting techniques used for stationary time series data are: 20

1. 2. 3. 4. 5. 6. 7. Moving averages Holt’s linear exponential smoothing Simple

1. 2. 3. 4. 5. 6. 7. Moving averages Holt’s linear exponential smoothing Simple regression Growth curve Exponential models Time series decomposition Autoregressive integrated moving average (ARIMA) Dr. Mohammed Alahmed • Methods used for time series data with trend are: 21

1. Winter’s exponential smoothing 2. Time series multiple regression 3. Autoregressive integrated moving average

1. Winter’s exponential smoothing 2. Time series multiple regression 3. Autoregressive integrated moving average (ARIMA) Dr. Mohammed Alahmed • For time series data with seasonal component the goal is to estimate seasonal indexes from historical data. • These indexes are used to include seasonality in forecast or remove such effect from the observed value. • Forecasting methods to be considered for these type of data are: 22

- Difficult to model because their patterns are not stable. - Because of the

- Difficult to model because their patterns are not stable. - Because of the irregular behavior of cycles, analyzing these type data requires finding coincidental or leading economic indicators. Dr. Mohammed Alahmed • Cyclical time series data show wavelike fluctuation around the trend that tend to repeat. 23

1. 2. 3. 4. Classical decomposition methods Econometric models Multiple regression Autoregressive integrated moving

1. 2. 3. 4. Classical decomposition methods Econometric models Multiple regression Autoregressive integrated moving average (ARIMA) Dr. Mohammed Alahmed • Forecasting methods to be considered for these type of data are: 24

Dr. Mohammed Alahmed • For GDP example, which has a trend a cycle but

Dr. Mohammed Alahmed • For GDP example, which has a trend a cycle but no seasonality, the following might be appropriate: 1. Holt’s exponential smoothing 2. Linear regression trend 3. Causal regression 4. Time series decomposition 25

Dr. Mohammed Alahmed • Private housing starts example have a trend, seasonality, and a

Dr. Mohammed Alahmed • Private housing starts example have a trend, seasonality, and a cycle. The likely forecasting models are: 1. Winter’s exponential smoothing 2. Linear regression trend with seasonal adjustment 3. Causal regression 4. Time series decomposition 26

Dr. Mohammed Alahmed • For U. S. billings of Leo Burnett advertising example, There

Dr. Mohammed Alahmed • For U. S. billings of Leo Burnett advertising example, There is a non-linear trend, with no seasonality and no cycle, therefore the models appropriate for this data set are: 1. Non-linear regression trend 2. Causal regression 27

 • Correlation coefficient is a summary statistic that measures the extent of linear

• Correlation coefficient is a summary statistic that measures the extent of linear relationship between two variables. As such they can be used to identify explanatory relationships. • Autocorrelation is comparable measure that serves the same purpose for a single variable measured over time. Dr. Mohammed Alahmed Autocorrelation 28

Dr. Mohammed Alahmed • In evaluating time series data, it is useful to look

Dr. Mohammed Alahmed • In evaluating time series data, it is useful to look at the correlation between successive observations over time. • This measure of correlation is called autocorrelation and may be calculated as follows: rk = autocorrelation coefficient for a k period lag. = mean of the time series. yt = Value of the time series at period t. y t-k = Value of time series k periods before period t. 29

- In this case the autocorrelations between yt and y t-k for any lag

- In this case the autocorrelations between yt and y t-k for any lag are close to zero. The successive values of a time series are not related to each other Dr. Mohammed Alahmed • Autocorrelation coefficient for different time lags can be used to answer the following questions about a time series data: 1. Are the data random? 30

 • If the series has a trend, yt and yt-k are highly correlated.

• If the series has a trend, yt and yt-k are highly correlated. • The autocorrelation coefficients are significantly different from zero for the first few lags and then gradually drops toward zero. • The autocorrelation coefficient for the lag 1 is often very large (close to 1). • A series that contains a trend is said to be non-stationary. Dr. Mohammed Alahmed 2. Is there a trend? 31

 • If a series has a seasonal pattern, there will be a significant

• If a series has a seasonal pattern, there will be a significant autocorrelation coefficient at the seasonal time lag or multiples of the seasonal lag. • The seasonal lag is 4 for quarterly data and 12 for monthly data. 4. Is it stationary? • A stationary time series is one whose basic statistical properties, such as the mean and variance, remain constant over time. • Autocorrelation coefficients for a stationary series decline to zero fairly rapidly, generally after the second or third time lag. Dr. Mohammed Alahmed 3. Is there seasonal pattern? 32

Dr. Mohammed Alahmed • To determine whether the autocorrelation at lag k is significantly

Dr. Mohammed Alahmed • To determine whether the autocorrelation at lag k is significantly different from zero, the following hypothesis and rule of thumb may be used: • H 0: k= 0, Ha: k 0 • Reject H 0 if • Where n is the number of observations. • This rule of thumb is for = 5% 33

 • H 0: k= 0, • Test Statistic: • Reject H 0 if

• H 0: k= 0, • Test Statistic: • Reject H 0 if Ha : k 0 Dr. Mohammed Alahmed • The hypothesis test developed to determine whether a particular autocorrelation coefficient is significantly different from zero is: • Hypotheses: 34

Dr. Mohammed Alahmed • The plot of the autocorrelation Function (ACF) versus time lag

Dr. Mohammed Alahmed • The plot of the autocorrelation Function (ACF) versus time lag is called Correlogram. • The horizontal scale is the time lag • The vertical axis is the autocorrelation coefficient. • Patterns in a Correlogram are used to analyze key features of data. 35

Example 1: Mobil Home Shipment • Correlograms for the mobile home shipment • Note

Example 1: Mobil Home Shipment • Correlograms for the mobile home shipment • Note that this is quarterly data 0. 8 0. 6 ACF 0. 4 Upper Limit 0. 2 Lower Limit Dr. Mohammed Alahmed 1 0 1 2 3 4 5 6 7 8 9 10 11 12 -0. 4 36

 • As the world’s economy becomes increasingly interdependent, various exchange rates between currencies

• As the world’s economy becomes increasingly interdependent, various exchange rates between currencies have become important in making business decisions. For many U. S. businesses, The Japanese exchange rate (in yen per U. S. dollar) is an important decision variable. A time series plot of the Japanese-yen U. S. -dollar exchange rate is shown below. On the basis of this plot, would you say the data is stationary? Is there any seasonal component to this time series plot? Dr. Mohammed Alahmed Example 2: Japanese exchange Rate 37

38 Dr. Mohammed Alahmed

38 Dr. Mohammed Alahmed

 • This is the approximate 95% critical value for rejecting the null hypothesis

• This is the approximate 95% critical value for rejecting the null hypothesis of zero autocorrelation at lag K. Dr. Mohammed Alahmed • Here is the autocorrelation structure for EXRJ. • With a sample size of 24, the critical value is 39

 • The Correlograms for EXRJ is given below 1 0. 8 0. 4

• The Correlograms for EXRJ is given below 1 0. 8 0. 4 ACF 0. 2 Upper Limit 0 Lower Limit 1 2 3 4 5 6 7 8 9 10 11 12 -0. 4 Dr. Mohammed Alahmed 0. 6 -0. 6 Since the autocorrelation coefficients fall to below the critical value after just two periods, we can conclude that there is no trend in the data. 40

 • Reject H 0 if • Since • We do not reject H

• Reject H 0 if • Since • We do not reject H 0 , therefore seasonality does not appear to be an attribute of the data Dr. Mohammed Alahmed • To check for seasonality at =. 05 • The hypotheses are: H 0; 12 = 0 Ha: 12 0 • Test statistic is: 41

 • The autocorrelation function of the forecast errors is very useful in determining

• The autocorrelation function of the forecast errors is very useful in determining if there is any remaining pattern in the errors (residuals) after a forecasting model has been applied. • This is not a measure of accuracy, but rather can be used to indicate if the forecasting method could be improved Dr. Mohammed Alahmed ACF of Forecast Error 42