Some useful concepts in univariate time series analysis



Similar documents
TIME SERIES ANALYSIS

Time Series Analysis

Univariate Time Series Analysis; ARIMA Models

Sales forecasting # 2

Univariate Time Series Analysis; ARIMA Models

Time Series - ARIMA Models. Instructor: G. William Schwert

Univariate and Multivariate Methods PEARSON. Addison Wesley

Analysis of algorithms of time series analysis for forecasting sales

Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London)

Time Series Laboratory

Time Series Analysis

1 Short Introduction to Time Series

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

Forecasting model of electricity demand in the Nordic countries. Tone Pedersen

Time Series Analysis

TIME SERIES ANALYSIS

Rob J Hyndman. Forecasting using. 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1

How To Model A Series With Sas

Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models

Non-Stationary Time Series andunitroottests

9th Russian Summer School in Information Retrieval Big Data Analytics with R

Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model

Analysis and Computation for Finance Time Series - An Introduction

Time Series Analysis of Aviation Data

Energy Load Mining Using Univariate Time Series Analysis

Readers will be provided a link to download the software and Excel files that are used in the book after payment. Please visit

USE OF ARIMA TIME SERIES AND REGRESSORS TO FORECAST THE SALE OF ELECTRICITY

Advanced Forecasting Techniques and Models: ARIMA

MGT 267 PROJECT. Forecasting the United States Retail Sales of the Pharmacies and Drug Stores. Done by: Shunwei Wang & Mohammad Zainal

COMP6053 lecture: Time series analysis, autocorrelation.

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2015, Mr. Ruey S. Tsay. Solutions to Midterm

Time Series Analysis and Forecasting

ADVANCED FORECASTING MODELS USING SAS SOFTWARE

Studying Achievement

Vector Time Series Model Representations and Analysis with XploRe

Discrete Time Series Analysis with ARMA Models

Do Electricity Prices Reflect Economic Fundamentals?: Evidence from the California ISO

ARMA, GARCH and Related Option Pricing Method

ITSM-R Reference Manual

Time Series Analysis: Basic Forecasting.

Integrated Resource Plan

4. Simple regression. QBUS6840 Predictive Analytics.

The SAS Time Series Forecasting System

Big Data Techniques Applied to Very Short-term Wind Power Forecasting

Using JMP Version 4 for Time Series Analysis Bill Gjertsen, SAS, Cary, NC

Time Series Analysis 1. Lecture 8: Time Series Analysis. Time Series Analysis MIT 18.S096. Dr. Kempthorne. Fall 2013 MIT 18.S096

2.2 Elimination of Trend and Seasonality

I. Introduction. II. Background. KEY WORDS: Time series forecasting, Structural Models, CPS

3.1 Stationary Processes and Mean Reversion

Time Series Analysis

Time Series Analysis

AR(p) + MA(q) = ARMA(p, q)

Univariate Regression

APPLICATION OF THE VARMA MODEL FOR SALES FORECAST: CASE OF URMIA GRAY CEMENT FACTORY

Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression

Lecture 4: Seasonal Time Series, Trend Analysis & Component Model Bus 41910, Time Series Analysis, Mr. R. Tsay

Time Series Analysis in Economics. Klaus Neusser

Agenda. Managing Uncertainty in the Supply Chain. The Economic Order Quantity. Classic inventory theory

IBM SPSS Forecasting 22

Forecasting Using Eviews 2.0: An Overview

Predicting Indian GDP. And its relation with FMCG Sales

Time Series Analysis

Time Series Analysis and Forecasting Methods for Temporal Mining of Interlinked Documents

Chapter 9: Univariate Time Series Analysis

Forecasting of Economic Quantities using Fuzzy Autoregressive Model and Fuzzy Neural Network

Software Review: ITSM 2000 Professional Version 6.0.

Wooldridge, Introductory Econometrics, 3d ed. Chapter 12: Serial correlation and heteroskedasticity in time series regressions

Chapter 4: Vector Autoregressive Models

Threshold Autoregressive Models in Finance: A Comparative Approach

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models

IBM SPSS Forecasting 21

Time-Series Regression and Generalized Least Squares in R

State Space Time Series Analysis

Time Series in Mathematical Finance

Causes of Inflation in the Iranian Economy

Session 9 Case 3: Utilizing Available Software Statistical Analysis

Analysis of the Volatility of the Electricity Price in Kenya Using Autoregressive Integrated Moving Average Model

Introduction to Time Series Analysis. Lecture 6.

Traffic Safety Facts. Research Note. Time Series Analysis and Forecast of Crash Fatalities during Six Holiday Periods Cejun Liu* and Chou-Lin Chen

ECONOMETRIC MODELING VS ARTIFICIAL NEURAL

Modeling and forecasting regional GDP in Sweden. using autoregressive models

Promotional Forecast Demonstration

Time Series Analysis

PITFALLS IN TIME SERIES ANALYSIS. Cliff Hurvich Stern School, NYU

Forecasting areas and production of rice in India using ARIMA model

