Time Series Analysis -- An Introduction -- AMS 586

Similar documents
Statistics of stochastic processes

Time Series and Forecasting

Lesson 13: Box-Jenkins Modeling Strategy for building ARMA models

Time Series and Forecasting

Part II. Time Series

Econometría 2: Análisis de series de Tiempo

Forecasting. Simon Shaw 2005/06 Semester II

at least 50 and preferably 100 observations should be available to build a proper model

Time Series I Time Domain Methods

Stochastic Processes

Econ 424 Time Series Concepts

ESSE Mid-Term Test 2017 Tuesday 17 October :30-09:45

Basics: Definitions and Notation. Stationarity. A More Formal Definition

Some Time-Series Models

Applied time-series analysis

{ } Stochastic processes. Models for time series. Specification of a process. Specification of a process. , X t3. ,...X tn }

Time Series Outlier Detection

3. ARMA Modeling. Now: Important class of stationary processes

2. An Introduction to Moving Average Models and ARMA Models

STAT 443 Final Exam Review. 1 Basic Definitions. 2 Statistical Tests. L A TEXer: W. Kong

Classic Time Series Analysis

Minitab Project Report - Assignment 6

Chapter 3: Regression Methods for Trends

LECTURES 2-3 : Stochastic Processes, Autocorrelation function. Stationarity.

MODELING INFLATION RATES IN NIGERIA: BOX-JENKINS APPROACH. I. U. Moffat and A. E. David Department of Mathematics & Statistics, University of Uyo, Uyo

3 Time Series Regression

Problem Set 2 Solution Sketches Time Series Analysis Spring 2010

