• Nem Talált Eredményt

Univariate time series analysis I.

N/A
N/A
Protected

Academic year: 2022

Ossza meg "Univariate time series analysis I. "

Copied!
8
0
0

Teljes szövegt

(1)

ECONOMETRICS

Sponsored by a Grant TÁMOP-4.1.2-08/2/A/KMR-2009-0041 Course Material Developed by Department of Economics,

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest

Institute of Economics, Hungarian Academy of Sciences Balassi Kiadó, Budapest

(2)

Authors: Péter Elek, Anikó Bíró Supervised by Péter Elek

June 2010

Week 9

Univariate time series analysis I.

Plan

Time series models

Autocovariance, autocorrelation Random walk, white noise

Stationary and nonstationary time series

Trend stationarity and difference stationarity To read: M 13.1, 13.3, first part of 13.4

(3)

Time series models

Time series: Xt is a sequence of random variables (i.e. a stochastic process)

Continuous e.g. EKG data

Discrete: annual, monthly, or even in every minute

e.g. inflation, GDP, stock prices

Seasonality, time trend etc.

Time series regression

Properties of time series

Joint distribution: distribution of (X(t1), X(t2),…,X(tn)) Expectation: t = E(Xt)

Variance: t2

= Var(Xt)

Autocovariance: t1,t2 = cov(Xt1, Xt2)

t,t = t2, t2,t1 = t1,t2

Autocorrelation: t1,t2 = corr(Xt1, Xt2) = t1,t2/(t1t2)

t,t = 1

Partial autocovariance (t1,t2): covariance between Xt1 and Xt2 after controlling for the the observations between t1 and t2

60000 80000 100000 120000 140000 160000 180000 200000

00 01 02 03 04 05 06 07

közszféra bérei (Ft/hó)

(4)

Stationary time series

“constant temporal relationship”

Strict stationarity: (Xt1, Xt2,…,Xtn) ~

(Xk+t1, Xk+t2,…,Xk+tn) for every (t1,t2,…,tn) and k Weak stationarity:

 = t = E(Xt) expectation does not depend on t

k = t,t-k = cov(Xt, Xt-k) autocovariance does not depend on t

k = corr(Xt, Xt-k) = k/0 autocorrelation

-k = k, 0 = 2

-k = k, 0 = 1

Strict stationarity → weak stationarity (if moments exist), the reverse is also true for Gaussian processes

White noise

(purely random process)

Xt = t ,

t is i.i.d.

k = 0 for every k ≠ 0

sometimes this is assumed, not equivalent for non-Gaussian processes

If Yt is a random walk then

∆Yt = Xt – Xt–1 is a white noise. -2

-1 0 1 2 3

(5)

Nonstationary time series

Random walk is nonstationary (even for  = 0)

Two common causes of nonstationarity Trend

Seasonaliy

Random walk

X0 = 0

Xt = Xt-1+  +t ,

t ~ IN(0,2)

(independent normal) Xt = t + 1 + 2 +…+ t

t = E(Xt) = t

t2

= Var(Xt) = t2

-24 -20 -16 -12 -8 -4 0

50 100 150 200 250 300

(6)

Trend stationary vs. difference stationary time series

Deterministic trend (trend stationarity) Xt = t + Yt, where Yt is stationary, E(Yt) = 0

The effect of shocks is temporary, the process eventually returns to its long run trend

∆Xt =  + Yt – Yt–1 is stationary, E(∆Xt) =  These are trend + I(0) processes.

Stochastic trend (difference stationarity)

Xt = Xt–1 +  +Yt, where Yt is stationary, E(Yt) = 0

The effect of shocks is persistent, the process does not have a deterministic trend

∆Xt =  + Yt is stationary, E(∆Xt) = 

These are first order integrated (I(1)) processes.

Deterministic vs. stochastic trend

5 0 1 0 0 1 5 0 2 0 0 2 5 0

(7)

Motivation: why is stationarity important?

Spurious trend in time series

Spurious trend in time series II.

(8)

Spurious regression in time series

Two independent random walks Xt = Xt-1 + 1t

Yt = Yt–1 + 2t

Regression: Yt = c + βXt + ut

β = 0 because of independence, but the t-test is significant!

The t-statistic does not have a limit distribution!

Reason: ut is nonstationary

Seminar

Univariate time series I.

Exercises

Simulation of basic time series models (white noise, AR(1), random walk)

Simulation of trend stationary and difference stationary series, their sample ACF and

Hivatkozások

KAPCSOLÓDÓ DOKUMENTUMOK

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy

Simulation of basic time series models (white noise, AR(1), random walk). Simulation of trend stationary and difference stationary series, their sample ACF

Faculty of Social Sciences, Eötvös Loránd University Budapest (ELTE) Department of Economics, Eötvös Loránd University Budapest.. Institute of Economics, Hungarian Academy

Fitting a linear trend and filtering by HP-filter Fitting an AR(1) + trend to the original, and an ARMA(1,1) to the differentiated time series. Testing the uncorrelatedness of

Filtering trend and seasonality from time series, forecasting based on the models Unit root test on Hungarian price level and inflation data. Model of retail turnover and household

több beépített eljárása van, és jobban programozható keresztmetszeti és panel elemzésre jobban

több beépített eljárása van, és jobban programozható keresztmetszeti és panel elemzésre jobban

Készítette: Elek Péter, Bíró Anikó Szakmai felelős: Elek