STAD57 Time Series Analysis. Lecture 5

Similar documents
STAD57 Time Series Analysis. Lecture 17

STAD57 Time Series Analysis. Lecture 17

Time series Decomposition method

Stationary Time Series

Licenciatura de ADE y Licenciatura conjunta Derecho y ADE. Hoja de ejercicios 2 PARTE A

OBJECTIVES OF TIME SERIES ANALYSIS

Wisconsin Unemployment Rate Forecast Revisited

Estimation Uncertainty

Cointegration and Implications for Forecasting

Distribution of Least Squares

Quarterly ice cream sales are high each summer, and the series tends to repeat itself each year, so that the seasonal period is 4.

Lesson 2, page 1. Outline of lesson 2

Regression with Time Series Data

Econ107 Applied Econometrics Topic 7: Multicollinearity (Studenmund, Chapter 8)

Diebold, Chapter 7. Francis X. Diebold, Elements of Forecasting, 4th Edition (Mason, Ohio: Cengage Learning, 2006). Chapter 7. Characterizing Cycles

Dynamic Models, Autocorrelation and Forecasting

R t. C t P t. + u t. C t = αp t + βr t + v t. + β + w t

Nonstationarity-Integrated Models. Time Series Analysis Dr. Sevtap Kestel 1

Exponential Smoothing

- The whole joint distribution is independent of the date at which it is measured and depends only on the lag.

Properties of Autocorrelated Processes Economics 30331

5. NONLINEAR MODELS [1] Nonlinear (NL) Regression Models

1. Diagnostic (Misspeci cation) Tests: Testing the Assumptions

Types of Exponential Smoothing Methods. Simple Exponential Smoothing. Simple Exponential Smoothing

Kriging Models Predicting Atrazine Concentrations in Surface Water Draining Agricultural Watersheds

Lecture 3: Exponential Smoothing

ECON 482 / WH Hong Time Series Data Analysis 1. The Nature of Time Series Data. Example of time series data (inflation and unemployment rates)

ACE 564 Spring Lecture 7. Extensions of The Multiple Regression Model: Dummy Independent Variables. by Professor Scott H.

Lecture 5. Time series: ECM. Bernardina Algieri Department Economics, Statistics and Finance

Nature Neuroscience: doi: /nn Supplementary Figure 1. Spike-count autocorrelations in time.

Introduction D P. r = constant discount rate, g = Gordon Model (1962): constant dividend growth rate.

The Simple Linear Regression Model: Reporting the Results and Choosing the Functional Form

Vectorautoregressive Model and Cointegration Analysis. Time Series Analysis Dr. Sevtap Kestel 1

NCSS Statistical Software. , contains a periodic (cyclic) component. A natural model of the periodic component would be

Solutions to Odd Number Exercises in Chapter 6

Lecture 15. Dummy variables, continued

(10) (a) Derive and plot the spectrum of y. Discuss how the seasonality in the process is evident in spectrum.

Distribution of Estimates

Methodology. -ratios are biased and that the appropriate critical values have to be increased by an amount. that depends on the sample size.

Stability. Coefficients may change over time. Evolution of the economy Policy changes

THE UNIVERSITY OF TEXAS AT AUSTIN McCombs School of Business

Summer Term Albert-Ludwigs-Universität Freiburg Empirische Forschung und Okonometrie. Time Series Analysis

Box-Jenkins Modelling of Nigerian Stock Prices Data

ACE 562 Fall Lecture 4: Simple Linear Regression Model: Specification and Estimation. by Professor Scott H. Irwin

TÁMOP /2/A/KMR

Financial Econometrics Jeffrey R. Russell Midterm Winter 2009 SOLUTIONS

State-Space Models. Initialization, Estimation and Smoothing of the Kalman Filter

Forecasting. Summary. Sample StatFolio: tsforecast.sgp. STATGRAPHICS Centurion Rev. 9/16/2013

GDP Advance Estimate, 2016Q4

14 Autoregressive Moving Average Models

ψ(t) = V x (0)V x (t)

The Effect of Nonzero Autocorrelation Coefficients on the Distributions of Durbin-Watson Test Estimator: Three Autoregressive Models

Outline. lse-logo. Outline. Outline. 1 Wald Test. 2 The Likelihood Ratio Test. 3 Lagrange Multiplier Tests

4.1 Other Interpretations of Ridge Regression

Chapter 16. Regression with Time Series Data

STAD57 Time Series Analysis. Lecture 14

Modeling and Forecasting Volatility Autoregressive Conditional Heteroskedasticity Models. Economic Forecasting Anthony Tay Slide 1

Exercise: Building an Error Correction Model of Private Consumption. Part II Testing for Cointegration 1

Chapter 15. Time Series: Descriptive Analyses, Models, and Forecasting

Økonomisk Kandidateksamen 2005(II) Econometrics 2. Solution

Smoothing. Backward smoother: At any give T, replace the observation yt by a combination of observations at & before T

