Forecasting locally stationary time series

Similar documents
Forecasting non-stationary time series by wavelet process modelling

Forecasting non-stationary time series by wavelet process modelling

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

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

University of Oxford. Statistical Methods Autocorrelation. Identification and Estimation

Multiscale and multilevel technique for consistent segmentation of nonstationary time series

Classic Time Series Analysis

Some Time-Series Models

3 Theory of stationary random processes

Financial Time Series: Changepoints, structural breaks, segmentations and other stories.

A Beginner s Introduction. Box-Jenkins Models

I N S T I T U T S T A T I S T I Q U E

Lecture 2: Univariate Time Series

Time Series Analysis

Time Series Solutions HT 2009

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

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

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

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

MAT 3379 (Winter 2016) FINAL EXAM (SOLUTIONS)

Introduction to ARMA and GARCH processes

2. An Introduction to Moving Average Models and ARMA Models

ECON/FIN 250: Forecasting in Finance and Economics: Section 6: Standard Univariate Models

Stochastic Modelling Solutions to Exercises on Time Series

Stat 5100 Handout #12.e Notes: ARIMA Models (Unit 7) Key here: after stationary, identify dependence structure (and use for forecasting)

Chapter 4: Models for Stationary Time Series

STAD57 Time Series Analysis. Lecture 23

Consistent classification of non-stationary time series using stochastic wavelet representations

Introduction to Signal Processing

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

A Data-Driven Model for Software Reliability Prediction

Time Series: Theory and Methods

TIME SERIES ANALYSIS. Forecasting and Control. Wiley. Fifth Edition GWILYM M. JENKINS GEORGE E. P. BOX GREGORY C. REINSEL GRETA M.

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

Next tool is Partial ACF; mathematical tools first. The Multivariate Normal Distribution. e z2 /2. f Z (z) = 1 2π. e z2 i /2

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

Econ 424 Time Series Concepts

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

Dynamic Time Series Regression: A Panacea for Spurious Correlations

X random; interested in impact of X on Y. Time series analogue of regression.

Covariance Stationary Time Series. Example: Independent White Noise (IWN(0,σ 2 )) Y t = ε t, ε t iid N(0,σ 2 )

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

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

Applied Time. Series Analysis. Wayne A. Woodward. Henry L. Gray. Alan C. Elliott. Dallas, Texas, USA

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

Circle a single answer for each multiple choice question. Your choice should be made clearly.

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

Time Series Examples Sheet

Homework 4. 1 Data analysis problems

Univariate Time Series Analysis; ARIMA Models

Commemoration Day In Honour of Professor Maurice Priestley th December Programme

APPLIED ECONOMETRIC TIME SERIES 4TH EDITION

ITSM-R Reference Manual

Ch 6. Model Specification. Time Series Analysis

Fourier Analysis of Stationary and Non-Stationary Time Series

1. Fundamental concepts

MCMC analysis of classical time series algorithms.

Time Series Solutions HT Let fx t g be the ARMA(1, 1) process, where jffij < 1 and j j < 1. Show that the autocorrelation function of

MAT 3379 (Winter 2016) FINAL EXAM (PRACTICE)

18.S096 Problem Set 4 Fall 2013 Time Series Due Date: 10/15/2013

Autocorrelation Estimates of Locally Stationary Time Series

Time Series I Time Domain Methods

FE570 Financial Markets and Trading. Stevens Institute of Technology

Lecture 19 Box-Jenkins Seasonal Models

We will only present the general ideas on how to obtain. follow closely the AR(1) and AR(2) cases presented before.

ARIMA Modelling and Forecasting

Advanced Econometrics

1 Time Series Concepts and Challenges

Firstly, the dataset is cleaned and the years and months are separated to provide better distinction (sample below).

Chapter 6: Model Specification for Time Series

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

Wavelet-Based Test for Time Series Non-Stationarity 1

Minitab Project Report - Assignment 6

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

Time-Varying Moving Average Model for Autocovariance Nonstationary Time Series

The Identification of ARIMA Models

Time Series Examples Sheet

Econometric Forecasting

Lecture 4a: ARMA Model

CHAPTER 8 FORECASTING PRACTICE I

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

Ross Bettinger, Analytical Consultant, Seattle, WA

Chapter 13: Functional Autoregressive Models

Lecture 5: Unit Roots, Cointegration and Error Correction Models The Spurious Regression Problem

Chapter 9: Forecasting

For a stochastic process {Y t : t = 0, ±1, ±2, ±3, }, the mean function is defined by (2.2.1) ± 2..., γ t,

MAT3379 (Winter 2016)

Ch 5. Models for Nonstationary Time Series. Time Series Analysis

