Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We.

Similar presentations


Presentation on theme: "Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We."— Presentation transcript:

1 Chapter 20 Time Series Analysis and Forecasting

2 Introduction Any variable that is measured over time in sequential order is called a time series. We analyze time series to detect patterns. The patterns help in forecasting future values of the time series. t

3 Export for Sweden in the years 1993 -2004 Source:(www.scb.se)

4 Swedish Export

5 Earlier: Now: X 1t Y t X 2t Y t …. X kt Earlier values of Y

6 Components of a Time Series A time series can consist of four components. –Long - term trend (T). –Cyclical effect (C). –Seasonal effect (S). –Random variation (R).

7 A trend is a long term relatively smooth pattern or direction, that persists usually for more than one year.

8 A cycle is a wavelike pattern describing a long term behavior (for more than one year). Cycles are seldom regular, and often appear in combination with other components. 6/90 6/93 6/96 6/99 6/02

9 Components of a Time Series The seasonal component of the time series exhibits a short term (less than one year) calendar repetitive behavior. 6/97 12/97 6/98 12/98 6/99

10 We try to remove random variation thereby, identify the other components. Random variation comprises the irregular unpredictable changes in the time series. It tends to hide the other (more predictable) components.

11 Smoothing Techniques To produce a better forecast we need to determine which components are present in a time series. To identify the components present in the time series, we need first to remove the random variation. This can be done by smoothing techniques.

12 Moving Averages –A k-period moving average for time period t is the arithmetic average of the time series values around period t. –For example: A 3-period moving average at period t is calculated by (y t-1 + y t + y t+1 )/3

13 Dow Jones Index

14

15

16 YtYt Three-term MAFive-term MA y1y1 ------------------- y2y2 (y 1 + y 2 + y 3 )/3----------- y3y3 (y 2 + y 3 + y 4 )/3(y 1 + y 2 + y 3 + y 4 + y 5 )/5 y4y4 (y 3 + y 4 + y 5 )/3(y 2 + y 3 + y 4 + y 5 + y 6 )/5 y5y5 (y 4 + y 5 + y 6 )/3(y 3 + y 4 + y 5 + y 6 + y 7 )/5 …... … ynyn --------

17 Centered Moving Average Period Sell ($ million)4-terms MA 4-terms centered MA 1170 2148 3141 4150 5161 6137 7132 8158 9157

18 Drawbacks –The moving average method does not provide smoothed values (moving average values) for the first and last set of periods. –T he moving average method considers only the observations included in the calculation of the average value, and “forgets” the rest.

19 Exponentially Smoothed Time Series S t = exponentially smoothed time series at time t. y t = time series at time t. S t-1 = exponentially smoothed time series at time t-1. w = smoothing constant, where 0  w  1. S t = w y t + (1- w )S t-1

20 The exponential smoothing method provides smoothed values for all the time periods observed. When smoothing the time series at time t, the exponential smoothing method considers all the data available at t (y t, y t-1,…).

21 Small ‘w’ provides a lot of smoothing Big ‘w’ provides a little smoothing

22 Trend and Seasonal Effects Trend Analysis The trend component of a time series can be linear or non-linear. It is easy to isolate the trend component using linear regression. –For linear trend use the model y =  0 +  1 t +  –For non-linear trend with one (major) change in slope use a polynomial model, for exampley =  0 +  1 t +  2 t 2 + 

23 Trend analysis The purpose is to Describe the trend component in order to make forecasts Detrend the time series in order to make a season analysis.

24 Seasonal Analysis Seasonal variation may occur within a year or within a shorter period (month, week) To measure the seasonal effects we construct seasonal indexes. Seasonal indexes express the degree to which the seasons differ from the average time series value across all seasons.

25 Computing Seasonal Indexes Remove the effects of the seasonal and random variations by regression analysis = b 0 + b 1 t For each time period compute the ratio y t /y t which removes most of the trend variation > For each season calculate the average of y t /y t which provides the measure of seasonality. Adjust the average above so that the sum of averages of all seasons is 1 (if necessary) > This is based on the Multiplicative Model. Multiplicative Model.

26 Computing Seasonal Indexes Example 20.3 (Xm20-03)Xm20-03 –Calculate the quarterly seasonal indexes for hotel occupancy rate in order to measure seasonal variation. –Data:

27 Perform regression analysis for the model y =  0 +  1 t +  where t represents the time, and y represents the occupancy rate. Time (t) Rate 1 0.561 2 0.702 3 0.800 4 0.568 5 0.575 6 0.738 7 0.868 8 0.605.. The regression line represents trend. Computing Seasonal Indexes

28 t y t Ratio 1.561.645.561/.645=.870 2.702.650.702/.650=1.08 3…………………………………………………. No trend is observed, but seasonality and randomness still exist. =.639368+.005245(1) The Ratios y t  y t >

29 The Average Ratios by Seasons (.870 +.864 +.865 +.879 +.913)/5 =.878Average ratio for quarter 1: To remove most of the random variation but leave the seasonal effects,average the terms for each season.

30 Average ratio for quarter 2: (1.080+1.100+1.067+.993+1.138)/5 = 1.076 Average ratio for quarter 3: (1.221+1.284+1.046+1.122+1.181)/5 = 1.171 Average ratio for quarter 4: (.860 +.888 +.854 +.874 +.900)/ 5 =.875

31 In this example the sum of all the averaged ratios must be 4, such that the average ratio per season is equal to 1. If the sum of all the ratios is not 4, we need to adjust them proportionately. In our problem the sum of all the averaged ratios is equal to 4:.878 + 1.076 + 1.171 +.875 = 4.0. No normalization is needed. These ratios become the seasonal indexes. Suppose the sum of ratios is equal to 4.1. Then each ratio will be multiplied by 4/4.1. Adjusting the Average Ratios

32 Quarter 2 Quarter 3 Quarter 2 The seasonal indexes tell us what is the ratio between the time series value at a certain season, and the overall seasonal average. In our problem: Annual average occupancy (100%) Quarter 1 Quarter 4 Quarter 1 Quarter 4 87.8% 107.6% 117.1% 87.5% 12.2% below the annual average 7.6% above the annual average 17.1% above the annual average 12.5% below the annual average Interpreting the Seasonal Indexes

33 The trend component and the seasonality component are recomposed using the multiplicative model. This is used for forecasting. In period #1 ( quarter 1): In period #2 ( quarter 2): The Smoothed Time Series

34 We can also use indicator variables in order to analyze the seasonal effects. QuarterI1I1 I2I2 I3I3 1100 2010 3001 4000

35

36 Seasonal analysis The purpose is to Describe the seasonal component in order to make forecasts Deseasonalize the time series (makes it for example easier to compare timeseries over seasons)

37 Deseasonalized Time Series By removing the seasonality, we can identify changes in the other components of the time series, that might have occurred over time. Seasonally adjusted time series = Actual time series Seasonal index

38 Deseasonalized Time Series In period #1 ( quarter 1): In period #2 ( quarter 2): There was a gradual increase in occupancy rate In period #5 ( quarter 1):


Download ppt "Chapter 20 Time Series Analysis and Forecasting. Introduction Any variable that is measured over time in sequential order is called a time series. We."

Similar presentations


Ads by Google