Section 4 NABE ASTEF 232

GMM - Generalized Method of Moments

12: AUTOREGRESSIVE AND MOVING AVERAGE PROCESSES IN DISCRETE TIME. Σ j =

Lecture 10 Estimating Nonlinear Regression Models

Chapter 5. Heterocedastic Models. Introduction to time series (2008) 1

Generalized Least Squares

Linear Gaussian State Space Models

Modeling Rainfall in Dhaka Division of Bangladesh Using Time Series Analysis.

Department of Economics East Carolina University Greenville, NC Phone: Fax:

ST4064. Time Series Analysis. Lecture notes

Mathcad Lecture #8 In-class Worksheet Curve Fitting and Interpolation

Chickens vs. Eggs: Replicating Thurman and Fisher (1988) by Arianto A. Patunru Department of Economics, University of Indonesia 2004

Applied Time Series Notes White noise: e t mean 0, variance 5 2 uncorrelated Moving Average

Let. x y. denote a bivariate time series with zero mean.

Dynamic Econometric Models: Y t = + 0 X t + 1 X t X t k X t-k + e t. A. Autoregressive Model:

Wednesday, November 7 Handout: Heteroskedasticity

(a) Set up the least squares estimation procedure for this problem, which will consist in minimizing the sum of squared residuals. 2 t.

How to Deal with Structural Breaks in Practical Cointegration Analysis

Chapter 3, Part IV: The Box-Jenkins Approach to Model Building

7 Detrending. 7.1 Identifying trend: a frequency-domain approach

Innova Junior College H2 Mathematics JC2 Preliminary Examinations Paper 2 Solutions 0 (*)

You must fully interpret your results. There is a relationship doesn t cut it. Use the text and, especially, the SPSS Manual for guidance.

Fourier Transformation on Model Fitting for Pakistan Inflation Rate

Unit Root Time Series. Univariate random walk

Testing the Random Walk Model. i.i.d. ( ) r

Use of Unobserved Components Model for Forecasting Non-stationary Time Series: A Case of Annual National Coconut Production in Sri Lanka

y = β 1 + β 2 x (11.1.1)

Why is Chinese Provincial Output Diverging? Joakim Westerlund, University of Gothenburg David Edgerton, Lund University Sonja Opper, Lund University

Institute for Mathematical Methods in Economics. University of Technology Vienna. Singapore, May Manfred Deistler

Mechanical Fatigue and Load-Induced Aging of Loudspeaker Suspension. Wolfgang Klippel,

Chapter 2. First Order Scalar Equations

Advanced Organic Chemistry

Chapter 11. Heteroskedasticity The Nature of Heteroskedasticity. In Chapter 3 we introduced the linear model (11.1.1)

A Specification Test for Linear Dynamic Stochastic General Equilibrium Models

Bias in Conditional and Unconditional Fixed Effects Logit Estimation: a Correction * Tom Coupé

BOX-JENKINS MODEL NOTATION. The Box-Jenkins ARMA(p,q) model is denoted by the equation. pwhile the moving average (MA) part of the model is θ1at

FORECASTING WITH REGRESSION

Linear Combinations of Volatility Forecasts for the WIG20 and Polish Exchange Rates

Course Notes for EE227C (Spring 2018): Convex Optimization and Approximation

Transcription:

STAD57 Time Series Analysis Lecure 5 1

Exploraory Daa Analysis Check if given TS is saionary: µ is consan σ 2 is consan γ(s,) is funcion of h= s If no, ry o make i saionary using some of he mehods below: De-rending Differencing Transformaions 2

De-rending Plo TS and/or is MA: if µ seems changing, ry o esimae µ & subrac i from series Y esimae rend ˆ Since E[ ], we have How do we esimae µ? work wih Yˆ ˆ E[ Yˆ ] E[ ˆ ] 0 For deerminisic rend (i.e. funcion of ), can use regression 3

Esimaing Trend Assume deerminisic rend µ =f() For linear rend, use simple linear regression Y 0 1 For nonlinear rend, can use polynomial regression 2 0 1 2... Y or some oher nonlinear regression mehod Regression s explanaory variable is ime (), or some funcion hereof Response could be MA of (o reduce variabiliy) 4

Example Umbrella sales w/ fied linear rend De-rended TS ˆ 6 8 10 12 14 ˆ -4-2 0 2 4 2001 2002 2003 2004 2005 2006 2001 2002 2003 2004 2005 2006 5

Example J&J sales w/ fied quadraic rend De-rended TS 0 5 10 15 ˆ b b b 0 1 2 2-3 -2-1 0 1 2 3 1960 1965 1970 1975 1980 1960 1965 1970 1975 1980 6

Regression in R Fi linear model Yi 0 11, i... p p, i i wih command: lm( Y ~ 1 + + n ) Can save oupu o R objec: ou=lm(y~1+ ) Use summary(ou) o see model summary Coefficien & error sd esimaes, significance ess Feed oupu o oher funcions o ge: ANOVA able: aov(ou) Fied values: fied(ou) Akaike s crierion: AIC(ou), ec 7