Decision 411: Class 9. HW#3 issues

5 Transfer function modelling

Class 1: Stationary Time Series Analysis

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

Statistics 349(02) Review Questions

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

Final Examination 7/6/2011

Haar-Fisz estimation of evolutionary wavelet spectra

Karolos K. Korkas and Piotr Fryzlewicz Multiple change-point detection for nonstationary time series using wild binary segmentation

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

distributed approximately according to white noise. Likewise, for general ARMA(p,q), the residuals can be expressed as

MULTISCALE AND MULTILEVEL TECHNIQUE FOR CONSISTENT SEGMENTATION OF NONSTATIONARY TIME SERIES

Transcription:

Forecasting locally stationary time series Rebecca Killick r.killick@lancs.ac.uk Joint work with Idris Eckley (Lancaster), Marina Knight (York) & Guy Nason (Bristol) June 30, 2014 Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 1 / 20

What do I mean by Nonstationary Time Series? I mean NOT second-order stationary. So, unconditional variance changes with time. Autocovariance, spectrum, etc. change with time. Typically assume EX t = 0 (assume mean removed). Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 2 / 20

What do I mean by Nonstationary Time Series? I mean NOT second-order stationary. So, unconditional variance changes with time. Autocovariance, spectrum, etc. change with time. Typically assume EX t = 0 (assume mean removed). More interested in Variability and CI Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 2 / 20

Structure of Presentation Motivation Nonstationary forecasting The local partial autocorrelation function Forecasting using the lpacf Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 3 / 20

Motivation Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 4 / 20

Motivation - ABML ABML consists of gross value added amounts Component in the estimate of GDP 223 observations from Q1 1955 to Q3 2010 We use second differences to remove trend Tests of stationarity reject H0. ABML ( million) 0 50000 100000 150000 200000 250000 300000 ABML Second Differences ( m) 6000 4000 2000 0 2000 4000 6000 1947 1954 1961 1968 1975 1982 1989 1996 2003 2010 1947 1954 1961 1968 1975 1982 1989 1996 2003 2010 Year Year Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 5 / 20

Motivation - ABML ONS currently use ARIMA models to forecast this data What is the danger in doing this? Red - Full series forecast Blue - Last 30 obs forecast Full fits ARMA(1,1) non-zero mean Last 30 obs fits AR(2) ABML Second Differences ( m) 6000 4000 2000 0 2000 4000 6000 2004 2006 2008 2010 Year Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 6 / 20

Motivation - ABML ONS currently use ARIMA models to forecast this data What is the danger in doing this? Red - Full series forecast Blue - Last 30 obs forecast Full fits ARMA(1,1) non-zero mean Last 30 obs fits AR(2) Overconfident in forecast? ABML Second Differences ( m) 6000 4000 2000 0 2000 4000 6000 2004 2006 2008 2010 Year Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 6 / 20

Recall: Forecasting Stationary TS Notation Suppose have data x 1,..., x T from stationary series. Want to make forecast ˆx T (h) made at time T for horizon h. Want forecast using linear combination of past: ˆx T (1) = T 1 i=0 ϕ i x T i = ϕ 0 x T + ϕ 1 x T 1 + ϕ 2 x T 2 + Note: ϕ sequence DOES NOT depend on time (stationary x t ) Theory can tell us optimal least-squares forecast (Box-Jenkins). Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 7 / 20

Extension to Nonstationary Time Series Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 8 / 20

Modelling nonstationary time series Modelling in the face of non-stationarity is no easy task! Various approaches have been explored, built on models that fit particular types of non-stationarity: assume piecewise stationarity; use parametric models with time-changing coefficients, e.g. Time Varying AR (tvar). Processes with a slowly time-varying second order structure are known as locally stationary (LS). Advanced LS models (ARCH) (Dahlhaus and Subba Rao, 2006). Locally stationary fourier processes (Dahlhaus, 1997). Locally stationary wavelet processes (Nason et al., 2000). Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 9 / 20

Locally stationary models If you take a small enough region, it will appear stationary as the structure varies slowly over time. 5 0 5 0.4 0.2 0.0 0.2 0.4 0 1000 2000 3000 4000 1400 1450 1500 1550 1600 1650 1700 Application areas include; medicine, finance environmental processes, e.g. wind speeds. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 10 / 20

Locally stationary wavelet (LSW) processes LSW processes (Nason et al., 2000): X t,t = 1 j= J(T ) k Z w j,k;t ψ j,k (t)ξ j,k, t = 1,..., T. {ψ j,k } is a collection of discrete non-decimated wavelets. {ξ j,k } j,k is a sequence of zero-mean, orthonormal random variables. Smoothness of wavelet amplitudes w j,k;t as a function of k controls the degree of non-stationarity. LSW processes encapsulate other models and represent processes whose variance and autocorrelation function vary over time. This leads to a localised measure of autocovariance c(t, τ). Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 11 / 20

