Time Series Analysis

Size: px
Start display at page:

Download "Time Series Analysis"

Transcription

1 Time Series Analysis Andrea Beccarini Center for Quantitative Economics Winter 2013/2014 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

2 Introduction Objectives Time series are ubiquitous in economics, and very important in macro economics and financial economics GDP, inflation rates, unemployment, interest rates, stock prices You will learn... the formal mathematical treatment of time series and stochastic processes what the most important standard models in economics are how to fit models to real world time series Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

3 Introduction Prerequisites Descriptive Statistics Probability Theory Statistical Inference Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

4 Introduction Class and material Class Class teacher: Sarah Meyer Time: Tu., 12:00-14:00 Location: CAWM 3 Start: 22 October 2013 Material Course page on Blackboard Slides and class material are (or will be) downloadable Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

5 Introduction Literature Neusser, Klaus (2011), Zeitreihenanalyse in den Wirtschaftswissenschaften, 3. Aufl., Teubner, Wiesbaden. available online in the RUB-Netz Hamilton, James D. (1994), Time Series Analysis, Princeton University Press, Princeton. Pfaff, Bernhard (2006), Analysis of Integrated and Cointegrated Time Series with R, Springer, New York. Schlittgen, Rainer und Streitberg, Bernd (1997), Zeitreihenanalyse, 7. Aufl., Oldenbourg, München. Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

6 Basics Definition Definition: Time series A sequence of observations ordered by time is called time series Time series can be univariate or multivariate Time can be discrete or continous The states can be discrete or continuous Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

7 Basics Definition Typical notations x 1, x 2,..., x T or x(1), x(2),..., x(t ) or x t, t = 1,..., T or (x t ) t 0 This course is about... univariate time series in discrete time with continuous states Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

8 Basics Examples Quarterly GDP Germany, 1991 I to 2012 II GDP (in current billion Euro) Time Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

9 Basics Examples DAX index and log(dax), to DAX Time logarithm of DAX Time Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

10 Basics Definition Definition: Stochastic process A sequence (X t ) t T of random variables, all defined on the same probability space (Ω, A, P), is called stochastic process with discrete time parameter (usually T = N or T = Z) Short version: A stochastic process is a sequence of random variables A stochastic process depends on both chance and time Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

11 Basics Definition Distinguish four cases: both time and chance can be fixed or variable t fixed t variable ω fixed X t (ω) is a X t (ω) is a sequence of real number real numbers (path, realization, trajectory) ω variable X t (ω) is a X t (ω) is a stochastic random variable process process.r Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