A time series is called strictly stationary if the joint distribution of every collection (Y t

Empirical Market Microstructure Analysis (EMMA)

Module 3. Descriptive Time Series Statistics and Introduction to Time Series Models

Stat 248 Lab 2: Stationarity, More EDA, Basic TS Models

Lecture 3: Autoregressive Moving Average (ARMA) Models and their Practical Applications

FORECASTING SUGARCANE PRODUCTION IN INDIA WITH ARIMA MODEL

Stochastic Processes: I. consider bowl of worms model for oscilloscope experiment:

The autocorrelation and autocovariance functions - helpful tools in the modelling problem

Time Series Analysis - Part 1

AR, MA and ARMA models

Prof. Dr. Roland Füss Lecture Series in Applied Econometrics Summer Term Introduction to Time Series Analysis

STAT 520: Forecasting and Time Series. David B. Hitchcock University of South Carolina Department of Statistics

MCMC analysis of classical time series algorithms.

A SEASONAL TIME SERIES MODEL FOR NIGERIAN MONTHLY AIR TRAFFIC DATA

Analysis. Components of a Time Series

Time Series 4. Robert Almgren. Oct. 5, 2009

Gaussian processes. Basic Properties VAG002-

Based on the original slides from Levine, et. all, First Edition, Prentice Hall, Inc

11. Further Issues in Using OLS with TS Data

TIME SERIES DATA PREDICTION OF NATURAL GAS CONSUMPTION USING ARIMA MODEL

Estimation and application of best ARIMA model for forecasting the uranium price.

1. Fundamental concepts

V3: Circadian rhythms, time-series analysis (contd )

Lecture 19 Box-Jenkins Seasonal Models

5 Autoregressive-Moving-Average Modeling

Time Series: Theory and Methods

Econ 300/QAC 201: Quantitative Methods in Economics/Applied Data Analysis. 17th Class 7/1/10

γ 0 = Var(X i ) = Var(φ 1 X i 1 +W i ) = φ 2 1γ 0 +σ 2, which implies that we must have φ 1 < 1, and γ 0 = σ2 . 1 φ 2 1 We may also calculate for j 1

Time Series Models and Inference. James L. Powell Department of Economics University of California, Berkeley

Introduction to Stochastic processes

Reliability and Risk Analysis. Time Series, Types of Trend Functions and Estimates of Trends

Exercises - Time series analysis

EASTERN MEDITERRANEAN UNIVERSITY ECON 604, FALL 2007 DEPARTMENT OF ECONOMICS MEHMET BALCILAR ARIMA MODELS: IDENTIFICATION

Time series analysis of activity and temperature data of four healthy individuals

Discrete time processes

Time-Series Analysis. Dr. Seetha Bandara Dept. of Economics MA_ECON

Time Series 2. Robert Almgren. Sept. 21, 2009

Modelling Monthly Rainfall Data of Port Harcourt, Nigeria by Seasonal Box-Jenkins Methods

Ross Bettinger, Analytical Consultant, Seattle, WA

Autoregressive Moving Average (ARMA) Models and their Practical Applications

Lesson 9: Autoregressive-Moving Average (ARMA) models

ITSM-R Reference Manual

Review Session: Econometrics - CLEFIN (20192)

STAT 248: EDA & Stationarity Handout 3

Univariate, Nonstationary Processes

Lecture 1: Fundamental concepts in Time Series Analysis (part 2)

Simple Descriptive Techniques

Design of Time Series Model for Road Accident Fatal Death in Tamilnadu

7 Introduction to Time Series

Introduction to Time Series Analysis. Lecture 11.

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MAS451/MTH451 Time Series Analysis TIME ALLOWED: 2 HOURS

Lesson 4: Stationary stochastic processes

Lecture 2: ARMA(p,q) models (part 2)

Lesson 2: Analysis of time series

CHAPTER 8 FORECASTING PRACTICE I

FinQuiz Notes

A Data-Driven Model for Software Reliability Prediction

MGR-815. Notes for the MGR-815 course. 12 June School of Superior Technology. Professor Zbigniew Dziong

Modeling and forecasting global mean temperature time series

Applied Time Series Topics

Lecture 2: Univariate Time Series

UNIVARIATE TIME SERIES ANALYSIS BRIEFING 1970

Econ 623 Econometrics II Topic 2: Stationary Time Series

Statistical Methods for Forecasting

ARIMA Models. Jamie Monogan. January 16, University of Georgia. Jamie Monogan (UGA) ARIMA Models January 16, / 27

Time Series Analysis. James D. Hamilton PRINCETON UNIVERSITY PRESS PRINCETON, NEW JERSEY

Problem Set 1 Solution Sketches Time Series Analysis Spring 2010

The Art of Forecasting

A Diagnostic for Seasonality Based Upon Autoregressive Roots

Dynamic Time Series Regression: A Panacea for Spurious Correlations

Marcel Dettling. Applied Time Series Analysis SS 2013 Week 05. ETH Zürich, March 18, Institute for Data Analysis and Process Design

ARIMA Models. Richard G. Pierse

Ch 4. Models For Stationary Time Series. Time Series Analysis

Transcription:

Time Series Analysis -- An Introduction -- AMS 586 1

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

Time-Series Data Numerical data obtained at regular time intervals The time intervals can be annually, quarterly, monthly, weekly, daily, hourly, etc. Example: Year: 2005 2006 2007 2008 2009 Sales: 75.3 74.2 78.5 79.7 80.2 3

1975 1977 1979 1981 1983 1985 1987 1989 1991 1993 1995 1997 1999 2001 Inflation Rate (%) Time Plot A time-series plot (time plot) is a twodimensional plot of time series data the vertical axis measures the variable of interest the horizontal axis corresponds to the time periods 16.00 14.00 12.00 10.00 8.00 6.00 4.00 2.00 0.00 U.S. Inflation Rate 4 Year

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

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

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

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

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

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

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

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

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

Non-seasonal Models with Trend 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 14

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: 2004 0 20 2005 1 40 2006 2007 2008 2 3 4 30 50 70 In least squares linear, non-linear, and exponential modeling, time periods are numbered starting with 0 and increasing by 1 for each time period. 2009 5 65 15

sales Least Squares Regression Without knowing the exact time series random error correlation structure, one often resorts to the ordinary least squares regression method, not optimal but practical. Year 2004 2005 2006 2007 2008 2009 16 Time Period (t) 0 1 2 3 4 5 Sales (X) 20 40 30 50 70 65 The estimated linear trend equation is: 80 70 60 50 40 30 20 10 0 Sales trend 0 1 2 3 4 5 6 Year

sales Linear Trend Forecasting One can even performs trend forecasting at this point but bear in mind that the forecasting may not be optimal. Forecast for time period 6 (2010): Year 2004 2005 2006 2007 2008 2009 2010 Time Period (t) 0 1 2 3 4 5 6 Sales (X) 20 40 30 50 70 65?? 80 70 60 50 40 30 20 10 0 Sales trend 0 1 2 3 4 5 6 Year 17

Method 2: Trend Elimination by Differencing 18

Trend Elimination by Differencing 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: 19

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

Classical Decomposition Model 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. 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: 21

Method 1: Filtering (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 22 purposes.

Method 2: Differencing 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. 23

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

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

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

White noise - example of a time series model 27

28 Gaussian white noise

Stochastic properties of the process STATIONARITY Once we have removed the seasonal and trend.1 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

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

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)

33 ACF for Gaussian WN

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-1 +...+ 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

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

37 More examples of ACF

Reference 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. 38