• Nem Talált Eredményt

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

N/A
N/A
Protected

Academic year: 2022

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

Copied!
19
0
0

Teljes szövegt

(1)

ECONOMETRICS

(2)

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

(3)
(4)

ECONOMETRICS

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

June 2010

ELTE Faculty of Social Sciences, Department of Economics

(5)

ECONOMETRICS

Week 9.

Univariate time series analysis I.

Péter Elek, Anikó Bíró

(6)

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

(7)

Time series models

Time series: X

t

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

60000 80000 100000 120000 140000 160000 180000 200000

00 01 02 03 04 05 06 07

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

(8)

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

(9)

Stationary time series

“constant temporal relationship”

Strict stationarity: (X

t1

, X

t2

,…,X

tn

) ~

(X

k+t1

, X

k+t2

,…,X

k+tn

) for every (t

1

,t

2

,…,t

n

) 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

(10)

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.

-3 -2 -1 0 1 2 3

25 50 75 100

(11)

Nonstationary time series

Random walk is nonstationary (even for  = 0)

Two common causes of nonstationarity

Trend

Seasonaliy

(12)

Random walk

X

0

= 0

X

t

= X

t-1

+ +

t

,

t

~ IN(0,

2

)

(independent normal)

X

t

= t +

1

+

2

+…+

t

t

= E(X

t

) = t 

t2

= Var(X

t

) = t 

2

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

50 100 150 200 250 300

(13)

Trend stationary vs. difference stationary time series

Deterministic trend (trend stationarity)

X

t

= t + Y

t

, where Y

t

is stationary, E(Y

t

) = 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)

X

t

= X

t–1

+ +Y

t

, where Y

t

is stationary, E(Y

t

) = 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.

(14)

Deterministic vs. stochastic trend

-50 0 50 100 150 200 250

25 50 75 100 125 150 175 200

X(t) = t+IN(0,100) X(t) = 1+X(t-1)+IN(0,100)

(15)

Motivation: why is stationarity important?

Spurious trend in time series

(16)

Spurious trend in time series II.

(17)

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

(18)

Seminar

Univariate time series I.

(19)

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 PACF

Example for deterministic and stochastic seasonality

Example for uncorrelated but not independent

processes

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

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

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

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