1 Midterm Review. 2 Outline The Triangle of Stability - Power 7 The Triangle of Stability - Power 7 Augmented Dickey-Fuller Tests – Power 10 Augmented.

Slides:



Advertisements
Similar presentations
Equation of a line y = m x + b
Advertisements

Time Series Analysis Definition of a Time Series process
Nonstationary Time Series Data and Cointegration
Using SAS for Time Series Data
STATIONARY AND NONSTATIONARY TIME SERIES
Nonstationary Time Series Data and Cointegration Prepared by Vera Tabakova, East Carolina University.
STAT 497 LECTURE NOTES 5 UNIT ROOT TESTS.
Non-stationary data series
Economics 20 - Prof. Anderson1 Testing for Unit Roots Consider an AR(1): y t =  +  y t-1 + e t Let H 0 :  = 1, (assume there is a unit root) Define.
1 MF-852 Financial Econometrics Lecture 11 Distributed Lags and Unit Roots Roy J. Epstein Fall 2003.
Financial Econometrics
Unit Roots & Forecasting
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
Regression with Time-Series Data: Nonstationary Variables
Time Series Building 1. Model Identification
1 ECON 240C Lecture Outline Box-Jenkins Passengers Box-Jenkins Passengers Displaying the Forecast Displaying the Forecast Recoloring Recoloring.
Econ 240 C Lecture I. Work in Groups II. You will be graded based on a PowerPoint presentation and a written report. III. Your report should have.
Chapter 10 Simple Regression.
1 Econ 240 C Lecture 3. 2 Part I Modeling Economic Time Series.
1 Econ 240 C Lecture White noise inputoutput 1/(1 – z) White noise input output Random walkSynthesis 1/(1 – bz) White noise input output.
1 Econ 240 C Lecture Time Series Concepts Analysis and Synthesis.
1 Lecture Eleven Econ 240C. 2 Outline Review Stochastic Time Series –White noise –Random walk –ARONE: –ARTWO –ARTHREE –ARMA(2,2) –MAONE*SMATWELVE.
1 Power 2 Econ 240C. 2 Lab 1 Retrospective Exercise: –GDP_CAN = a +b*GDP_CAN(-1) + e –GDP_FRA = a +b*GDP_FRA(-1) + e.
Econ 240C Lecture Part I: Forecasting Time Series Housing Starts Housing Starts Labs 5 and 7 Labs 5 and 7.
1 Econ 240 C Lecture 3. 2 Time Series Concepts Analysis and Synthesis.
Econ 240 C Lecture Outline Exponential Smoothing Exponential Smoothing Back of the envelope formula: geometric distributed lag: L(t) = a*y(t-1)
1 Econ 240C Lecture Five. 2 Outline w Box-Jenkins Models: the grand design w What do you need to learn? w Preview of partial autocorrelation function.
1 ECON 240C Lecture 8. 2 Outline: 2 nd Order AR Roots of the quadratic Roots of the quadratic Example: capumfg Example: capumfg Polar form Polar form.
1Prof. Dr. Rainer Stachuletz Testing for Unit Roots Consider an AR(1): y t =  +  y t-1 + e t Let H 0 :  = 1, (assume there is a unit root) Define 
1 ECON 240C Lecture 8. 2 Part I. Economic Forecast Project Santa Barbara County Seminar –April 17, 2003 URL:
1 ECON 240C Lecture 8. 2 Outline: 2 nd Order AR Roots of the quadratic Roots of the quadratic Example: change in housing starts Example: change in housing.
Chapter 11 Multiple Regression.
Econ 240 C Lecture Re-Visit Santa Barbara South Coast House Price Santa Barbara South Coast House Price UC Budget, General Fund UC Budget, General.
1 ECON 240C Lecture 8. 2 Part I. Economic Forecast Project Santa Barbara County Seminar Santa Barbara County Seminar  April 22, 2004 (April 17, 2003)
1 Regression Econ 240A. 2 Retrospective w Week One Descriptive statistics Exploratory Data Analysis w Week Two Probability Binomial Distribution w Week.
1 ECON 240C Lecture 8. 2 Outline: 2 nd Order AR Roots of the quadratic Roots of the quadratic Example: change in housing starts Example: change in housing.
Econ 240 C Lecture Part I: Exponential Smoothing Exponential smoothing is a technique that is useful for forecasting short time series where there.
STAT 497 LECTURE NOTES 2.
Statistics and Quantitative Analysis U4320 Segment 12: Extension of Multiple Regression Analysis Prof. Sharyn O’Halloran.
The Properties of Time Series: Lecture 4 Previously introduced AR(1) model X t = φX t-1 + u t (1) (a) White Noise (stationary/no unit root) X t = u t i.e.
How do we identify non-stationary processes? (A) Informal methods Thomas 14.1 Plot time series Correlogram (B) Formal Methods Statistical test for stationarity.
Interval Notation Interval Notation to/from Inequalities Number Line Plots open & closed endpoint conventions Unions and Intersections Bounded vs. unbounded.
5.3 Solving Quadratic Functions with Square Roots Step 1: Add or subtract constant to both sides. Step 2: Divide or multiply coefficient of “x” to both.
Previously Definition of a stationary process (A) Constant mean (B) Constant variance (C) Constant covariance White Noise Process:Example of Stationary.
Parabola Formulas Summary of Day One Findings Horizonal Parabolas (Type 2: Right and Left) Vertical Parabolas (Type 1: Up and Down) Vertex Form Vertex:
Lecture 8: Ordinary Least Squares Estimation BUEC 333 Summer 2009 Simon Woodcock.
Stationarity and Unit Root Testing Dr. Thomas Kigabo RUSUHUZWA.
1 Lecture Plan : Statistical trading models for energy futures.: Stochastic Processes and Market Efficiency Trading Models Long/Short one.
Review of Unit Root Testing D. A. Dickey North Carolina State University (Previously presented at Purdue Econ Dept.)
Lecture 12 Time Series Model Estimation Materials for lecture 12 Read Chapter 15 pages 30 to 37 Lecture 12 Time Series.XLSX Lecture 12 Vector Autoregression.XLSX.
Dr. Thomas Kigabo RUSUHUZWA
LINEAR EQUATIONS PART I
Nonstationary Time Series Data and Cointegration
VAR models and cointegration
Graphing Linear Equations
Econ 240 C Lecture 4.
ECON 240C Lecture 7.
LINEAR EQUATIONS PART I
Use a linear model to make a prediction.
Objectives Graph a line and write a linear equation using point-slope form. Write a linear equation given two points.
Warm Up Find the slope of the line containing each pair of points.
Undergraduated Econometrics
LINEAR EQUATIONS PART I
SLOPE AND GRAPHING LINEAR EQUATIONS (B6, B7, B8)
Unit Root & Augmented Dickey-Fuller (ADF) Test
Creating & Graphing Quadratic Functions Using the X-Intercepts (3.3.2)
Introduction to Time Series
Testing for near integration with stationary covariates
LINEAR EQUATIONS PART I
Presentation transcript:

