Download presentation

Presentation is loading. Please wait.

Published byRoy Edgecomb Modified over 2 years ago

1
Time Series Analysis -- An Introduction -- 1 AMS 586 Week 2: 2/4,6/2014

2
Objectives of time series analysis Data description Data interpretation Modeling Control Prediction & Forecasting 2

3
Time-Series Data Numerical data obtained at regular time intervals The time intervals can be annually, quarterly, monthly, weekly, daily, hourly, etc. Example: Year: Sales:

4
Time Plot the vertical axis measures the variable of interest the horizontal axis corresponds to the time periods A time-series plot (time plot) is a two- dimensional plot of time series data 4

5
Time-Series Components Time Series Cyclical Component Irregular /Random Component Trend ComponentSeasonal Component Overall, persistent, long- term movement Regular periodic fluctuations, usually within a 12-month period Repeating swings or movements over more than one year Erratic or residual fluctuations 5

6
Upward trend Trend Component Long-run increase or decrease over time (overall upward or downward movement) Data taken over a long period of time Sales Time 6

7
Downward linear trend Trend Component Trend can be upward or downward Trend can be linear or non-linear Sales Time Upward nonlinear trend Sales Time (continued) 7

8
Seasonal Component Short-term regular wave-like patterns Observed within 1 year Often monthly or quarterly Sales Time (Quarterly) Winter Spring Summer Fall Winter Spring Summer Fall 8

9
Cyclical Component Long-term wave-like patterns Regularly occur but may vary in length Often measured peak to peak or trough to trough Sales 1 Cycle Year 9

10
Irregular/Random Component Unpredictable, random, residual fluctuations Noise in the time series The truly irregular component may not be estimated – however, the more predictable random component can be estimated – and is usually the emphasis of time series analysis via the usual stationary time series models such as AR, MA, ARMA etc after we filter out the trend, seasonal and other cyclical components 10

11
Two simplified time series models In the following, we present two classes of simplified time series models 1.Non-seasonal Model with Trend 2.Classical Decomposition Model with Trend and Seasonal Components The usual procedure is to first filter out the trend and seasonal component – then fit the random component with a stationary time series model to capture the correlation structure in the time series If necessary, the entire time series (with seasonal, trend, and random components) can be re-analyzed for better estimation, modeling and prediction. 11

12
Non-seasonal Models with Trend trendStochastic process random noise X t = m t + Y t 12

13
Classical Decomposition Model with Trend and Season seasonal component trendStochastic process random noise X t = m t + s t + Y t 13

14
Non-seasonal Models with Trend 14 There are two basic methods for estimating/eliminating trend: Method 1: Trend estimation (first we estimate the trend either by moving average smoothing or regression analysis – then we remove it) Method 2: Trend elimination by differencing

15
Method 1: Trend Estimation by Regression Analysis Estimate a trend line using regression analysis Year Time Period (t) Sales (X) Use time (t) as the independent variable: In least squares linear, non-linear, and exponential modeling, time periods are numbered starting with 0 and increasing by 1 for each time period. 15

16
Least Squares Regression The estimated linear trend equation is: Year Time Period (t) Sales (X) Without knowing the exact time series random error correlation structure, one often resorts to the ordinary least squares regression method, not optimal but practical. 16

17
Linear Trend Forecasting Forecast for time period 6 (2010): Year Time Period (t) Sales (X) ?? One can even performs trend forecasting at this point – but bear in mind that the forecasting may not be optimal. 17

18
Method 2: Trend Elimination by Differencing 18

19
Trend Elimination by Differencing 19 If the operator is applied to a linear trend function: Then we obtain the constant function: In the same way any polynomial trend of degree k can be removed by the operator:

20
Classical Decomposition Model (Seasonal Model) with trend and season 20 where

21
Classical Decomposition Model 21 Method 2: Differencing: First we remove the seasonal component by differencing. We then remove the trend by differencing as well. Method 3: Joint-fit method: Alternatively, we can fit a combined polynomial linear regression and harmonic functions to estimate and then remove the trend and seasonal component simultaneously as the following: Method 1: Filtering: First we estimate and remove the trend component by using moving average method; then we estimate and remove the seasonal component by using suitable periodic averages.

22
Method 1: Filtering 22 (1). We first estimate the trend by the moving average: If d = 2q (even), we use: If d = 2q+1 (odd), we use: (2). Then we estimate the seasonal component by using the average, k = 1, …, d, of the de-trended data: To ensure: we further subtract the mean of (3). One can also re-analyze the trend from the de-seasonalized data in order to obtain a polynomial linear regression equation for modeling and prediction purposes.

23
Method 2: Differencing 23 Define the lag-d differencing operator as: We can transform a seasonal model to a non-seasonal model: Differencing method can then be further applied to eliminate the trend component.

24
Method 3: Joint Modeling 24 As shown before, one can also fit a joint model to analyze both components simultaneously:

25
Detrended series P. J. Brockwell, R. A. Davis, Introduction to Time Series and Forecasting, Springer,

26
Time series – Realization of a stochastic process {X t } is a stochastic time series if each component takes a value according to a certain probability distribution function. A time series model specifies the joint distribution of the sequence of random variables. 26

27
White noise - example of a time series model 27

28
Gaussian white noise 28

29
Stochastic properties of the process STATIONARITY 1.Once we have removed the seasonal and trend components of a time series (as in the classical decomposition model), the remainder (random) component – the residual, can often be modeled by a stationary time series. * System does not change its properties in time * Well-developed analytical methods of signal analysis and stochastic processes 29

30
WHEN A STOCHASTIC PROCESS IS STATIONARY? {X t } is a strictly stationary time series if f(X 1,...,X n )= f(X 1+h,...,X n+h ), where n 1, h – integer Properties: * The random variables are identically distributed. * An idependent identically distributed (iid) sequence is strictly stationary. 30

31
Weak stationarity {X t } is a weakly stationary time series if EX t = and Var(X t ) = 2 are independent of time t Cov(X s, X r ) depends on (s-r) only, independent of t 31

32
Autocorrelation function (ACF) 32

33
ACF for Gaussian WN 33

34
ARMA models Time series is an ARMA(p,q) process if X t is stationary and if for every t: X t 1 X t-1... p X t-p = Z t + 1 Z t p Z t-p where Z t represents white noise with mean 0 and variance 2 The Left side of the equation represents the Autoregressive AR(p) part, and the right side the Moving Average MA(q) component. 34

35
Examples 35

36
Exponential decay of ACF MA(1) sample ACF AR(1) 36

37
More examples of ACF 37

38
Reference 38 Box, George and Jenkins, Gwilym (1970) Time series analysis: Forecasting and control, San Francisco: Holden-Day. Brockwell, Peter J. and Davis, Richard A. (1991). Time Series: Theory and Methods. Springer-Verlag. Brockwell, Peter J. and Davis, Richard A. (1987, 2002). Introduction to Time Series and Forecasting. Springer. We also thank various on-line open resources for time series analysis.

Similar presentations

© 2017 SlidePlayer.com Inc.

All rights reserved.

Ads by Google