12 Basics Examples Example 1: White noise ε t NID ( 0, σ 2) Example 2: Random walk X t = X t 1 + ε t and X 0 = 0 ε t NID(0, σ 2 ) Example 3: A random constant X t = Z Z N(0, σ 2 ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

13 Basics Moment functions Definition: Moment functions The following functions of time are called moment functions: µ(t) = E(X t ) (expectation function) σ 2 (t) = Var(X t ) (variance function) γ(s, t) = Cov(X s, X t ) (covariance function) Correlation function (autocorrelation function) ρ(s, t) = γ(s, t) σ 2 (s) σ 2 (t) moments.r [1] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

14 Basics Estimation of moment functions Usually, the moment functions are unknown and have to be estimated Problem: Only a single path (realization) can be observed X (1) 1 X (2) 1... X (n) 1 X (1) 2 X (2) 2... X (n) X (1) T X (2) T... X (n) T Can we still estimate the expectation function µ(t) and the autocovariance function γ(s, t)? Under which conditions? Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

15 Basics Estimation of moment functions X (1) 1 X (2) 1... X (n) 1 X (1) 2 X (2) 2... X (n) X (1) T X (2) T... X (n) T Usually, the expectation function µ(t) should be estimated by averaging over realizations, ˆµ(t) = 1 n n i=1 X (i) t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

16 Basics Estimation of moment functions X (1) 1 X (2) 1... X (n) 1 X (1) 2 X (2) 2... X (n) X (1) T X (2) T... X (n) T Under certain conditions, µ(t) can be estimated by averaging over time, ˆµ = 1 T (1) X t T t=1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

17 Basics Estimation of moment functions X (1) 1 X (2) 1... X (n) 1 X (1) 2 X (2) 2... X (n) X (1) T X (2) T... X (n) T Usually, the autocovariance γ(t, t + h) should be estimated by averaging over realizations, ˆγ(t, t + h) = 1 n n i=1 (X (i) t ˆµ(t))(X (i) t+h ˆµ(t + h)) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

18 Basics Estimation of moment functions X (1) 1 X (2) 1... X (n) 1 X (1) 2 X (2) 2... X (n) X (1) T X (2) T... X (n) T Under certain conditions, γ(t, t + h) can be estimated by averaging over time, ˆγ(t, t + h) = 1 T T h (X (1) t ˆµ)(X (1) t+h ˆµ) t=1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

19 Basics Definition Moment functions cannot be estimated without additional assumptions since only one path is observed There are restrictions which allow to estimate the moment functions Restriction of the time heterogeneity: The distribution of (X t (ω)) t T must not be completely different for each t T Restriction of the memory: If the values of the process are coupled too closely over time, the individual observations do not supply any (or only insufficient) information about the distribution Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

20 Basics Restriction of time heterogeneity: Stationarity Definition: Strong stationarity Let (X t ) t T be a stochastic process, and let t 1,..., t n T be an arbitrary number of n N arbitrary time points. (X t ) t T is called strongly stationary if for arbitrary h Z P(X t1 x 1,..., X tn x n ) = P(X t1 +h x 1,..., X tn+h x n ) Implication: all univariate marginal distributions are identical Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

21 Basics Restriction of time heterogeneity: Stationarity Definition: Weak stationarity (X t ) t T is called weakly stationary if 1 the expectation exists and is constant: E(X t ) = µ < for all t T 2 the variance exists and is constant: Var(X t ) = σ 2 < for all t T 3 for all t, s, r Z (in admissible range) γ(t, s) = γ (t + r, s + r) Simplified notation for covariance and correlation functions γ(h) = γ(t, t + h) ρ(h) = ρ(t, t + h) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

22 Basics Restriction of time heterogeneity: Stationarity Strong stationarity implies weak stationarity (but only if the first two moments exist) A stochastic process is called Gaussian if the joint distribution of X t1,..., X tn is multivariate normal For Gaussian processes, weak and strong stationarity coincide Intuition: An observed time series can be regarded as a realization of a stationary process, if a gliding window of appropriate width always displays qualitatively the same picture stationary.r Examples [2] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

23 Basics Restriction of memory: Ergodicity Definition: Ergodicity (I) Let (X t ) t T be a weakly stationary stochastic process with expectation µ and autocovariance γ(h); define ˆµ = 1 T T t=1 X t (X t ) t T is called (expectation) ergodic, if [ lim E (ˆµ T µ) 2] = 0 T Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

24 Basics Restriction of memory: Ergodicity Definition: Ergodicity (II) Let (X t ) t T be a weakly stationary stochastic process with expectation µ and autocovariance γ(h); define ˆγ(h) = 1 T T h (X t µ)(x t+h µ) t=1 (X t ) t T is called (covariance) ergodic, if for all h Z [ lim E (ˆγ(h) γ(h)) 2] = 0 T Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

25 Basics Restriction of memory: Ergodicity Ergodicity is consistency (in quadratic mean) of the estimators ˆµ of µ and ˆγ(h) of γ(h) for dependent observations The process (X t ) t T is expectation ergodic if (γ(h)) h Z is absolutely summable, i.e. h= γ(h) < The dependence between far away observations must be sufficiently small Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

26 Basics Restriction of memory: Ergodicity Ergodicity condition (for autocovariance): A stationary Gaussian process (X t ) t T with absolutely summable autocovariance function γ(h) is (autocovariance) ergodic Under ergodicity, the law of large numbers holds even if the observations are dependent If the dependence γ(h) does not diminish fast enough, the estimators are no longer consistent Examples [3] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

27 Basics Estimation of moment functions Summary of estimators electricity.r ˆµ = X T = 1 T T t=1 X t ˆγ(h) = 1 T h (X t ˆµ)(X t+h ˆµ) T t=1 ˆρ(h) = ˆγ(h) ˆγ(0) Sometimes, ˆγ(h) is defined with factor 1/(T h) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

28 Basics Estimation of moment functions A closer look at the expectation estimator ˆµ The estimator ˆµ is unbiased, i.e. E(ˆµ) = µ [4] The variance of ˆµ is Var (ˆµ) = γ (0) T Under ergodicity, for T + 2 T T Var (ˆµ) γ (0) + 2 T 1 h=1 ( 1 h ) γ (h) T γ (h) = h=1 h= γ(h) [5] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

29 Basics Estimation of moment functions For Gaussian processes, ˆµ is normally distributed ˆµ N (µ, Var(ˆµ)) and asymptotically ( ) T (ˆµ µ) Z N 0, γ (0) + 2 γ (h) h=1 For non-gaussian processes, ˆµ is (often) asymptotically normal ( ) T (ˆµ µ) Z N 0, γ (0) + 2 γ (h) h=1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

30 Basics Estimation of moment functions A closer look at the autocovariance estimators ˆγ(h) For Gaussian processes with absolutely summable covariance function, ( T (ˆγ (0) γ (0)),..., T (ˆγ (K) γ (K)) ) is multivariate normal with expectation vector (0,..., 0) and = T Cov (ˆγ (h 1 ), ˆγ (h 2 )) (γ (r) γ (r + h 1 + h 2 ) + γ (r h 2 ) γ (r + h 1 )) r= Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

31 Basics Estimation of moment functions A closer look at the autocorrelation estimators ˆρ(h) For Gaussian processes with absolutely summable covariance function, the random vector ( T (ˆρ (0) ρ (0)),..., T (ˆρ (K) ρ (K)) ) is multivariate normal with expectation vector (0,..., 0) and a complicated covariance matrix Be careful: For small to medium sample sizes the autocovariance and autocorrelation estimators are biased! autocorr.r Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

32 Basics Estimation of moment functions An important special case for autocorrelation estimators: Let (ε t ) be a white-noise process with Var (ε t ) = σ 2 <, then E (ˆρ (h)) = T 1 + O(T 2 ) Cov (ˆρ (h 1 ), ˆρ (h 2 )) = { T 1 + O(T 2 ) for h 1 = h 2 O ( T 2) else For white-noise processes and long time series, the empirical autocorrelations are approximately independent normal random variables with expectation T 1 and variance T 1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

33 Mathematical digression (I) Complex numbers Some quadratic equations do not have real solutions, e.g. x = 0 Still it is possible (and sensible) to define solutions to such equations The definition in common notation is i = 1 where i is the number which, when squared, equals 1 The number i is called imaginary (i.e. not real) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

34 Mathematical digression (I) Complex numbers Other imaginary numbers follow from this definition, e.g. 16 = 16 1 = 4i 5 = 5 1 = 5i Further, it is possible to define numbers that contain both a real part and an imaginary part, e.g. 5 8i or a + bi Such numbers are called complex and the set of complex numbers is denoted as C The pair a + bi and a bi is called conjugate complex Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

35 Mathematical digression (I) Complex numbers Geometric interpretation: seq(0, 8, length = 11) imaginary axis absolute value r a+bi imaginary part b θ real part a real axis Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

36 Mathematical digression (I) Complex numbers Polar coordinates and Cartesian coordinates z = a + bi = r (cos θ + i sin θ) = re iθ a = r cos θ b = r sin θ r = a 2 + b ( 2 ) b θ = arctan a Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

37 Mathematical digression (I) Complex numbers Rules of calculus: Addition (a + bi) + (c + di) = (a + c) + (b + d)i Multiplication (cartesian coordinates) (a + bi) (c + di) = (ac bd) + (ad + bc)i Multiplication (polar coordinates) r 1 e iθ1 r 2 e iθ 2 = r 1 r 2 e i(θ 1+θ 2 ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

38 Mathematical digression (I) Complex numbers Addition: seq( 2, 8, length = 11) imaginary axis c+di a+bi real axis Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

39 Mathematical digression (I) Complex numbers Addition: seq( 2, 8, length = 11) imaginary axis c+di a+bi real axis Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

40 Mathematical digression (I) Complex numbers Addition: (a+c)+(b+d)i seq( 2, 8, length = 11) imaginary axis c+di a+bi real axis Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

41 Mathematical digression (I) Complex numbers Multiplication: seq( 2, 8, length = 11) imaginary axis r 2 θ 2 θ 1 r 1 real axis Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

42 Mathematical digression (I) Complex numbers Multiplication: seq( 2, 8, length = 11) imaginary axis r = r 1 r 2 r 2 θ = θ 1 + θ 2 θ 2 θ 1 r 1 real axis Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

43 Mathematical digression (I) Complex numbers The quadratic equation has the solutions If p2 4 x 2 + px + q = 0 x = p 2 ± p 2 4 q q < 0 the solutions are complex (and conjugate) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

44 Mathematical digression (I) Complex numbers Example: The solutions of x 2 2x + 5 = 0 are and x = ( 2) 2 x = ( 2) 2 + ( 2) 2 4 ( 2) = 1 + 2i 5 = 1 2i Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

45 Mathematical digression (II) Linear difference equations First order difference equation with initial value x 0 : x t = c + φ 1 x t 1 p-th order difference equation with initial value x 0 : x t = c + φ 1 x t φ p x t p A sequence (x t ) t=0,1,... that satisfies the difference equation is called a solution of the difference equation Examples (diffequation.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

46 Mathematical digression (II) Linear difference equations We only consider the homogeneous case, i.e. c = 0 The general solution of the first-order difference equation is x t = φ 1 x t 1 x t = A φ t 1 with arbitrary constant A since x t = Aφ t 1 = φ 1Aφ t 1 1 = φ 1 x t 1 The constant is definitized by the initial condition, A = x 0 The sequence x t = Aφ t 1 is convergent if and only if φ 1 < 1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

47 Mathematical digression (II) Linear difference equations Solution of the p-th order difference equation x t = φ 1 x t φ p x t p Let x t = Az t, then Az t = φ 1 Az (t 1) φ p Az (t p) z t = φ 1 z (t 1) φ p z (t p) and thus 1 φ 1 z 1... φ p z p = 0 Characteristic polynomial, characteristic equation Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

48 Mathematical digression (II) Linear difference equations There are p (possibly complex, possibly nondistinct) solutions of the characteristic equation Denote the solutions (called roots) by z 1,..., z p If all roots are real and distinct, then x t = A 1 z1 t A p zp t is a solution of the homogeneous difference equation If there are complex roots the solution is oscillating The constants A 1,..., A p can be definitized with p initial conditions (x 0, x 1,..., x p 1 ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

49 Mathematical digression (II) Linear difference equations Stability condition: The linear difference equation x t = φ 1 x t φ p x t p is stable (i.e. convergent) if and only if all roots of the characteristic polynomial 1 φ 1 z... φ p z p = 0 are outside the unit circle, i.e. z i > 1 for all i = 1,..., p In R, the stability condition can be checked easily using the commands polyroot (base package) or ArmaRoots (farma package) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

50 ARMA models Definition Definition: ARMA process Let (ε t ) t T be a white noise process; the stochastic process X t = φ 1 X t φ p X t p + ε t + θ 1 ε t θ q ε t q with φ p, θ q 0 is called ARMA(p, q) process AutoRegressive Moving Average process ARMA processes are important since every stationary process can be approximated by an ARMA process Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

51 ARMA models Lag operator and lag polynomial The lag operator is a convenient notational tool The lag operator L shifts the time index of a stochastic process L (X t ) t T = (X t 1 ) t T LX t = X t 1 Rules L 2 X t = L (LX t ) = X t 2 L n X t = X t n L 1 = X t+1 L 0 X t = X t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

52 ARMA models Lag operator and lag polynomial Lag polynomial A(L) = a 0 + a 1 L + a 2 L a p L p Example: Let A(L) = 1 0.5L and B(L) = 1 + 4L 2, then C(L) = A(L)B(L) = (1 0.5L) ( 1 + 4L 2) = 1 0.5L + 4L 2 2L 3 Lag polynomials can be treated in the same way as ordinary polynomials Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

53 ARMA models Lag operator and lag polynomial Define the lag polynomials Φ(L) = 1 φ 1 L... φ p L p Θ(L) = 1 + θ 1 L θ q L q The ARMA(p, q) process can be written compactly as Important special cases Φ(L)X t = Θ(L)ε t MA(q) process : X t = ε t + θ 1 ε t θ q ε t q AR(1) process : X t = φ 1 X t 1 + ε t AR(p) process : X t = φ 1 X t φ p X t p + ε t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

54 ARMA models MA(q) process The MA(q) process is X t = Θ(L)ε t X t = ε t + θ 1 ε t θ q ε t q with ε t NID(0, σε) 2 Expectation function E(X t ) = E (ε t + θ 1 ε t θ q ε t q ) = E(ε t ) + θ 1 E(ε t 1 ) θ q E(ε t q ) = 0 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

55 ARMA models MA(q) process Autocovariance function γ (s, t) = E [ (ε s + θ 1 ε s θ q ε s q ) (ε t + θ 1 ε t θ q ε t q ) ] = E [ ε s ε t + θ 1 ε s ε t 1 + θ 2 ε s ε t θ q ε s ε t q +θ 1 ε s 1 ε t + θ1ε 2 s 1 ε t 1 + θ 1 θ 2 ε s 1 ε t θ 1 θ q ε s 1 ε t q θ q ε s q ε t + θ 1 θ q ε s q ε t 1 + θ 2 θ q ε s q ε t θqε 2 ] s q ε t q The expectations of the cross products are { 0 for s t E(ε s ε t ) = for s = t σ 2 ε Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

56 ARMA models MA(q) process Define θ 0 = 1, then γ (t, t) = σ 2 ε γ (t 1, t) = σ 2 ε γ (t 2, t) = σ 2 ε q i=0 θ2 i q 1 q 2 i=0 θ iθ i+1 i=0 θ iθ i+2 γ (t q, t) = σεθ 2 0 θ q = σεθ 2 q γ (s, t) = 0 for s < t q Hence, MA(q) processes are always stationary Simulation of MA(q) processes (maqsim.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

57 ARMA models AR(1) process The AR(1) process is Φ(L)X t = ε t (1 φ 1 L)X t = ε t X t = φ 1 X t 1 + ε t with ε t NID(0, σε) 2 Expectation and variance function [6] Stability condition: AR(1) processes are stable if φ 1 < 1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

58 ARMA models AR(1) process Stationarity: Stable AR(1) processes are weakly stationary if [7] E (X 0 ) = 0 Var(X 0 ) = σ 2 ε 1 φ 2 1 Nonstationary stable processes converge towards stationarity [8] It is common parlance to call stable processes stationary Covariance function of stationary AR(1) process [9] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

59 ARMA models AR(p) process The AR(p) process is Φ(L)X t = ε t X t = φ 1 X t φ p X t p + ε t with ε t NID(0, σε) 2 Assumption: ε t is independent from X t 1, X t 2,... (innovations) Expectation function The covariance function is complicated (ar2autocov.r) [10] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

60 ARMA models AR(p) process AR(p) processes are stable if all roots of the characteristic equation Φ(z) = 0 are larger than 1 in absolute value, z i > 1 for i = 1,..., p An AR(p) process is weakly stationary if the joint distribution of the p initial values (X 0, X 1,..., X (p 1) ) is appropriate Stable AR(p) processes converge towards stationarity; they are often called stationary Simulation of AR(p) processes (arpsim.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

61 ARMA models Invertability AR and MA processes can be inverted (into each other) Example: Consider the stable AR (1) process with φ 1 < 1 X t = φ 1 X t 1 + ε t = φ 1 (φ 1 X t 2 + ε t 1 ) + ε t = φ 2 1X t 2 + φ 1 ε t 1 + ε t. = φ n 1X t n + φ n 1 1 ε t (n 1) φ 2 1ε t 2 + φ 1 ε t 1 + ε t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

62 ARMA models Invertability Since φ 1 < 1 X t = φ i 1ε t i i=0 = ε t + θ 1 ε t 1 + θ 2 ε t with θ i = φ i 1 A stable AR(1) process can be written as an MA( ) process (the same is true for stable AR(p) processes) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

63 ARMA models Invertability Using lag polynomials this can be written as (1 φ 1 L)X t = ε t X t = (1 φ 1 L) 1 ε t X t = (φ 1 L) i ε t i=0 General compact and elegant notation Φ(L)X t = ε t X t = (Φ(L)) 1 ε t = Θ(L)ε t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

64 ARMA models Invertability MA(q) can be written as AR( ) if all roots of Θ(z) = 0 are larger than 1 in absolute value (invertability condition) Example: MA(1) with θ 1 < 1; from X t = ε t + θ 1 ε t 1 θ 1 X t 1 = θ 1 ε t 1 + θ 2 1ε t 2 we find X t = θ 1 X t 1 + ε t θ 2 1 ε t 2 Repeated substitution of the ε t i terms yields X t = φ i X t i + ε t with φ i = ( 1) i+1 θ1 i i=1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

65 ARMA models Invertability Summary ARMA(p, q) processes are stable if all roots of Φ(z) = 0 are larger than 1 in absolute value ARMA(p, q) processes are invertible if all roots of Θ(z) = 0 are larger than 1 in absolute value Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

66 ARMA models Invertability Sometimes (e.g. for proofs), it is useful to write an ARMA(p, q) process either as AR( ) or as MA( ) ARMA(p, q) can be written as AR( ) or MA( ) Φ(L)X t = Θ(L)ε t (Θ(L)) 1 Φ(L)X t = ε t X t = (Φ(L)) 1 Θ(L)ε t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

67 ARMA models Deterministic components Until now we only considered processes with zero expectation Many processes have both a zero-expectation stochastic component (Y t ) and a non-zero deterministic component (D t ) Examples: linear trend D t = a + bt exponential trend D t = ab t saisonal patterns Let (X t ) t Z be a stochastic process with deterministic component D t and define Y t = X t D t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

68 ARMA models Deterministic components Then E(Y t ) = 0 and Cov (Y t, Y s ) = E [(Y t E (Y t )) (Y s E (Y s ))] = E[(X t D t E(X t D t ))(X s D s E(X s D s ))] = E [(X t E (X t )) (X s E (X s ))] = Cov (X t, X s ) The covariance function does not depend on the deterministic component To derive the covariance function of a stochastic process, simply drop the deterministic component Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

69 ARMA models Deterministic components Special case: D t = µ t = µ ARMA(p, q) process with constant (non-zero) expectation X t µ = φ 1 (X t 1 µ) φ p (X t p µ) +ε t + θ 1 ε t θ q ε t q The process can also be written as X t = c + φ 1 X t φ p X t p + ε t + θ 1 ε t θ q ε t q where c = µ (1 φ 1... φ p ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

70 ARMA models Deterministic components Wold s representation theorem: Every stationary stochastic process (X t ) t T can be represented as X t = ψ h ε t h + D t h=0 with ψ 0 = 1, h=0 ψ2 j < and ε t white noise with variance σ 2 > 0 Stationary stochastic processes can be written as a sum of a deterministic process and an MA( ) process Often, low order ARMA(p, q) processes can approximate MA( ) processes well Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

71 ARMA models Linear processes and filter Definition: Linear process Let (ε t ) t Z be a white noise process; a stochastic process (X t ) t Z is called linear if it can be written as X t = h= = Ψ(L)ε t ψ h ε t h where the coefficients are absolutely summable, i.e. h= ψ h <. The lag polynomial Ψ(L) is called (linear) filter Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

72 ARMA models Linear processes and filter Some special filters Change from previous period (difference filter) Ψ(L) = 1 L Change from last year (for quarterly or monthly data) Ψ(L) = 1 L 4 Ψ(L) = 1 L 12 Elimination of saisonal influences (quarterly data) Ψ(L) = ( 1 + L + L 2 + L 3) /4 Ψ(L) = 0.125L L L L 2 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

73 ARMA models Linear processes and filter Hodrick-Prescott filter (important tool in empirical macro economics) Decompose a time series (X t ) into a long-term growth component (G t ) and a short-term cyclical component (C t ) X t = G t + C t Trade-off between goodness-of-fit and smoothness of G t Minimize the criterion function T t=1 T 1 (X t G t ) 2 + λ [(G t+1 G t ) (G t G t 1 )] 2 t=2 with respect to G t for given smoothness parameter λ Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

74 ARMA models Linear processes and filter The FOCs of the minimization problem are G 1. G T = A X 1. X T where A = (I + λk K) 1 with K = Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

75 ARMA models Linear processes and filter The HP filter is a linear filter Typical values for smoothing parameter λ λ = 10 λ = 1600 λ = annual data quarterly data monthly data Implementation in R (code by Olaf Posch) Empirical examples (hpfilter.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

76 Estimation of ARMA models The estimation problem Problem: The parameters φ 1,..., φ p, θ 1,..., θ q, σ 2 ε of an ARMA(p, q) process are usually unknown They have to be estimated from an observed time series X 1,..., X T Standard estimation methods: Least squares (OLS) Maximum likelihood (ML) Assumption: the lag orders p and q are known Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

77 Estimation of ARMA models Least squares estimation of AR(p) models The AR(p) model with non-zero constant expectation X t = c + φ 1 X t φ p X t p + ε t can be writte in matrix notation X p+1 1 X p X p 1... X 1 X p+2. = 1 X p+1 X p... X X T 1 X T 1 X T 2... X T p c φ 1. φ p + ε p+1 ε p+2. ε T Compact notation: y = Xβ + u Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

78 Estimation of ARMA models Least squares estimation of AR(p) models The standard least squares estimator is ˆβ = ( X X ) 1 X y The matrix of exogenous variables X is stochastic usual results for OLS regression do not hold But: There is no contemporaneous correlation between the error term and the exogenous variables Hence, the OLS estimators are consistent and asymptotically efficient Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

79 Estimation of ARMA models Least squares estimation of ARMA models Solve the ARMA equation for ε t, X t = c + φ 1 X t φ p X t p + ε t + θ 1 ε t θ q ε t q ε t = X t c φ 1 X t 1... φ p X t p θ 1 ε t 1... θ q ε t q Define the residuals as functions of the unknown parameters ˆε t (d, f 1,..., f p, g 1,..., g q ) = X t d f 1 X t 1... f p X t p g 1ˆε t 1... g q ˆε t q Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

80 Estimation of ARMA models Least squares estimation of ARMA models Define the sum of squared residuals S (d, f 1,..., f p, g 1,..., g q ) = The least squares estimators are T (ˆε t (d, f 1,..., f p, g 1,..., g q )) 2 t=1 (ĉ, ˆφ 1,..., ˆφ p, ˆθ 1,..., ˆθ q ) = arg min S (d, f 1,..., f p, g 1,..., g q ) Since the residuals are defined recursively one needs starting values ˆε 0,..., ˆε q+1 and X 0,..., X p+1 to calculate ˆε 1 Easiest way: Set all starting values to zero ( conditional estimation ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

81 Estimation of ARMA models Least squares estimation of ARMA models The first order conditions are a nonlinear equation system which cannot be solved easily Minimization by standard numerical methods (implemented in all usual statistical packages) Either solve the nonlinear first order conditions equation system or minimize S Simple special case: ARMA(1, 1) arma11.r Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

82 Estimation of ARMA models Maximum likelihood estimation Additional assumption: The innovations ε t are normally distributed Implication: ARMA processes are Gaussian The joint distribution of X 1,..., X T is multivariat normal X = X 1. X T N (µ, Σ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

83 Estimation of ARMA models Maximum likelihood estimation Expectation vector µ = E X 1. X T = c/ (1 φ 1... φ p ). c/ (1 φ 1... φ p ) Covariance matrix X 1 X 2 Σ = Cov. = X T γ(0) γ(1)... γ(t 1) γ(1) γ(0)... γ (T 2) γ(t 1) γ (T 2)... γ(0) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

84 Estimation of ARMA models Maximum likelihood estimation The expectation vector and the covariance matrix contain all unknown parameters ψ = ( φ 1,..., φ p, θ 1,..., θ q, c, σε 2 ) The likelihood function is ( L (ψ; X) = (2π) T /2 (det Σ) 1/2 exp 1 ) 2 (X µ) Σ 1 (X µ) and the loglikelihood function is ln L (ψ; X) = T 2 ln (2π) 1 2 ln (det Σ) 1 2 (X µ) Σ 1 (X µ) The ML estimators are ˆψ = arg max ln L (ψ; X) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

85 Estimation of ARMA models Maximum likelihood estimation The loglikelihood function has to be maximized by numerical methods Standard properties of ML estimators: 1 consistency 2 asymptotic efficiency 3 asymptotically jointly normally distributed 4 the covariance matrix of the estimators can be consistently estimated Example: ML estimation of an ARMA(3, 3) model for the interest rate spread (arma33.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

86 Estimation of ARMA models Hypothesis tests Since the estimation method is maximum likelihood, the classical tests (Wald, LR, LM) are applicable General null and alternative hypotheses H 0 : g(ψ) = 0 H 1 : not H 0 where g(ψ) is an m-valued function of the parameters Example: If H 0 : φ 1 = 0 then m = 1 and g(ψ) = φ 1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

87 Estimation of ARMA models Hypothesis tests Likelihood ratio test statistic LR = 2(ln L(ˆθ ML ) ln L(ˆθ R )) where ˆθ ML and ˆθ R are the unrestricted and restricted estimators Under the null hypothesis LR d U χ 2 m and H 0 is rejected at significance level α if LR > χ 2 m;1 α Disadvantage: Two models must be estimated Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

88 Estimation of ARMA models Hypothesis tests For the Wald test we only consider g(ψ) = ψ ψ 0, i.e. Test statistic H 0 : ψ = ψ 0 H 1 : not H 0 W = ( ˆψ ψ 0 ) Ĉov( ˆψ)( ˆψ ψ 0 ) If the null hypothesis is true then W d U χ 2 m The asymptotic covariance matrix can be estimated consistently as Ĉov( ˆψ) = H 1 where H is the Hessian matrix returned by the maximization procedure Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

89 Estimation of ARMA models Hypothesis tests Test example 1: H 0 : φ 1 = 0 H 1 : φ 1 0 Test example 2 Illustration (arma33.r) H 0 : ψ = ψ 0 H 1 : not H 0 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

90 Estimation of ARMA models Model selection Usually, the lag orders p and q of an ARMA model are unknown Trade-off: Goodness-of-fit against parsimony Akaike s information criterion for the model with non-zero expectation AIC = ln }{{} ˆσ (p + q + 1) /T } {{ } goodness-of-fit penalty Choose the model with the smallest AIC Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

91 Estimation of ARMA models Model selection Bayesian information criterion BIC (Schwarz information criterion) BIC = ln ˆσ 2 + (p + q + 1) ln T /T Hannan-Quinn information criterion HQ = ln ˆσ (p + q + 1) ln (ln T ) /T Both BIC and HQ are consistent while the AIC tends to overfit Illustration (arma33.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

92 Estimation of ARMA models Model selection Another illustration: The true model is ARMA(2, 1) with X t = 0.5X t X t 2 + ε t + 0.7ε t 1 ; 1000 samples of size n = 500 were generated; the table shows the model s orders p and q as selected by AIC and BIC # orders selected by AIC # orders selected by BIC q q p Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

93 Integrated processes Difference operator Define the difference operator = 1 L, then Second order differences X t = X t X t 1 2 = ( ) = (1 L) 2 = 1 2L + L 2 Higher orders n are defined in the same way; note that n 1 L n Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

94 Integrated processes Definition Definition: Integrated process A stochastic process is called integrated of order 1 if X t = µ + Ψ(L)ε t where ε t is white noise, Ψ(1) 0, and j=0 j ψ j < Common notation: X t I (1) I (1) processes are also called difference stationary or unit root processes Stochastic and deterministic trends Trend stationary processes are not I (1) (since Ψ(1) = 0) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

95 Integrated processes Definition Stationary processes are sometimes called I (0) Higher order integrations are possible, e.g. X t I (2) 2 X t I (0) In general, X t I (d) means that d X t I (0) Most economic time series are either I (0) or I (1) Some economic time series may be I (2) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

96 Integrated processes Definition Example 1: The random walk with drift, X t = b + X t 1 + ε t, is I (1) because X t = X t X t 1 = b + ε t = b + Ψ(L)ε t where ψ 0 = 1 and ψ j = 0 for j 0 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

97 Integrated processes Definition Example 2: The trend stationary process, X t = a + bt + ε t, is not I (1) because X t = b + ε t ε t 1 = Ψ(L)ε t with ψ 0 = 1, ψ 1 = 1 and ψ j = 0 for all other j Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

98 Integrated processes Definition Example 3: The AR(2) process X t = b + (1 + φ) X t 1 φx t 2 + ε t (1 φl) (1 L) X t = b + ε t is I (1) if φ < 1 because X t = Ψ(L) (b + ε t ) with Ψ(L) = (1 φl) 1 = 1 + φl + φ 2 L 2 + φ 3 L 3 + φ 4 L and thus Ψ(1) = i=0 φi = 1 equation are z = 1 and z = 1/φ 1 φ 0. The roots of the characteristic Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

99 Integrated processes Definition Example 4: The process X t = 0.5X t 1 0.4X t 2 + ε t is a stationary (stable) zero expectation AR(2) process; the process is trend stationary and I (0) since Y t = a + bt + X t Y t = b + X t with X t = Ψ(L)ε t = (1 L) ( 1 0.5L + 0.4L 2) 1 εt and therefore Ψ(1) = 0 (i0andi1.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

100 Integrated processes Definition Definition: ARIMA process Let (ε t ) t T be a white noise process; the stochastic process (X t ) t Z is called integrated autoregressive moving-average process of the orders p, d and q, or ARIMA(p, d, q), if d X t is an ARMA(p, q) process Φ(L) d X t = Θ(L)ε t For d > 0 the process is nonstationary (I (d)) even if all roots of Φ(z) = 0 are outside the unit circle Simulation of an ARIMA(p, d, q) process (arimapdqsim.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

101 Integrated processes Deterministic versus stochastic trends Why is it important to distinguish deterministic and stochastic trends? Reason 1: Long-term forecasts and forecasting errors Deterministic trend: The forecasting error variance is bounded Stochastic trend: The forecasting error variance is unbounded Illustrations i0andi1.r Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

102 Integrated processes Deterministic versus stochastic trends Why is it important to distinguish deterministic and stochastic trends? Reason 2: Spurious regression OLS regressions will show spurious relationships between time series with (deterministic or stochastic) trends Detrending works if the series have deterministic trends, but it does not help if the series are integrated Illustrations spurious1.r Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

103 Integrated processes Integrated processes and parameter estimation OLS estimators (and ML estimators) are consistent and asymptotically normal for stationary processes The asymptotic normality is lost if the processes are integrated We only look at the very special case with ε t NID(0, 1) and X 0 = 0 X t = φ 1 X t 1 + ε t The AR(1) process is stationary if φ 1 < 1 and has a unit root if φ 1 = 1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

104 Integrated processes Integrated processes and parameter estimation The usual OLS estimator of φ 1 is ˆφ 1 = T t=1 X tx t 1 T t=1 X 2 t 1 How does the distribution of ˆφ look like? Influence of φ and T Consistency? Asymptotic normality? Illustration (phihat.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

105 Integrated processes Integrated processes and parameter estimation Consistency and asymptotic normality for I (0) processes ( φ 1 < 1) plim ˆφ 1 = φ 1 T ( ˆφ 1 φ 1 ) d Z N ( 0, 1 φ 2 1 ) Consistency and asymptotic normality for I (1) processes (φ 1 = 1) plim ˆφ 1 = 1 ( ) d T ˆφ 1 1 V where V is a nondegenerate, nonnormal random variable Root-T -consistency and superconsistency Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

106 Integrated processes Unit root tests Importance to distinguish between trend stationarity and difference stationarity Test of hypothesis that a process has a unit root (i.e. is I (1)) Classical approaches: (Augmented) Dickey-Fuller-Test, Phillips-Perron-Test Basic tool: Linear regression X t = deterministics + φx t 1 + ε t X t = deterministics + (φ 1) X } {{ } t 1 + ε t =:β Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

107 Integrated processes Unit root tests Null and alternative hypothesis H 0 : φ = 1 (unit root) H 1 : φ < 1 (no unit root) or, equivalently, H 0 : β = 0 (unit root) H 1 : β < 0 (no unit root) Unit root tests are one-sided; explosive process are ruled out Rejecting the null hypothesis is evidence in favour of stationarity If the null hypothesis is not rejected, there could be a unit root Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

108 Integrated processes DF test and ADF test Dickey-Fuller (DF) and Augmented Dickey-Fuller (ADF) tests Possible regressions X t = φx t 1 + ε t X t = a + φx t 1 + ε t X t = a + bt + φx t 1 + ε t or X t = βx t 1 + ε t or X t = a + βx t 1 + ε t or X t = a + bt + βx t 1 + ε t Assumption for Dickey-Fuller test: no autocorrelation in ε t If there is autocorrelation in ε t, use the augmented DF test Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

109 Integrated processes DF test and ADF test Dickey-Fuller regression, case 1: no constant, no trend X t = βx t 1 + ε t Null and alternative hypotheses H 0 : β = 0 H 1 : β < 0 Null hypothesis: stochastic trend without drift Alternative hypothesis: stationary process around zero Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

110 Integrated processes DF test and ADF test Dickey-Fuller regression, case 2: constant, no trend X t = a + βx t 1 + ε t Null and alternative hypotheses H 0 : β = 0 or H 0 : β = 0, a = 0 H 1 : β < 0 or H 0 : β < 0, a 0 Null hypothesis: stochastic trend without drift Alternative hypothesis: stationary process around a constant Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

111 Integrated processes DF test and ADF test Dickey-Fuller regression, case 3: constant and trend X t = a + bt + βx t 1 + ε t Null and alternative hypotheses H 0 : β = 0 or β = 0, b = 0 H 1 : β < 0 or β < 0, b 0 Null hypothesis: stochastic trend with drift Alternative hypothesis: trend stationary process Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

112 Integrated processes DF test and ADF test Dickey-Fuller test statistics for single hypotheses ρ-test : T ˆβ τ-test : ˆβ/ˆσ ˆφ The τ-test statistic is computed in the same way as the usual t-test statistic Reject the null hypothesis if the test statistics are too small The critical values are not the quantiles of the t-distribution There are tables with the correct critical values (e.g. Hamilton, table B.6) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

113 Integrated processes DF test and ADF test The Dickey-Fuller test statistics for the joint hypotheses are computed in the same way as the usual F -test statistics Reject the null hypothesis if the test statistic is too large The critical values are not the quantiles of the F -distribution There are tables with the correct critical values (e.g. Hamilton, table B.7) Illustrations (dftest.r) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

114 Integrated processes DF test and ADF test If there is autocorrelation in ε t the DF test does not work (dftest.r) Augmented Dickey-Fuller test (ADF test) regressions: X t = γ 1 X t γ p X t p + βx t 1 + ε t X t = a + γ 1 X t γ p X t p + βx t 1 + ε t X t = a + bt + γ 1 X t γ p X t p + βx t 1 + ε t The added lagged differences capture the autocorrelation The number of lags p must be large enough to make ε t white noise The critical values remain the same as in the no-correlation case Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

115 Integrated processes DF test and ADF test Further interesting topics (but we skip these) Phillips-Perron test Structural breaks and unit roots KPSS test of stationarity H 0 : X t I (0) H 1 : X t I (1) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

116 Integrated processes Regression with integrated processes Spurious regression: If X t and Y t are independent but both I (1) then the regression Y t = α + βx t + u t will result in an estimated coefficient ˆβ that is significantly different from 0 with probability 1 as T BUT: The regression Y t = α + βx t + u t may be sensible even though X t and Y t are I (1) Cointegration Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

117 Integrated processes Regression with integrated processes Definition: Cointegration Two stochastic processes (X t ) t T and (Y t ) t T are cointegrated if both processes are I (1) and there is a constant β such that the process (Y t βx t ) is I (0) If β is known, cointegration can be tested using a standard unit root test on the process (Y t βx t ) If β is unknown, it can be estimated from the linear regression Y t = α + βx t + u t and cointegration is tested using a modified unit root test on the residual process (û t ) t=1,...,t Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

118 GARCH models Conditional expectation Let (X, Y ) be a bivariate random variable with a joint density function, then E(X Y = y) = x f X Y =y (x)dx is the conditional expectation of X given Y = y E(X Y ) denotes a random variable with realization E(X Y = y) if the random variable Y realizes as y Both E(X Y ) and E(X Y = y) are called conditional expectation Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

119 GARCH models Conditional variance Let (X, Y ) be a bivariate random variable with a joint density function, then Var(X Y = y) = is the conditional variance of X given Y = y (x E(X Y = y)) 2 f X Y =y (x)dx Var(X Y ) denotes a random variable with realization Var(X Y = y) if the random variable Y realizes as y Both Var(X Y = y) and Var(X Y ) are called conditional variance Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

120 GARCH models Rules for conditional expectations 1 Law of iterated expectations: E (E (X Y )) = E (X ) 2 If X and Y are independent, then E (X Y ) = E (X ) 3 The condition can be treated like a constant, E (XY Y ) = Y E (X Y ) 4 The conditional expecation is a linear operator. For a 1,..., a n R ( n ) n E a i X i Y = a i E(X i Y ) i=1 i=1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

121 GARCH models Basics Some economic time series show volatility clusters, e.g. stock returns, commodity price changes, inflation rates,... Simple autoregressive models cannot capture volatility clusters since their conditional variance is constant Example: Stationary AR(1)-process, X t = αx t 1 + ε t with α < 1; then Var(X t ) = σx 2 = σ2 ε 1 α 2, and the conditional variance is Var(X t X t 1 ) = σ 2 ε Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

122 GARCH models Basics In the following, we will focus on stock returns Empirical fact: squared (or absolute) returns are positively autocorrelated Implication: Returns are not independent over time The dependence is nonlinear How can we model this kind of dependence? Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

123 GARCH models ARCH(1)-process Definition: ARCH(1)-process The stochastic process (X t ) t Z is called ARCH(1)-process if for all t Z, with α 0, α 1 > 0 E(X t X t 1 ) = 0 Var(X t X t 1 ) = σt 2 = α 0 + α 1 Xt 1 2 Often, an additional assumption is X t (X t 1 = x t 1 ) N(0, α 0 + α 1 x 2 t 1) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

124 GARCH models ARCH(1)-process The unconditional distribution of X t is a non-normal distribution Leptokurtosis: The tails are heavier than the tails of the normal distribution Example of an ARCH(1)-process X t = ε t σ t where (ε t ) t Z is white noise with σε 2 = 1 and σ t = α 0 + α 1 Xt 1 2 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

125 GARCH models ARCH(1)-process One can show that [11] E(X t X t 1 ) = 0 E(X t ) = 0 Stationarity condition: 0 < α 1 < 1 Var(X t X t 1 ) = α 0 + α 1 Xt 1 2 Var(X t ) = α 0 / (1 α 1 ) Cov(X t, X t i ) = 0 for i > 0 The unconditional kurtosis is 3(1 α 2 1 )/(1 3α2 1 ) if ε t N(0, 1). If α 1 > 1/3 = , the kurtosis does not exist. [12] Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

126 GARCH models ARCH(1)-process Squared returns follow [13] X 2 t = α 0 + α 1 X 2 t 1 + v t with v t = σt 2 (ε 2 t 1) Thus, squared returns of ARCH(1) are AR(1) The process (v t ) t Z is white noise E(v t ) = 0 Var(v t ) = E(vt 2 ) = const. Cov(v t, v t i ) = 0 (i = 1, 2,...) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

127 GARCH models ARCH(1)-process Simulation of an ARCH(1)-process for t = 1,..., 2500 Parameters: α 0 = 0.05, α 1 = 0.95, start value X 0 = 0 Conditional distribution: ε t N(0, 1) archsim.r Check whether the simulated time series shows the typical stylized facts of return distributions Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

128 GARCH models Estimation of an ARCH(1)-process Of course, we do not know the true values of the model parameters α 0 and α 1 How can we estimate the unknown parameters α 0 and α 1? Observations X 1,..., X T Because of X 2 t = α 0 + α 1 X 2 t 1 + v t a possible estimation method is OLS Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

129 GARCH models Estimation of an ARCH(1)-process OLS estimator of α 1 ( ) ( ) T t=2 Xt 2 Xt 2 Xt 1 2 X t 1 2 ˆα 1 = ( ) 2 ˆρ(X 2 T t=2 Xt 1 2 X t 1 2 t, Xt 1) 2 Careful: These estimators are only consistent if the kurtosis exists (i.e. if α 1 < 1/3) Test of ARCH-effects H 0 : α 1 = 0 H 1 : α 1 > 0 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

130 GARCH models Estimation of an ARCH(1)-process For T large, under H 0 T ˆα 1 N(0, 1) Reject H 0 if T ˆα 1 > Φ 1 (1 α) Second version of this test: Consider the R 2 of the regression X 2 t = α 0 + α 1 X 2 t 1 + v t, then under H 0 T ˆα 2 1 TR 2 appr χ 2 1 Reject H 0 if TR 2 > F 1 (1 α) χ 2 1 Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

131 GARCH models ARCH(p)-process Definition: ARCH(p)-process The stochastic process (X t ) t Z is called ARCH(p)-process if E(X t X t 1,... X t p ) = 0 Var(X t X t 1,..., X t p ) = σt 2 = α 0 + α 1 Xt α p Xt p 2 for t Z, where α i 0 for i = 0, 1,..., p 1 and α p > 0 Often, an additional assumption is that X t (X t 1 = x t 1,..., X t p = x t p ) N(0, σ 2 t ) Andrea Beccarini (CQE) Time Series Analysis Winter 2013/ / 143

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

Time Series Analysis 1. Lecture 8: Time Series Analysis. Time Series Analysis MIT 18.S096. Dr. Kempthorne. Fall 2013 MIT 18.S096 Lecture 8: Time Series Analysis MIT 18.S096 Dr. Kempthorne Fall 2013 MIT 18.S096 Time Series Analysis 1 Outline Time Series Analysis 1 Time Series Analysis MIT 18.S096 Time Series Analysis 2 A stochastic

More information

Analysis and Computation for Finance Time Series - An Introduction

Analysis and Computation for Finance Time Series - An Introduction ECMM703 Analysis and Computation for Finance Time Series - An Introduction Alejandra González Harrison 161 Email: mag208@exeter.ac.uk Time Series - An Introduction A time series is a sequence of observations

More information

3.1 Stationary Processes and Mean Reversion

3.1 Stationary Processes and Mean Reversion 3. Univariate Time Series Models 3.1 Stationary Processes and Mean Reversion Definition 3.1: A time series y t, t = 1,..., T is called (covariance) stationary if (1) E[y t ] = µ, for all t Cov[y t, y t

More information

1 Short Introduction to Time Series

1 Short Introduction to Time Series ECONOMICS 7344, Spring 202 Bent E. Sørensen January 24, 202 Short Introduction to Time Series A time series is a collection of stochastic variables x,.., x t,.., x T indexed by an integer value t. The

More information

Sales forecasting # 2

Sales forecasting # 2 Sales forecasting # 2 Arthur Charpentier arthur.charpentier@univ-rennes1.fr 1 Agenda Qualitative and quantitative methods, a very general introduction Series decomposition Short versus long term forecasting

More information

Vector Time Series Model Representations and Analysis with XploRe

Vector Time Series Model Representations and Analysis with XploRe 0-1 Vector Time Series Model Representations and Analysis with plore Julius Mungo CASE - Center for Applied Statistics and Economics Humboldt-Universität zu Berlin mungo@wiwi.hu-berlin.de plore MulTi Motivation

More information

The VAR models discussed so fare are appropriate for modeling I(0) data, like asset returns or growth rates of macroeconomic time series.

The VAR models discussed so fare are appropriate for modeling I(0) data, like asset returns or growth rates of macroeconomic time series. Cointegration The VAR models discussed so fare are appropriate for modeling I(0) data, like asset returns or growth rates of macroeconomic time series. Economic theory, however, often implies equilibrium

More information

Univariate and Multivariate Methods PEARSON. Addison Wesley

Univariate and Multivariate Methods PEARSON. Addison Wesley Time Series Analysis Univariate and Multivariate Methods SECOND EDITION William W. S. Wei Department of Statistics The Fox School of Business and Management Temple University PEARSON Addison Wesley Boston

More information

Time Series Analysis in Economics. Klaus Neusser

Time Series Analysis in Economics. Klaus Neusser Time Series Analysis in Economics Klaus Neusser May 26, 2015 Contents I Univariate Time Series Analysis 3 1 Introduction 1 1.1 Some examples.......................... 2 1.2 Formal definitions.........................

More information

Chapter 6: Multivariate Cointegration Analysis

Chapter 6: Multivariate Cointegration Analysis Chapter 6: Multivariate Cointegration Analysis 1 Contents: Lehrstuhl für Department Empirische of Wirtschaftsforschung Empirical Research and und Econometrics Ökonometrie VI. Multivariate Cointegration

More information

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

Lecture 2: ARMA(p,q) models (part 3) Lecture 2: ARMA(p,q) models (part 3) Florian Pelgrin University of Lausanne, École des HEC Department of mathematics (IMEA-Nice) Sept. 2011 - Jan. 2012 Florian Pelgrin (HEC) Univariate time series Sept.

More information

Time Series Analysis

Time Series Analysis Time Series Analysis Forecasting with ARIMA models Andrés M. Alonso Carolina García-Martos Universidad Carlos III de Madrid Universidad Politécnica de Madrid June July, 2012 Alonso and García-Martos (UC3M-UPM)

More information

Chapter 4: Vector Autoregressive Models

Chapter 4: Vector Autoregressive Models Chapter 4: Vector Autoregressive Models 1 Contents: Lehrstuhl für Department Empirische of Wirtschaftsforschung Empirical Research and und Econometrics Ökonometrie IV.1 Vector Autoregressive Models (VAR)...

More information

Non-Stationary Time Series andunitroottests

Non-Stationary Time Series andunitroottests Econometrics 2 Fall 2005 Non-Stationary Time Series andunitroottests Heino Bohn Nielsen 1of25 Introduction Many economic time series are trending. Important to distinguish between two important cases:

More information

Financial TIme Series Analysis: Part II

Financial TIme Series Analysis: Part II Department of Mathematics and Statistics, University of Vaasa, Finland January 29 February 13, 2015 Feb 14, 2015 1 Univariate linear stochastic models: further topics Unobserved component model Signal

More information

Time Series in Mathematical Finance

Time Series in Mathematical Finance Instituto Superior Técnico (IST, Portugal) and CEMAT cnunes@math.ist.utl.pt European Summer School in Industrial Mathematics Universidad Carlos III de Madrid July 2013 Outline The objective of this short

More information

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model

Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model Overview of Violations of the Basic Assumptions in the Classical Normal Linear Regression Model 1 September 004 A. Introduction and assumptions The classical normal linear regression model can be written

More information

Univariate Time Series Analysis; ARIMA Models

Univariate Time Series Analysis; ARIMA Models Econometrics 2 Spring 25 Univariate Time Series Analysis; ARIMA Models Heino Bohn Nielsen of4 Outline of the Lecture () Introduction to univariate time series analysis. (2) Stationarity. (3) Characterizing

More information

Introduction to Time Series Analysis. Lecture 6.

Introduction to Time Series Analysis. Lecture 6. Introduction to Time Series Analysis. Lecture 6. Peter Bartlett www.stat.berkeley.edu/ bartlett/courses/153-fall2010 Last lecture: 1. Causality 2. Invertibility 3. AR(p) models 4. ARMA(p,q) models 1 Introduction

More information

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

PITFALLS IN TIME SERIES ANALYSIS. Cliff Hurvich Stern School, NYU PITFALLS IN TIME SERIES ANALYSIS Cliff Hurvich Stern School, NYU The t -Test If x 1,..., x n are independent and identically distributed with mean 0, and n is not too small, then t = x 0 s n has a standard

More information

A Trading Strategy Based on the Lead-Lag Relationship of Spot and Futures Prices of the S&P 500

A Trading Strategy Based on the Lead-Lag Relationship of Spot and Futures Prices of the S&P 500 A Trading Strategy Based on the Lead-Lag Relationship of Spot and Futures Prices of the S&P 500 FE8827 Quantitative Trading Strategies 2010/11 Mini-Term 5 Nanyang Technological University Submitted By:

More information

Advanced Forecasting Techniques and Models: ARIMA

Advanced Forecasting Techniques and Models: ARIMA Advanced Forecasting Techniques and Models: ARIMA Short Examples Series using Risk Simulator For more information please visit: www.realoptionsvaluation.com or contact us at: admin@realoptionsvaluation.com

More information

Time Series Analysis

Time Series Analysis Time Series 1 April 9, 2013 Time Series Analysis This chapter presents an introduction to the branch of statistics known as time series analysis. Often the data we collect in environmental studies is collected

More information

State Space Time Series Analysis

State Space Time Series Analysis State Space Time Series Analysis p. 1 State Space Time Series Analysis Siem Jan Koopman http://staff.feweb.vu.nl/koopman Department of Econometrics VU University Amsterdam Tinbergen Institute 2011 State

More information

Performing Unit Root Tests in EViews. Unit Root Testing

Performing Unit Root Tests in EViews. Unit Root Testing Página 1 de 12 Unit Root Testing The theory behind ARMA estimation is based on stationary time series. A series is said to be (weakly or covariance) stationary if the mean and autocovariances of the series

More information

Time Series Analysis

Time Series Analysis Time Series Analysis hm@imm.dtu.dk Informatics and Mathematical Modelling Technical University of Denmark DK-2800 Kgs. Lyngby 1 Outline of the lecture Identification of univariate time series models, cont.:

More information

Time Series Analysis of Aviation Data

Time Series Analysis of Aviation Data Time Series Analysis of Aviation Data Dr. Richard Xie February, 2012 What is a Time Series A time series is a sequence of observations in chorological order, such as Daily closing price of stock MSFT in

More information

Some useful concepts in univariate time series analysis

Some useful concepts in univariate time series analysis 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

More information

Time Series Analysis

Time Series Analysis Time Series Analysis Identifying possible ARIMA models Andrés M. Alonso Carolina García-Martos Universidad Carlos III de Madrid Universidad Politécnica de Madrid June July, 2012 Alonso and García-Martos

More information

ITSM-R Reference Manual

ITSM-R Reference Manual ITSM-R Reference Manual George Weigt June 5, 2015 1 Contents 1 Introduction 3 1.1 Time series analysis in a nutshell............................... 3 1.2 White Noise Variance.....................................

More information

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

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2015, Mr. Ruey S. Tsay. Solutions to Midterm Booth School of Business, University of Chicago Business 41202, Spring Quarter 2015, Mr. Ruey S. Tsay Solutions to Midterm Problem A: (30 pts) Answer briefly the following questions. Each question has

More information

Chapter 5: Bivariate Cointegration Analysis

Chapter 5: Bivariate Cointegration Analysis Chapter 5: Bivariate Cointegration Analysis 1 Contents: Lehrstuhl für Department Empirische of Wirtschaftsforschung Empirical Research and und Econometrics Ökonometrie V. Bivariate Cointegration Analysis...

More information

Univariate Time Series Analysis; ARIMA Models

Univariate Time Series Analysis; ARIMA Models Econometrics 2 Fall 25 Univariate Time Series Analysis; ARIMA Models Heino Bohn Nielsen of4 Univariate Time Series Analysis We consider a single time series, y,y 2,..., y T. We want to construct simple

More information

Chapter 5. Analysis of Multiple Time Series. 5.1 Vector Autoregressions

Chapter 5. Analysis of Multiple Time Series. 5.1 Vector Autoregressions Chapter 5 Analysis of Multiple Time Series Note: The primary references for these notes are chapters 5 and 6 in Enders (2004). An alternative, but more technical treatment can be found in chapters 10-11

More information

Is the Basis of the Stock Index Futures Markets Nonlinear?

Is the Basis of the Stock Index Futures Markets Nonlinear? University of Wollongong Research Online Applied Statistics Education and Research Collaboration (ASEARC) - Conference Papers Faculty of Engineering and Information Sciences 2011 Is the Basis of the Stock

More information

Forecasting methods applied to engineering management

Forecasting methods applied to engineering management Forecasting methods applied to engineering management Áron Szász-Gábor Abstract. This paper presents arguments for the usefulness of a simple forecasting application package for sustaining operational

More information

Time Series Analysis

Time Series Analysis Time Series Analysis Autoregressive, MA and ARMA processes Andrés M. Alonso Carolina García-Martos Universidad Carlos III de Madrid Universidad Politécnica de Madrid June July, 212 Alonso and García-Martos

More information

Time Series Analysis III

Time Series Analysis III Lecture 12: Time Series Analysis III MIT 18.S096 Dr. Kempthorne Fall 2013 MIT 18.S096 Time Series Analysis III 1 Outline Time Series Analysis III 1 Time Series Analysis III MIT 18.S096 Time Series Analysis

More information

Maximum likelihood estimation of mean reverting processes

Maximum likelihood estimation of mean reverting processes Maximum likelihood estimation of mean reverting processes José Carlos García Franco Onward, Inc. jcpollo@onwardinc.com Abstract Mean reverting processes are frequently used models in real options. For

More information

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models

Forecasting the US Dollar / Euro Exchange rate Using ARMA Models Forecasting the US Dollar / Euro Exchange rate Using ARMA Models LIUWEI (9906360) - 1 - ABSTRACT...3 1. INTRODUCTION...4 2. DATA ANALYSIS...5 2.1 Stationary estimation...5 2.2 Dickey-Fuller Test...6 3.

More information

THE SVM APPROACH FOR BOX JENKINS MODELS

THE SVM APPROACH FOR BOX JENKINS MODELS REVSTAT Statistical Journal Volume 7, Number 1, April 2009, 23 36 THE SVM APPROACH FOR BOX JENKINS MODELS Authors: Saeid Amiri Dep. of Energy and Technology, Swedish Univ. of Agriculture Sciences, P.O.Box

More information

ADVANCED FORECASTING MODELS USING SAS SOFTWARE

ADVANCED FORECASTING MODELS USING SAS SOFTWARE ADVANCED FORECASTING MODELS USING SAS SOFTWARE Girish Kumar Jha IARI, Pusa, New Delhi 110 012 gjha_eco@iari.res.in 1. Transfer Function Model Univariate ARIMA models are useful for analysis and forecasting

More information

Chapter 9: Univariate Time Series Analysis

Chapter 9: Univariate Time Series Analysis Chapter 9: Univariate Time Series Analysis In the last chapter we discussed models with only lags of explanatory variables. These can be misleading if: 1. The dependent variable Y t depends on lags of

More information

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

Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models Graphical Tools for Exploring and Analyzing Data From ARIMA Time Series Models William Q. Meeker Department of Statistics Iowa State University Ames, IA 50011 January 13, 2001 Abstract S-plus is a highly

More information

Empirical Properties of the Indonesian Rupiah: Testing for Structural Breaks, Unit Roots, and White Noise

Empirical Properties of the Indonesian Rupiah: Testing for Structural Breaks, Unit Roots, and White Noise Volume 24, Number 2, December 1999 Empirical Properties of the Indonesian Rupiah: Testing for Structural Breaks, Unit Roots, and White Noise Reza Yamora Siregar * 1 This paper shows that the real exchange

More information

TIME SERIES ANALYSIS

TIME SERIES ANALYSIS TIME SERIES ANALYSIS L.M. BHAR AND V.K.SHARMA Indian Agricultural Statistics Research Institute Library Avenue, New Delhi-0 02 lmb@iasri.res.in. Introduction Time series (TS) data refers to observations

More information

Estimating an ARMA Process

Estimating an ARMA Process Statistics 910, #12 1 Overview Estimating an ARMA Process 1. Main ideas 2. Fitting autoregressions 3. Fitting with moving average components 4. Standard errors 5. Examples 6. Appendix: Simple estimators

More information

Volatility modeling in financial markets

Volatility modeling in financial markets Volatility modeling in financial markets Master Thesis Sergiy Ladokhin Supervisors: Dr. Sandjai Bhulai, VU University Amsterdam Brian Doelkahar, Fortis Bank Nederland VU University Amsterdam Faculty of

More information

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

Rob J Hyndman. Forecasting using. 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1 Rob J Hyndman Forecasting using 11. Dynamic regression OTexts.com/fpp/9/1/ Forecasting using R 1 Outline 1 Regression with ARIMA errors 2 Example: Japanese cars 3 Using Fourier terms for seasonality 4

More information

Testing The Quantity Theory of Money in Greece: A Note

Testing The Quantity Theory of Money in Greece: A Note ERC Working Paper in Economic 03/10 November 2003 Testing The Quantity Theory of Money in Greece: A Note Erdal Özmen Department of Economics Middle East Technical University Ankara 06531, Turkey ozmen@metu.edu.tr

More information

TIME SERIES ANALYSIS

TIME SERIES ANALYSIS TIME SERIES ANALYSIS Ramasubramanian V. I.A.S.R.I., Library Avenue, New Delhi- 110 012 ram_stat@yahoo.co.in 1. Introduction A Time Series (TS) is a sequence of observations ordered in time. Mostly these

More information

Time Series Analysis

Time Series Analysis JUNE 2012 Time Series Analysis CONTENT A time series is a chronological sequence of observations on a particular variable. Usually the observations are taken at regular intervals (days, months, years),

More information

Software Review: ITSM 2000 Professional Version 6.0.

Software Review: ITSM 2000 Professional Version 6.0. Lee, J. & Strazicich, M.C. (2002). Software Review: ITSM 2000 Professional Version 6.0. International Journal of Forecasting, 18(3): 455-459 (June 2002). Published by Elsevier (ISSN: 0169-2070). http://0-

More information

LOGNORMAL MODEL FOR STOCK PRICES

LOGNORMAL MODEL FOR STOCK PRICES LOGNORMAL MODEL FOR STOCK PRICES MICHAEL J. SHARPE MATHEMATICS DEPARTMENT, UCSD 1. INTRODUCTION What follows is a simple but important model that will be the basis for a later study of stock prices as

More information

Time Series Analysis

Time Series Analysis Time Series Analysis Lecture Notes for 475.726 Ross Ihaka Statistics Department University of Auckland April 14, 2005 ii Contents 1 Introduction 1 1.1 Time Series.............................. 1 1.2 Stationarity

More information

**BEGINNING OF EXAMINATION** The annual number of claims for an insured has probability function: , 0 < q < 1.

**BEGINNING OF EXAMINATION** The annual number of claims for an insured has probability function: , 0 < q < 1. **BEGINNING OF EXAMINATION** 1. You are given: (i) The annual number of claims for an insured has probability function: 3 p x q q x x ( ) = ( 1 ) 3 x, x = 0,1,, 3 (ii) The prior density is π ( q) = q,

More information

Applied Time Series Analysis Part I

Applied Time Series Analysis Part I Applied Time Series Analysis Part I Robert M. Kunst University of Vienna and Institute for Advanced Studies Vienna October 3, 2009 1 Introduction and overview 1.1 What is econometric time-series analysis?

More information

On the long run relationship between gold and silver prices A note

On the long run relationship between gold and silver prices A note Global Finance Journal 12 (2001) 299 303 On the long run relationship between gold and silver prices A note C. Ciner* Northeastern University College of Business Administration, Boston, MA 02115-5000,

More information

TEMPORAL CAUSAL RELATIONSHIP BETWEEN STOCK MARKET CAPITALIZATION, TRADE OPENNESS AND REAL GDP: EVIDENCE FROM THAILAND

TEMPORAL CAUSAL RELATIONSHIP BETWEEN STOCK MARKET CAPITALIZATION, TRADE OPENNESS AND REAL GDP: EVIDENCE FROM THAILAND I J A B E R, Vol. 13, No. 4, (2015): 1525-1534 TEMPORAL CAUSAL RELATIONSHIP BETWEEN STOCK MARKET CAPITALIZATION, TRADE OPENNESS AND REAL GDP: EVIDENCE FROM THAILAND Komain Jiranyakul * Abstract: This study

More information

Multivariate Normal Distribution

Multivariate Normal Distribution Multivariate Normal Distribution Lecture 4 July 21, 2011 Advanced Multivariate Statistical Methods ICPSR Summer Session #2 Lecture #4-7/21/2011 Slide 1 of 41 Last Time Matrices and vectors Eigenvalues

More information

STATISTICA Formula Guide: Logistic Regression. Table of Contents

STATISTICA Formula Guide: Logistic Regression. Table of Contents : Table of Contents... 1 Overview of Model... 1 Dispersion... 2 Parameterization... 3 Sigma-Restricted Model... 3 Overparameterized Model... 4 Reference Coding... 4 Model Summary (Summary Tab)... 5 Summary

More information

Business Cycles and Natural Gas Prices

Business Cycles and Natural Gas Prices Department of Economics Discussion Paper 2004-19 Business Cycles and Natural Gas Prices Apostolos Serletis Department of Economics University of Calgary Canada and Asghar Shahmoradi Department of Economics

More information

Linear Threshold Units

Linear Threshold Units Linear Threshold Units w x hx (... w n x n w We assume that each feature x j and each weight w j is a real number (we will relax this later) We will study three different algorithms for learning linear

More information

Analysis of algorithms of time series analysis for forecasting sales

Analysis of algorithms of time series analysis for forecasting sales SAINT-PETERSBURG STATE UNIVERSITY Mathematics & Mechanics Faculty Chair of Analytical Information Systems Garipov Emil Analysis of algorithms of time series analysis for forecasting sales Course Work Scientific

More information

Examples. David Ruppert. April 25, 2009. Cornell University. Statistics for Financial Engineering: Some R. Examples. David Ruppert.

Examples. David Ruppert. April 25, 2009. Cornell University. Statistics for Financial Engineering: Some R. Examples. David Ruppert. Cornell University April 25, 2009 Outline 1 2 3 4 A little about myself BA and MA in mathematics PhD in statistics in 1977 taught in the statistics department at North Carolina for 10 years have been in

More information

A course in Time Series Analysis. Suhasini Subba Rao Email: suhasini.subbarao@stat.tamu.edu

A course in Time Series Analysis. Suhasini Subba Rao Email: suhasini.subbarao@stat.tamu.edu A course in Time Series Analysis Suhasini Subba Rao Email: suhasini.subbarao@stat.tamu.edu August 5, 205 Contents Introduction 8. Time Series data................................. 8.. R code....................................2

More information

Forecasting Chilean Industrial Production and Sales with Automated Procedures 1

Forecasting Chilean Industrial Production and Sales with Automated Procedures 1 Forecasting Chilean Industrial Production and Sales with Automated Procedures 1 Rómulo A. Chumacero 2 February 2004 1 I thank Ernesto Pastén, Klaus Schmidt-Hebbel, and Rodrigo Valdés for helpful comments

More information

ARMA, GARCH and Related Option Pricing Method

ARMA, GARCH and Related Option Pricing Method ARMA, GARCH and Related Option Pricing Method Author: Yiyang Yang Advisor: Pr. Xiaolin Li, Pr. Zari Rachev Department of Applied Mathematics and Statistics State University of New York at Stony Brook September

More information

Detekce změn v autoregresních posloupnostech

Detekce změn v autoregresních posloupnostech Nové Hrady 2012 Outline 1 Introduction 2 3 4 Change point problem (retrospective) The data Y 1,..., Y n follow a statistical model, which may change once or several times during the observation period

More information

Statistical Machine Learning

Statistical Machine Learning Statistical Machine Learning UoC Stats 37700, Winter quarter Lecture 4: classical linear and quadratic discriminants. 1 / 25 Linear separation For two classes in R d : simple idea: separate the classes

More information

Statistics and Probability Letters

Statistics and Probability Letters Statistics and Probability Letters 79 (2009) 1884 1889 Contents lists available at ScienceDirect Statistics and Probability Letters journal homepage: www.elsevier.com/locate/stapro Discrete-valued ARMA

More information

Nonparametric Time Series Analysis in JMulTi March 29, 2005 Rolf Tschernig

Nonparametric Time Series Analysis in JMulTi March 29, 2005 Rolf Tschernig Nonparametric Time Series Analysis in JMulTi March 29, 2005 Rolf Tschernig Univariate nonparametric time series models are a valuable tool for modelling the conditional mean and conditional volatility

More information

Multiple Linear Regression in Data Mining

Multiple Linear Regression in Data Mining Multiple Linear Regression in Data Mining Contents 2.1. A Review of Multiple Linear Regression 2.2. Illustration of the Regression Process 2.3. Subset Selection in Linear Regression 1 2 Chap. 2 Multiple

More information

SYSTEMS OF REGRESSION EQUATIONS

SYSTEMS OF REGRESSION EQUATIONS SYSTEMS OF REGRESSION EQUATIONS 1. MULTIPLE EQUATIONS y nt = x nt n + u nt, n = 1,...,N, t = 1,...,T, x nt is 1 k, and n is k 1. This is a version of the standard regression model where the observations

More information

Discrete Time Series Analysis with ARMA Models

Discrete Time Series Analysis with ARMA Models Discrete Time Series Analysis with ARMA Models Veronica Sitsofe Ahiati (veronica@aims.ac.za) African Institute for Mathematical Sciences (AIMS) Supervised by Tina Marquardt Munich University of Technology,

More information

Powerful new tools for time series analysis

Powerful new tools for time series analysis Christopher F Baum Boston College & DIW August 2007 hristopher F Baum ( Boston College & DIW) NASUG2007 1 / 26 Introduction This presentation discusses two recent developments in time series analysis by

More information

Forecasting Using Eviews 2.0: An Overview

Forecasting Using Eviews 2.0: An Overview Forecasting Using Eviews 2.0: An Overview Some Preliminaries In what follows it will be useful to distinguish between ex post and ex ante forecasting. In terms of time series modeling, both predict values

More information

CCNY. BME I5100: Biomedical Signal Processing. Linear Discrimination. Lucas C. Parra Biomedical Engineering Department City College of New York

CCNY. BME I5100: Biomedical Signal Processing. Linear Discrimination. Lucas C. Parra Biomedical Engineering Department City College of New York BME I5100: Biomedical Signal Processing Linear Discrimination Lucas C. Parra Biomedical Engineering Department CCNY 1 Schedule Week 1: Introduction Linear, stationary, normal - the stuff biology is not

More information

INDIRECT INFERENCE (prepared for: The New Palgrave Dictionary of Economics, Second Edition)

INDIRECT INFERENCE (prepared for: The New Palgrave Dictionary of Economics, Second Edition) INDIRECT INFERENCE (prepared for: The New Palgrave Dictionary of Economics, Second Edition) Abstract Indirect inference is a simulation-based method for estimating the parameters of economic models. Its

More information

Slides for Risk Management

Slides for Risk Management Slides for Risk Management VaR and Expected Shortfall Groll Seminar für Finanzökonometrie Prof. Mittnik, PhD 1 Introduction Value-at-Risk Expected Shortfall Model risk Multi-period / multi-asset case 2

More information

Lecture 8: Gamma regression

Lecture 8: Gamma regression Lecture 8: Gamma regression Claudia Czado TU München c (Claudia Czado, TU Munich) ZFS/IMS Göttingen 2004 0 Overview Models with constant coefficient of variation Gamma regression: estimation and testing

More information

On the mathematical theory of splitting and Russian roulette

On the mathematical theory of splitting and Russian roulette On the mathematical theory of splitting and Russian roulette techniques St.Petersburg State University, Russia 1. Introduction Splitting is an universal and potentially very powerful technique for increasing

More information

VI. Real Business Cycles Models

VI. Real Business Cycles Models VI. Real Business Cycles Models Introduction Business cycle research studies the causes and consequences of the recurrent expansions and contractions in aggregate economic activity that occur in most industrialized

More information

Slides for Risk Management VaR and Expected Shortfall

Slides for Risk Management VaR and Expected Shortfall Slides for Risk Management VaR and Expected Shortfall Groll Seminar für Finanzökonometrie Prof. Mittnik, PhD Groll (Seminar für Finanzökonometrie) Slides for Risk Management Prof. Mittnik, PhD 1 / 133

More information

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

Lecture 4: Seasonal Time Series, Trend Analysis & Component Model Bus 41910, Time Series Analysis, Mr. R. Tsay Lecture 4: Seasonal Time Series, Trend Analysis & Component Model Bus 41910, Time Series Analysis, Mr. R. Tsay Business cycle plays an important role in economics. In time series analysis, business cycle

More information

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

Time Series - ARIMA Models. Instructor: G. William Schwert APS 425 Fall 25 Time Series : ARIMA Models Instructor: G. William Schwert 585-275-247 schwert@schwert.ssb.rochester.edu Topics Typical time series plot Pattern recognition in auto and partial autocorrelations

More information

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

Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model Tropical Agricultural Research Vol. 24 (): 2-3 (22) Forecasting of Paddy Production in Sri Lanka: A Time Series Analysis using ARIMA Model V. Sivapathasundaram * and C. Bogahawatte Postgraduate Institute

More information

Lectures in Modern Economic Time Series Analysis. 2 ed. c. Linköping, Sweden email:bo.sjo@liu.se

Lectures in Modern Economic Time Series Analysis. 2 ed. c. Linköping, Sweden email:bo.sjo@liu.se Lectures in Modern Economic Time Series Analysis. 2 ed. c Bo Sjö Linköping, Sweden email:bo.sjo@liu.se October 30, 2011 2 CONTENTS 1 Introduction 7 1.1 Outline of this Book/Text/Course/Workshop............

More information

Statistics Graduate Courses

Statistics Graduate Courses Statistics Graduate Courses STAT 7002--Topics in Statistics-Biological/Physical/Mathematics (cr.arr.).organized study of selected topics. Subjects and earnable credit may vary from semester to semester.

More information

Working Papers. Cointegration Based Trading Strategy For Soft Commodities Market. Piotr Arendarski Łukasz Postek. No. 2/2012 (68)

Working Papers. Cointegration Based Trading Strategy For Soft Commodities Market. Piotr Arendarski Łukasz Postek. No. 2/2012 (68) Working Papers No. 2/2012 (68) Piotr Arendarski Łukasz Postek Cointegration Based Trading Strategy For Soft Commodities Market Warsaw 2012 Cointegration Based Trading Strategy For Soft Commodities Market

More information

Red Signals: Trade Deficits and the Current Account

Red Signals: Trade Deficits and the Current Account Red Signals: Trade Deficits and the Current Account marzia raybaudi a,b,martinsola b,c and fabio spagnolo d a Department of Economics, University of Birmingham b Departamento di Economia, Universidad Torcuato

More information

Charles University, Faculty of Mathematics and Physics, Prague, Czech Republic.

Charles University, Faculty of Mathematics and Physics, Prague, Czech Republic. WDS'09 Proceedings of Contributed Papers, Part I, 148 153, 2009. ISBN 978-80-7378-101-9 MATFYZPRESS Volatility Modelling L. Jarešová Charles University, Faculty of Mathematics and Physics, Prague, Czech

More information

A Regime-Switching Model for Electricity Spot Prices. Gero Schindlmayr EnBW Trading GmbH g.schindlmayr@enbw.com

A Regime-Switching Model for Electricity Spot Prices. Gero Schindlmayr EnBW Trading GmbH g.schindlmayr@enbw.com A Regime-Switching Model for Electricity Spot Prices Gero Schindlmayr EnBW Trading GmbH g.schindlmayr@enbw.com May 31, 25 A Regime-Switching Model for Electricity Spot Prices Abstract Electricity markets

More information

4. Simple regression. QBUS6840 Predictive Analytics. https://www.otexts.org/fpp/4

4. Simple regression. QBUS6840 Predictive Analytics. https://www.otexts.org/fpp/4 4. Simple regression QBUS6840 Predictive Analytics https://www.otexts.org/fpp/4 Outline The simple linear model Least squares estimation Forecasting with regression Non-linear functional forms Regression

More information

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

Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London) Luciano Rispoli Department of Economics, Mathematics and Statistics Birkbeck College (University of London) 1 Forecasting: definition Forecasting is the process of making statements about events whose

More information

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

Forecasting model of electricity demand in the Nordic countries. Tone Pedersen Forecasting model of electricity demand in the Nordic countries Tone Pedersen 3/19/2014 Abstract A model implemented in order to describe the electricity demand on hourly basis for the Nordic countries.

More information

Factor analysis. Angela Montanari

Factor analysis. Angela Montanari Factor analysis Angela Montanari 1 Introduction Factor analysis is a statistical model that allows to explain the correlations between a large number of observed correlated variables through a small number

More information

Simple Linear Regression Inference

Simple Linear Regression Inference Simple Linear Regression Inference 1 Inference requirements The Normality assumption of the stochastic term e is needed for inference even if it is not a OLS requirement. Therefore we have: Interpretation

More information

Sections 2.11 and 5.8

Sections 2.11 and 5.8 Sections 211 and 58 Timothy Hanson Department of Statistics, University of South Carolina Stat 704: Data Analysis I 1/25 Gesell data Let X be the age in in months a child speaks his/her first word and

More information

Lecture Notes on Univariate Time Series Analysis and Box Jenkins Forecasting John Frain Economic Analysis, Research and Publications April 1992 (reprinted with revisions) January 1999 Abstract These are

More information