1 Midterm Review

2 Outline The Triangle of Stability - Power 7 The Triangle of Stability - Power 7 Augmented Dickey-Fuller Tests – Power 10 Augmented Dickey-Fuller Tests – Power 10 Lab Five Lab Five 2005 Midterm 2005 Midterm

3 I. The Triangle of Stability

4 Autoregressive Processes Order two: x(t) = b 1 * x(t-1) + b 2 * x(t-2) + wn(t) Order two: x(t) = b 1 * x(t-1) + b 2 * x(t-2) + wn(t) If b 2 = 0, then of order one: x(t) = b 1 * x(t-1) + wn(t) If b 2 = 0, then of order one: x(t) = b 1 * x(t-1) + wn(t) If b 1 = b 2 = 0, then of order zero: x(t) = wn(t) If b 1 = b 2 = 0, then of order zero: x(t) = wn(t)

5 Quadratic Form and Roots x(t) = b 1 * x(t-1) + b 2 * x(t-2) + wn(t) is a second order stochastic difference equation. If you drop the stochastic term, wn(t), then you have a second order deterministic difference equation: x(t) = b 1 * x(t-1) + b 2 * x(t-2) + wn(t) is a second order stochastic difference equation. If you drop the stochastic term, wn(t), then you have a second order deterministic difference equation: x(t) = b 1 * x(t-1) + b 2 * x(t-2), x(t) = b 1 * x(t-1) + b 2 * x(t-2), Or, x(t) - b 1 * x(t-1) - b 2 * x(t-2) = 0 Or, x(t) - b 1 * x(t-1) - b 2 * x(t-2) = 0 And substituting y 2-u for x(t-u), And substituting y 2-u for x(t-u), y 2 – b 1 *y – b 2 = 0, we have a quadratic equation y 2 – b 1 *y – b 2 = 0, we have a quadratic equation