Predictability of Non-Linear Trading Rules in the US Stock Market Chong & Lam 2010

Application of ARIMA models in soybean series of prices in the north of Paraná

Financial Risk Management Exam Sample Questions/Answers

Multiple Linear Regression

16 : Demand Forecasting

Chapter 1. Vector autoregressions. 1.1 VARs and the identi cation problem

Promotional Analysis and Forecasting for Demand Planning: A Practical Time Series Approach Michael Leonard, SAS Institute Inc.

JOHANNES TSHEPISO TSOKU NONOFO PHOKONTSI DANIEL METSILENG FORECASTING SOUTH AFRICAN GOLD SALES: THE BOX-JENKINS METHODOLOGY

Forecasting Tourism Demand: Methods and Strategies. By D. C. Frechtling Oxford, UK: Butterworth Heinemann 2001

Econometric Modelling for Revenue Projections

Turkey s Energy Demand

In this paper we study how the time-series structure of the demand process affects the value of information

Transcription:

Some useful concepts in univariate time series analysis Autoregressive moving average models Autocorrelation functions Model Estimation Diagnostic measure Model selection Forecasting Assumptions: 1. Non-seasonal 2. Linear 3. Non-trending 4. Constant variance 1

White Noise: Lag operator: Autoregressive (AR) model AR(p) Model: 2

Example: Example: AR(1) Model 3

1. If the parameters converges to zero and 2. If, the time series is explosives. 3. If, random walk. Artificial Data in Figure 3.1: 1. 200 numbers are generated from independent standard normal distributions 2. Replace the 100 th observation by 3. y 1 is set to zero 4. The other 199 observations are generated by where t=2,,200 and. 4

1.0 0.9 0.5 1. In this chapter, we consider the shocks have only transitory effects, i.e. <1 in the above case. 2. When a series display permanent effects of shocks, the series is usually transformed to a series with transitory effects by taking first differences of the series. 5

Moving average (MA) model MA(q) Model: or with Remark: Since the explanatory variables are Unobserved, it may cause estimation problem if q is big. Empirically, we usually set q=1 or 2. Roots of If at least one root is on or inside the unit circle, the MA(q) model is not invertible. If all roots are outside the unit circle, the MA(q) model is invertible. 6

Example: MA(1) Model 1.The impact of the values of the MA parameter is less clear-cut as in case of AR models. 2. Large shocks do not tend to change the direction of the time series. Non-invertible Invertible 7

Autoregressive moving average (ARMA) model ARMA(p,q) where How to choose the order p and q in ARMA model? Two tools that are useful to characterize ARMA model: Autocorrelations (ACF) Partical autocorrelations (PACF) 8

Autocorrelation function The autocorrelation function (ACF) of a time series y t is defined by where AR(1): AR(2): See Figure 3.3, 3.4, 3.5, and 3.6 9

10

11

ACF is not useful to identify the lag of AR model But, it is useful in MA(q) model MA(2): ARMA(p,q): the pattern of the ACF is a mixture of the ACF pattern for pure AR and MA models. ARMA(1,1) 12

Partical autocorrelation function The PACF value at lag 1, is given by The second PACF value regression results from the The third PACF value AR(1): = =0 AR(2): are not equal to zero, but AR(p): 13

Estimation of ACF and PACF ACF PACF (ACF) 14

Model estimation Start with an inspection of the ACF and EPACF, and decide the order or structure of ARMA models Investigate whether the residuals are approximately white noise 15

Estimation of AR models The choice of p is based on PACF values that are significant Estimate AR(p) by OLS AR(1) 16

Estimation of ARMA models Consider an ARMA(1,1) model z t = z t-1 then Given a value for, we can construct z t and estimate by OLS Diagnostic testing for residual autocorrelation The estimated residual time series is approximately white noise. If not, we may have missed some dynamic structure in y t. H 0 : All of the first m residual autocorrelation are significant ~ 2 (m-p-q) 17

LM test for residual autocorrelation H 0 : AR(p) H a : AR(p+r) or ARMA(p,r) (i) Estimate the model in H 0 (ii) Estimate the model where are the estimated residuals of model H 0 (iii) nr 2 ~ 2 (r) The F-version of the test, denoted F AC,1-r Diagnostic testing for normality of residuals H 0 : The residuals are normal distributed Where The Bera-Jarque test 18

Model selection min k is the number of parameter RSS is the residual sum of squares min 19

Forecasting Consider a MA(2) model Forecast error (Since ) Two step ahead forecast error Three step ahead forecast error 20

Consider an AR(2) model: 21

Comparing forecasts Check whether 95 percent of the forecasts indeed lie within the 95 percent interval (If not, the variance may be underestimate) The forecast error is about randomly positive or negative. (If not, the models underestimate or overestimate the conditional mean of the time series) Evaluation Mean square prediction error Mean absolute percentage error 22

Ho: the MSPEs of models A and B are the same Let d i =1 if MSPE Ai >MSPE Bi ; d i =0 otherwise The mean may not be well estimated 23