Forecasting in LSW framework Given observations x 0,..., x t 1, we: Predict ˆx t = t 1 s=t p b t 1 i,t X s, where p is the number of latest observations used for prediction and b is the solution to localized Yule-Walker equations. c(t, 1) c(t 1, 0) c(t 2, 1) c(t, 2). = c(t 1, 1) c(t 2, 0)..... c(t, p) c(t 1, p) c(t 2, p 1) b t 1 b t 2. b t 1 p Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 12 / 20

Forecasting in LSW framework Given observations x 0,..., x t 1, we: Predict ˆx t = t 1 s=t p b t 1 i,t X s, where p is the number of latest observations used for prediction and b is the solution to localized Yule-Walker equations. c(t, 1) c(t 1, 0) c(t 2, 1) c(t, 2). = c(t 1, 1) c(t 2, 0)..... c(t, p) c(t 1, p) c(t 2, p 1) b t 1 b t 2. b t 1 p These require knowledge of the covariance structure at time t which is the point we are trying to predict. The covariance at time t is similar to that at time t 1. We extrapolate at the smoothing step. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 12 / 20

Previous nonstationary forecasting work Fryzlewicz et al. (2003) propose a method for LSW forecasting: smooth and extrapolate the covariances directly by kernel smoothing; choose p (and bandwidth) by in sample optimization. For a practitioner this leaves many questions. How much data do I train on? Do I update p and bandwidth simultaneously or another method? When updating, how many alternative options do I consider? What kernel smoother should I use? Ultimately this p is hard to choose. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 13 / 20

Our approach Our work: introduces localised partial acf shows that local partial ACF is an interesting tool in its own right gives encouraging forecasting results Thus we, mirror the stationary process and produce a data driven approach for practitioners. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 14 / 20

The local partial autocorrelation function (lpacf) We define the lpacf at time t and lag τ as: q(t, τ) = Corr(X t, X t τ {X t 1..., X t τ+1 }) q T (t, τ) = c( t 1,1) T c( t t 1,0)c( T T,0), for τ = 1 ϕ MSPE( ˆX t,x t X t 1...,X t τ+1 ) t,τ,τ MSPE( ˆX, for τ 2. t τ,x t τ X t 1...,X t τ+1 ) For stationary models the square root equals 1 and the ϕ t,τ,τ is the usual estimate of the pacf. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 15 / 20

ABML lpacf LPACF of ABML second differences 1.0 0.5 0.0 0.5 1.0 3 3 4 4 4 2 3 2 2 1 1 1 3 24 1 3 2 14 1958 1964 1970 1976 1982 1988 1994 2000 2006 Year Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 16 / 20

Forecasting Simulations Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 17 / 20

Comparisons with ARMA Range of models considered: TVAR(1) TVAR(2) TVAR(12) TVMA(1) TVMA(2) Uniformly modulated white noise LSW process Summary lpacf greatly improves on ARMA in 2/3 of cases comparable results (ratio ±0.05) in 1/3. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 18 / 20

AMBML - lpacf forecasting RMSE: lpacf=3430m, B-J=4290m, Fryzlewicz=8830m, 11/15, 8/15, 6/15 6000 4000 2000 0 2000 4000 6000 Year.Quarter (most recent first) Forecast and Prediction Intervals 10.Q3 10.Q1 09.Q3 09.Q1 08.Q3 08.Q1 07.Q3 07.Q1 Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 19 / 20

Summary Motivated why forecasting nonstationary time series is important. Proposed a new measure the local partial autocorrelation function and associated theoretical justification. Used the lpacf to choose p for the localised Yule-Walker equations. Showed increased forecasting performance when using the lpacf. We have used the lpacf as a tool for forecasting but it can be used in a variety of settings. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 20 / 20

References I R. Dahlhaus and S. Subba Rao. Statistical inference for time-varying ARCH processes. Annals of Statistics, 34(3):1075 1114, 2006. R. Dahlhaus. Fitting Time Series Models to Nonstationary Processes. Annals of Statistics, 25(1):1 37, 1997. G.P. Nason, R. von Sachs and G. Kroisandt. Wavelet Processes and Adaptive Estimation of the Evolutionary Wavelet Spectrum. JRSSB, 62(2):271 292, 2000. P. Fryzlewicz, S. Van Bellegem and R. von Sachs. Forecasting non-stationary time series by wavelet process modelling. Ann. Inst. Statist. Math., 55(4):737 764, 2003. Rebecca Killick (Lancaster University) Forecasting locally stationary time series June 30, 2014 21 / 20