6 Roots and stability Recall, for a first order autoregressive process, x(t) – b 1 *x(t-1)= wn(t), i.e. where b 2 = 0, then if we drop the stochastic term, and substitute y 1-u root is b 1. This root is unstable, i.e. a random walk if b 1 = 1. Recall, for a first order autoregressive process, x(t) – b 1 *x(t-1)= wn(t), i.e. where b 2 = 0, then if we drop the stochastic term, and substitute y 1-u for x(t-u), then y – b 1 =0, and the root is b 1. This root is unstable, i.e. a random walk if b 1 = 1. In an analogous fashion, for a second order process, if b 1 = 0, then x(t) = b 2 *x(t-2) + wn(t), similar to a first order process with a time interval twice as long, and if the root b 2 =1, we have a random walk and instability In an analogous fashion, for a second order process, if b 1 = 0, then x(t) = b 2 *x(t-2) + wn(t), similar to a first order process with a time interval twice as long, and if the root b 2 =1, we have a random walk and instability

7 Unit Roots and Instability Suppose one root is unity, i.e. we are on the boundary of instability, then factoring the quadratic from above, y 2 – b 1 *y – b 2 = (y -1)*(y –c), where (y- 1) is the root, y=1, and c is a constant. Multiplying out the right hand side and equating coefficients on the terms for y 2, y, and y 0 on the left hand side: Suppose one root is unity, i.e. we are on the boundary of instability, then factoring the quadratic from above, y 2 – b 1 *y – b 2 = (y -1)*(y –c), where (y- 1) is the root, y=1, and c is a constant. Multiplying out the right hand side and equating coefficients on the terms for y 2, y, and y 0 on the left hand side: y 2 – b 1 *y – b 2 = y 2 –y –c*y + c = y 2 –(1+c)*y + c y 2 – b 1 *y – b 2 = y 2 –y –c*y + c = y 2 –(1+c)*y + c So – b 1 = -(1+c), and –b 2 = c So – b 1 = -(1+c), and –b 2 = c Or b 1 + b 2 =1, and b 2 = 1 – b 1, the equation for a boundary of the triangle Or b 1 + b 2 =1, and b 2 = 1 – b 1, the equation for a boundary of the triangle

8 Triangle of Stable Parameter Space If b 2 = 0, then we have a first order process, ARTWO(t) = b 1 ARTWO(t-1) + WN(t), and for stability -1<b 1 <1 If b 2 = 0, then we have a first order process, ARTWO(t) = b 1 ARTWO(t-1) + WN(t), and for stability -1<b 1 <1 0 1 b1b1

9 Triangle of Stable Parameter Space If b 1 = 0, then we have a process, ARTWO(t) = b 2 ARTWO(t-2) + WN(t), that behaves like a first order process with the time interval two periods instead of one period. If b 1 = 0, then we have a process, ARTWO(t) = b 2 ARTWO(t-2) + WN(t), that behaves like a first order process with the time interval two periods instead of one period. For example, starting at ARTWO(0) at time zero, ARTWO(2) = b 2 ARTWO(0), ignoring the white noise shocks, and ARTWO(4) = b 2 ARTWO(2) = b 2 2 ARTWO(0) and for stability -1<b 2 <1 For example, starting at ARTWO(0) at time zero, ARTWO(2) = b 2 ARTWO(0), ignoring the white noise shocks, and ARTWO(4) = b 2 ARTWO(2) = b 2 2 ARTWO(0) and for stability -1<b 2 <1

10 Triangle of Stable Parameter Space b 1 = 0 b2b2 1