Differencing Alernaive o fiing linear rend is differencing: Y ( ) ( Y Y ) 0 1 1 1 1 If {Y } saionary {Y Y 1 } also saionary Differencing more appropriae when {Y } is random walk { } is random walk w/ drif Use when { } seems o hover around linear rend In his case, de-rending is no enough o make series saionary Disadvanage of differencing is ha we canno model dynamics of {Y }, only of {Y Y 1 } 8

Differencing Define backshif operaor B as B k exend i o powers so ha B 1 k Define 1 s order difference operaor as (1 B) Exend i o higher (d h ) order differences d d (1 B) by algebraically expanding operaor (1 B) d 2 2 2 E.g. (1 B) (1 2 B B ) B B 1 and 2 2 2 1 2 9

Differencing in R For 1 s order differences, i.e. use diff() 1 For d h order differences, i.e. use diff(, differences=d) d d (1 B) For simple (1 s order) differences a lag k, i.e. k (1 B ) k, use diff(, lag=k) 10

gemp Example Global Temperaure -0.4-0.2 0.0 0.2 0.4 0.6 TS w/ fied linear rend 1880 1900 1920 1940 1960 1980 2000 gempd gempdif -0.3-0.2-0.1 0.0 0.1 0.2 0.3-0.3-0.2-0.1 0.0 0.1 0.2 0.3 de-rended series 1880 1900 1920 1940 1960 1980 2000 differenced series ˆ 11 1880 1900 1920 1940 1960 1980 2000

ACF of ˆ Example Global Temperaure ACF -0.2 0.0 0.2 0.4 0.6 0.8 1.0 ACF of 0 5 10 15 20 Differencing considerably decreases auo-correlaions random walk w/ drif is more plausible model for series ACF ACF -0.2 0.0 0.2 0.4 0.6 0.8 1.0-0.2 0.0 0.2 0.4 0.6 0.8 1.0 0 5 10 15 20 ACF of 0 5 10 15 20 12

Seasonaliy Differencing can also be used for seasonaliy If series has seasonal paern wih period d, hen d-lag differences remove paern Define Z (1 B d ) d If d, E[ Z ] E[ d ] 0 paern of period d ( ) d 13

ˆ Example Umbrella sales (quarerly daa, annual paern d=4) y -4-2 0 2 4 2001 2002 2003 2004 2005 2006 6 8 10 12 14 ˆ -2-1 0 1 2 4 2002 2003 2004 2005 2006 differencing also removed linear rend 14 2001 2002 2003 2004 2005 2006

Time Series Regression Can also use regression model o esimae relaionship of one TS o ohers E.g. Y e, where {,Y } are 0 1 2 joinly saionary TS Usual leas squares esimaion is no opimal when dealing wih non-i.i.d. TS daa However, resuls are sill consisen (reliable for large n) if series are saionary Bu never use leas squares for non-saionary TS (e.g. random walks); can ge very bad resuls 15

Example 70 80 90 110 130 50 60 70 80 90 100 20 40 60 80 100 M Cardiovascular Moraliy 1970 1972 1974 1976 1978 1980 Temperaure T 1970 1972 1974 1976 1978 1980 Pariculaes P 50 60 70 80 90 100 Scaer-plo marix of TS relaionships 50 60 70 80 90 100 Moraliy Temperaure Pariculaes 70 80 90 110 130 20 40 60 80 100 20 40 60 80 100 70 80 90 110 130 1970 1972 1974 1976 1978 1980 2 fi model: M 0 1 2T 3T 4P 16

Transformaions If TS has non-consan variance, a nonlinear ransformaion can someimes help For posiive series in paricular, he Box-Cox family of power ransforms can be useful: Y ( 1) /, 0 log( ), 0 Try differen values of λ, and check which one seems o give bes resuls Noe: nonlinear ransforms can also change µ 17

Example Series w/ rend De-rended series J&J sales Original daa: 0 5 10 15 quadraic rend -3-2 -1 0 1 2 3 1960 1970 1980 1960 1970 1980 Transformed daa: Y log( ) 0 1 2 linear rend -0.4-0.2 0.0 0.2 0.4 1960 1970 1980 1960 1970 1980 18

Saionariy Saionariy of γ(s,) is mos difficul o check In pracice, canno verify saionariy since here is no way o esimae γ(s,), only γ(h) Essenially, we assume saionariy in order o carry on wih any TS analysis There are, however, 2 hings we can check: Sample ACF does no change a lo when calculaed from separae sub-sequences of daa Auocorrelaions drop o zero relaively fas (i.e. exponenially) for large lags 19

Example Saionary ACF (AR model) Non-saionary ACF (Random walk) 0.0 0.2 0.4 0.6 0.8 1.0 0.0 0.2 0.4 0.6 0.8 1.0 0 5 10 15 20 25 30 0 5 10 15 20 25 30 20