11 Triangle of Stable Parameter Space: b 1 = 0 b2b2 1 Draw a horizontal line through (0, -1) for (b 1, b 2 ) b 2 = 1 – b 1 If b 1 = 0, b 2 = 1, If b 1 = 1, b 2 =0, If b 2 = -1, b 1 =2 Boundary points +1

12 Triangle of Stable Parameter Space: b 1 = 0 b2b2 (0, 1) (0, -1) Draw a line from the vertex, for (b 1 =0, b 2 =1), though the end points for b 1, i.e. through (b 1 =1, b 2 = 0) and (b 1 =-1, b 2 =0), (1, 0)(-1, 0)

13 Triangle of Stable Parameter Space: b 1 = 0 b2b2 (0,1) (1, 0)(-1, 0) b 2 = 1 - b 1 Note: along the boundary, when b 1 = 0, b 2 = 1, when b 1 = 1, b 2 = 0, and when b 2 = -1, b 2 = 2. (2, -1)

14 Triangle of Stable Parameter Space: b 1 = 0 b2b2 (0, 1) (0, -1) (1, 0)(-1, 0) b 1 >0 b 2 >0 b 1 <0 b 2 >0 b 1 <0 b 2 <0 b 1 >0 b 2 <0

15 Is the behavior different in each Quadrant? b 1 = 0 b2b2 (0, 1) (0, -1) (1, 0)(-1, 0) b 1 >0 b 2 >0 b 1 <0 b 2 >0 b 1 <0 b 2 <0 b 1 >0 b 2 <0 I II III IV

16 We could study with simulation

17 Is the behavior different in each Quadrant? b 1 = 0 b2b2 (0, 1) (0, -1) (1, 0)(-1, 0) b 1 = 0.3 b 2 = 0.3 b 1 = -0.3 b 2 = 0.3 b 1 = -0.3 b 2 = -0.3 b 1 = 0.3 b 2 = -0.3 I II III IV

18 Simulation Sample Sample Genr wn=nrnd Genr wn=nrnd Sample 1 2 Sample 1 2 Genr artwo =wn Genr artwo =wn Sample Sample Genr artwo = 0.3*artwo(-1)+0.3*artwo(-2) + wn Genr artwo = 0.3*artwo(-1)+0.3*artwo(-2) + wn Sample Sample

19 II. Augmented Dickey-Fuller Tests

20 Part II: Unit Roots First Order Autoregressive or RandomWalk? First Order Autoregressive or RandomWalk? y(t) = b*y(t-1) + wn(t) y(t) = b*y(t-1) + wn(t) y(t) = y(t-1) + wn(t) y(t) = y(t-1) + wn(t)

21 Unit Roots y(t) = b*y(t-1) + wn(t) y(t) = b*y(t-1) + wn(t) we could test the null: b=1 against b<1 we could test the null: b=1 against b<1 instead, subtract y(t-1) from both sides: instead, subtract y(t-1) from both sides: y(t) - y(t-1) = b*y(t-1) - y(t-1) + wn(t) y(t) - y(t-1) = b*y(t-1) - y(t-1) + wn(t) or  y(t) = (b -1)*y(t-1) + wn(t) or  y(t) = (b -1)*y(t-1) + wn(t) so we could regress  y(t) on y(t-1) and test the coefficient for y(t-1), i.e. so we could regress  y(t) on y(t-1) and test the coefficient for y(t-1), i.e.  y(t) = g*y(t-1) + wn(t), where g = (b-1)  y(t) = g*y(t-1) + wn(t), where g = (b-1) test null: (b-1) = 0 against (b-1)< 0 test null: (b-1) = 0 against (b-1)< 0

22 Unit Roots i.e. test b=1 against b<1 i.e. test b=1 against b<1 This would be a simple t-test except for a problem. As b gets closer to one, the distribution of (b-1) is no longer distributed as Student’s t distribution This would be a simple t-test except for a problem. As b gets closer to one, the distribution of (b-1) is no longer distributed as Student’s t distribution Dickey and Fuller simulated many time series with b=0.99, for example, and looked at the distribution of the estimated coefficient Dickey and Fuller simulated many time series with b=0.99, for example, and looked at the distribution of the estimated coefficient

23 III. Lab Five

24

25

26

27

28

29

30

=0.71

32

33

34

35 Unit Roots Dickey and Fuller tabulated these simulated results into Tables Dickey and Fuller tabulated these simulated results into Tables In specifying Dickey-Fuller tests there are three formats: no constant-no trend, constant-no trend, and constant-trend, and three sets of tables. In specifying Dickey-Fuller tests there are three formats: no constant-no trend, constant-no trend, and constant-trend, and three sets of tables.

36 Unit Roots Example: the price of gold, weekly data, January 1992 through December 1999 Example: the price of gold, weekly data, January 1992 through December 1999

37

38

39

40

41

42

43 5%

44 Dickey-Fuller Tests The price of gold might vary around a “constant”, for example the marginal cost of production The price of gold might vary around a “constant”, for example the marginal cost of production P G (t) = MC G + RW(t) = MC G + WN(t)/[1-Z] P G (t) = MC G + RW(t) = MC G + WN(t)/[1-Z] P G (t) - MC G = RW(t) = WN(t)/[1-Z] P G (t) - MC G = RW(t) = WN(t)/[1-Z] [1-Z][P G (t) - MC G ] = WN(t) [1-Z][P G (t) - MC G ] = WN(t) [P G (t) - MC G ] - [P G (t-1) - MC G ] = WN(t) [P G (t) - MC G ] - [P G (t-1) - MC G ] = WN(t) [P G (t) - MC G ] = [P G (t-1) - MC G ] + WN(t) [P G (t) - MC G ] = [P G (t-1) - MC G ] + WN(t)

45 Dickey-Fuller Tests Or: [P G (t) - MC G ] = b* [P G (t-1) - MC G ] + WN(t) Or: [P G (t) - MC G ] = b* [P G (t-1) - MC G ] + WN(t) P G (t) = MC G + b* P G (t-1) - b*MC G + WN(t) P G (t) = MC G + b* P G (t-1) - b*MC G + WN(t) P G (t) = (1-b)*MC G + b* P G (t-1) + WN(t) P G (t) = (1-b)*MC G + b* P G (t-1) + WN(t) subtract P G (t-1) subtract P G (t-1) P G (t) - P G (t-1) = (1-b)*MC G + b* P G (t-1) - P G (t- 1) + WN(t) P G (t) - P G (t-1) = (1-b)*MC G + b* P G (t-1) - P G (t- 1) + WN(t) or  P G (t) = (1-b)*MC G + (1-b)* P G (t-1) + WN(t) or  P G (t) = (1-b)*MC G + (1-b)* P G (t-1) + WN(t) Now there is an intercept as well as a slope Now there is an intercept as well as a slope

46

47

48 Augmented Dickey- Fuller Tests

49 ARTWO’s and Unit Roots Recall the edge of the triangle of stability: b 2 = 1 – b 1, so for stability b 1 + b 2 < 1 Recall the edge of the triangle of stability: b 2 = 1 – b 1, so for stability b 1 + b 2 < 1 x(t) = b 1 x(t-1) + b 2 x(t-2) + wn(t) x(t) = b 1 x(t-1) + b 2 x(t-2) + wn(t) Subtract x(t-1) from both sides Subtract x(t-1) from both sides x(t) – x(-1) = (b 1 – 1)x(t-1) + b 2 x(t-2) + wn(t) x(t) – x(-1) = (b 1 – 1)x(t-1) + b 2 x(t-2) + wn(t) Add and subtract b 2 x(t-1) from the right side: Add and subtract b 2 x(t-1) from the right side: x(t) – x(-1) = (b 1 + b 2 - 1) x(t-1) - b 2 [x(t-1) - x(t-2)] + wn(t) x(t) – x(-1) = (b 1 + b 2 - 1) x(t-1) - b 2 [x(t-1) - x(t-2)] + wn(t) Null hypothesis: (b 1 + b 2 - 1) = 0 Null hypothesis: (b 1 + b 2 - 1) = 0 Alternative hypothesis: (b 1 + b 2 -1)<0 Alternative hypothesis: (b 1 + b 2 -1)<0

50 Lab Five

Midterm

52

53

54

55

56

57

58

59

60

61

62

63

64

65

66

67

68

69

70

71