Econ 240C Lecture 12. 2 Part I: Forecasting Time Series Housing Starts Housing Starts Labs 5 and 7 Labs 5 and 7.

Slides:



Advertisements
Similar presentations
SMA 6304 / MIT / MIT Manufacturing Systems Lecture 11: Forecasting Lecturer: Prof. Duane S. Boning Copyright 2003 © Duane S. Boning. 1.
Advertisements

EViews Student Version. Today’s Workshop Basic grasp of how EViews manages data Creating Workfiles Importing data Running regressions Performing basic.
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.
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
Forecasting CPI Xiang Huang, Wenjie Huang, Teng Wang, Hong Wang Benjamin Wright, Naiwen Chang, Jake Stamper.
BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009.
Forecasting JY Le Boudec 1. Contents 1.What is forecasting ? 2.Linear Regression 3.Avoiding Overfitting 4.Differencing 5.ARMA models 6.Sparse ARMA models.
1 ECON 240C Lecture Outline Box-Jenkins Passengers Box-Jenkins Passengers Displaying the Forecast Displaying the Forecast Recoloring Recoloring.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.
Econ 140 Lecture 121 Prediction and Fit Lecture 12.
Econ 240 C Lecture Part I. ARCH-M Modeks w In an ARCH-M model, the conditional variance is introduced into the equation for the mean as an explanatory.
Econ 240 C Lecture Outline w Project II w Forecasting w ARCH-M Models w Granger Causality w Simultaneity w VAR models.
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.
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.
United States Imports Michael Williams Kevin Crider Andreas Lindal Jim Huang Juan Shan.
Global Warming: Is It True? Peter Fuller Odeliah Greene Amanda Smith May Zin.
1 Econ 240 C Lecture Time Series Concepts Analysis and Synthesis.
1 Takehome One month treasury bill rate.
1 Lecture Eleven Econ 240C. 2 Outline Review Stochastic Time Series –White noise –Random walk –ARONE: –ARTWO –ARTHREE –ARMA(2,2) –MAONE*SMATWELVE.
Econ 240C Lecture Part I. VAR Does the Federal Funds Rate Affect Capacity Utilization?
1 Midterm Review. 2 Outline The Triangle of Stability - Power 7 The Triangle of Stability - Power 7 Augmented Dickey-Fuller Tests – Power 10 Augmented.
1 Econ 240 C Lecture 6. 2 Part I: Box-Jenkins Magic ARMA models of time series all built from one source, white noise ARMA models of time series all built.
1 Identifying ARIMA Models What you need to know.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.
1 Econ 240C Lecture Five Outline w Box-Jenkins Models w Time Series Components Model w Autoregressive of order one.
1 Econ 240 C Lecture 3. 2 Time Series Concepts Analysis and Synthesis.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.
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.
1 Takehome One Excaus:Price of US $ in Canadian $
1 ECON 240C Lecture 8. 2 Part I. Economic Forecast Project Santa Barbara County Seminar –April 17, 2003 URL:
BABS 502 Lecture 8 ARIMA Forecasting II March 16 and 21, 2011.
Project Average Weekly Hours, Manufacturing.
Econ 240C Lecture Part I. VAR Does the Federal Funds Rate Affect Capacity Utilization?
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.
1 Econ 240C Lecture Five Outline w Box-Jenkins Models w Time Series Components Model w Autoregressive of order one.
Introduction At the start of most beginning economics courses we learn the economics is a science aimed toward answering the following questions: 1.What.
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)
Econ 240 C Lecture Outline w Project II w Forecasting w ARCH-M Models w Granger Causality w Simultaneity w VAR models.
1 Lab Four Postscript Econ 240 C. 2 Airline Passengers.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail sales –Add a quadratic term –Use both models to.
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 Outline w Project I w ARCH-M Models w Granger Causality w Simultaneity w VAR models.
Econ 240 C Lecture Part I: Exponential Smoothing Exponential smoothing is a technique that is useful for forecasting short time series where there.
Econ 240 C Lecture Outline w Project II w Forecasting w ARCH-M Models w Granger Causality w Simultaneity w VAR models.
STAT 497 LECTURE NOTES 2.
EViews Training Samples
Autoregressive Integrated Moving Average (ARIMA) Popularly known as the Box-Jenkins methodology.
Functional Brain Signal Processing: EEG & fMRI Lesson 5 Kaushik Majumdar Indian Statistical Institute Bangalore Center M.Tech.
Big Data at Home Depot KSU – Big Data Survey Course Steve Einbender Advanced Analytics Architect.
1 Ka-fu Wong University of Hong Kong EViews Commands that are useful for Assignment #2.
How to solve Quadratic Equations By John Jackson.
Dynamic Models, Autocorrelation and Forecasting ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
Linear Filters. denote a bivariate time series with zero mean. Let.
TESTING FOR NONSTATIONARITY 1 This sequence will describe two methods for detecting nonstationarity, a graphical method involving correlograms and a more.
1 Econ 240C Lecture Five. 2 Part I: Time Series Components Model w The conceptual framework for inertial (mechanical) time series models: w Time series.
* Collect the like terms 1. 2a = 2a x -2x + 9 = 6x z – – 5z = 2z - 6.
Solving 2 step equations. Two step equations have addition or subtraction and multiply or divide 3x + 1 = 10 3x + 1 = 10 4y + 2 = 10 4y + 2 = 10 2b +
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.
Dynamic Models, Autocorrelation and Forecasting
Equations Pre/Post Test
Lecture 8 ARIMA Forecasting II
Econ 240 C Lecture 4.
ECON 240C Lecture 7.
6-3 Solving Systems Using Elimination
Eviews Tutorial for Labor Economics Lei Lei
Subtract the same value on each side
Presentation transcript:

Econ 240C Lecture 12

2 Part I: Forecasting Time Series Housing Starts Housing Starts Labs 5 and 7 Labs 5 and 7

3 Capacity Utilization, Mfg. First quarter of 1972-First Quarter 2003 First quarter of 1972-First Quarter 2003 Estimate for a sub-sample Estimate for a sub-sample Test the forecast for sub-sample Test the forecast for sub-sample

4 Identification Process Trace Trace Histogram Histogram Correlogram Correlogram Dickey-Fuller Test Dickey-Fuller Test

5

6

7

8

9 Estimation and Validation Process First Model: cumfn c ar(1) ar(2) First Model: cumfn c ar(1) ar(2) goodness of fit goodness of fit correlogram of residuals correlogram of residuals histogram of residuals histogram of residuals Second Model: cumfn c ar(1) ar(2) ma(8) Second Model: cumfn c ar(1) ar(2) ma(8) goodness of fit goodness of fit correlogram of residuals correlogram of residuals histogram of residuals histogram of residuals

10

11

12

13

14

15

16

17

18 Additional Validation Forecasting within the sample range for the subsample beyond the data range used for estimation Forecasting within the sample range for the subsample beyond the data range used for estimation

19

20

21

22

23

24 Estimation for the whole Period

25

26 Correlogram of Residuals from Estimated Model,

27 Augmenting Data Range for Forecasting Workfile Window in EVIEWS Workfile Window in EVIEWS PROCS menu PROCS menu

28 Equation Window; Forecast Instructions

29

30 Generating Forecast and Upper and Lower Bounds for the 95% Confidence Interval,

31 Compare the Observed to the Forecast Series with Bounds

32 Spreadsheet: Observed, Forecast and Bounds

33 Observed Series, Forecast, and 95% Confidence Interval

34 AdditionalProspective Model Validation How well do the forecasts for compare to future observations? How well do the forecasts for compare to future observations? Do future observations lie within the confidence bounds? Do future observations lie within the confidence bounds?

35 Part II. Augmented Dickey-Fuller Tests A second order autoregressive process A second order autoregressive process lecture 7-Powerpoint lecture 7-Powerpoint

36 Lecture 7-Part III. Autoregressive of the Second Order ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t-2) + WN(t) ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t-2) + WN(t) ARTWO(t) - b 1 *ARTWO(t-1) - b 2 *ARTWO(t- 2) = WN(t) ARTWO(t) - b 1 *ARTWO(t-1) - b 2 *ARTWO(t- 2) = WN(t) ARTWO(t) - b 1 *Z*ARTWO(t) - b 2 *Z*ARTWO(t) = WN(t) ARTWO(t) - b 1 *Z*ARTWO(t) - b 2 *Z*ARTWO(t) = WN(t) [1 - b 1 *Z - b 2 *Z 2 ] ARTWO(t) = WN(t) [1 - b 1 *Z - b 2 *Z 2 ] ARTWO(t) = WN(t)

37 Triangle of Stable Parameter Space: Heuristic Explanation b 1 = 0 b2b2 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 =-1) and (b 1 =-1, b 2 =0), (1, 0)(-1, 0)

38 Triangle of Stable Parameter Space If we are along the right hand diagonal border of the parameter space then we are on the boundary of stability, I.e. there must be a unit root, and from: If we are along the right hand diagonal border of the parameter space then we are on the boundary of stability, I.e. there must be a unit root, and from: [1 - b 1 *Z - b 2 *Z 2 ] ARTWO(t) = WN(t) [1 - b 1 *Z - b 2 *Z 2 ] ARTWO(t) = WN(t) ignoring white noise shocks, ignoring white noise shocks, [1 - b 1 *Z - b 2 *Z 2 ] = [1 -Z][1 + c Z], where multiplying the expressions on the right hand side(RHS), noting that c is a parameter to be solved for and setting the RHS equal to the LHS: [1 - b 1 *Z - b 2 *Z 2 ] = [1 -Z][1 + c Z], where multiplying the expressions on the right hand side(RHS), noting that c is a parameter to be solved for and setting the RHS equal to the LHS:

39 [1 - b 1 *Z - b 2 *Z 2 ] = [1 + (c - 1)Z -c Z 2 ], so - b 1 = c - 1, and - b 2 = -c, or [1 - b 1 *Z - b 2 *Z 2 ] = [1 + (c - 1)Z -c Z 2 ], so - b 1 = c - 1, and - b 2 = -c, or b 1 = 1 - c, (line2) b 1 = 1 - c, (line2) b 2 = c, (line 3) b 2 = c, (line 3) and adding lines 2 and 3: b 1 + b 2 = 1, so and adding lines 2 and 3: b 1 + b 2 = 1, so b 2 = 1 - b 1, the formula for the right hand boundary b 2 = 1 - b 1, the formula for the right hand boundary

40 b 1 + b 2 = 1 is the condition for a unit root for a second order process b 1 + b 2 = 1 is the condition for a unit root for a second order process ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t- 2) + WN(t) ARTWO(t) = b 1 *ARTWO(t-1) + b 2 *ARTWO(t- 2) + WN(t) add b 2 *ARTWO(t-1) - b 2 *ARTWO(t-1) to RHS add b 2 *ARTWO(t-1) - b 2 *ARTWO(t-1) to RHS ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2 *ARTWO(t-1) + b 2 *ARTWO(t-2) + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2 *ARTWO(t-1) + b 2 *ARTWO(t-2) + WN(t)

41 ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2 *[ARTWO(t-1) - *ARTWO(t-2)] + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2 *[ARTWO(t-1) - *ARTWO(t-2)] + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t) subtract ARTWO(t-1) from both sides subtract ARTWO(t-1) from both sides  ARTWO(t) = (b 1 + b 2 - 1) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t)  ARTWO(t) = (b 1 + b 2 - 1) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t)

42 Example Capacity utilization manufacturing Capacity utilization manufacturing

43

44

45 ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2 *[ARTWO(t-1) - *ARTWO(t-2)] + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2 *[ARTWO(t-1) - *ARTWO(t-2)] + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t) ARTWO(t) = (b 1 + b 2 ) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t) subtract ARTWO(t-1) from both sides subtract ARTWO(t-1) from both sides  ARTWO(t) = (b 1 + b 2 - 1) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t)  ARTWO(t) = (b 1 + b 2 - 1) *ARTWO(t-1) - b 2  ARTWO(t-1) + WN(t)

46 Part III. Lab Seven New privately owned housing units and the 30 year conventional mortgage rate, April 1974-March 2003 New privately owned housing units and the 30 year conventional mortgage rate, April 1974-March 2003 starts(t) = c 0 mort(t) + c 1 mort(t-1) + c 2 mort(t-2) + … + resid(t) starts(t) = c 0 mort(t) + c 1 mort(t-1) + c 2 mort(t-2) + … + resid(t) starts(t) = c 0 mort(t) + c 1 Zmort(t) + c 2 Z 2 mort(t) + … + resid(t) starts(t) = c 0 mort(t) + c 1 Zmort(t) + c 2 Z 2 mort(t) + … + resid(t) starts(t) = [c 0 + c 1 Z + c 2 Z 2 + …] mort(t) + resid(t) starts(t) = [c 0 + c 1 Z + c 2 Z 2 + …] mort(t) + resid(t)

47 Output starts(t) C(Z) Input mort(t) Dynamic relationship + + Resid(t)

48 Identification Process for Mortrate Trace Trace Histogram Histogram Correlogram Correlogram Dickey-Fuller Test Dickey-Fuller Test

49

50

51

52

53 Looks like a unit root in the mortgage rate, so prewhiten by differencing Looks like a unit root in the mortgage rate, so prewhiten by differencing  starts(t) = [c 0 + c 1 Z + c 2 Z 2 + …]  mort(t) +  resid(t)  starts(t) = [c 0 + c 1 Z + c 2 Z 2 + …]  mort(t) +  resid(t)

54 Identification Process for dmort Trace Trace Histogram Histogram Correlogram Correlogram Dickey-Fuller Test Dickey-Fuller Test

55

56

57

58

59 Estimation of Model for dmort

60

61

62

63

64 Dstart(t) = C(Z) dmort(t) + dresid(t) Dstart(t) = C(Z) dmort(t) + dresid(t) dmort(t) = reside(t), where reside(t) = 0.577*reside(t-1) *reside(t-2) + N dm dmort(t) = reside(t), where reside(t) = 0.577*reside(t-1) *reside(t-2) + N dm dmort(t) = 0.577*dmort(t-1) *dmort(t-2) + N dm,, save N dm by GENR resdm=resid dmort(t) = 0.577*dmort(t-1) *dmort(t-2) + N dm,, save N dm by GENR resdm=resid dmort(t) *Zdmort(t) *Z 2 dmort(t) = N dm dmort(t) *Zdmort(t) *Z 2 dmort(t) = N dm

65 dmort(t) *Zdmort(t) *Z 2 dmort(t) = N dm dmort(t) *Zdmort(t) *Z 2 dmort(t) = N dm [ *Z *Z 2 ]dmort(t) = N dm [ *Z *Z 2 ]dmort(t) = N dm Dstart(t) = C(Z) dmort(t) + dresid(t) Dstart(t) = C(Z) dmort(t) + dresid(t) [ *Z *Z 2 ]*Dstart(t) = C(Z)* [ *Z *Z 2 ]dmort(t) + [ *Z *Z 2 ] dresid(t) [ *Z *Z 2 ]*Dstart(t) = C(Z)* [ *Z *Z 2 ]dmort(t) + [ *Z *Z 2 ] dresid(t) [ *Z *Z 2 ]*Dstart(t) = C(Z)* N dm + [ *Z *Z 2 ]* dresid(t) [ *Z *Z 2 ]*Dstart(t) = C(Z)* N dm + [ *Z *Z 2 ]* dresid(t)

66 Transform dstart(t) Transform dstart(t) w(t) = [ *Z *Z 2 ]*Dstart(t) w(t) = [ *Z *Z 2 ]*Dstart(t) Cross-correlate w(t) and N dm to reveal C(Z) Cross-correlate w(t) and N dm to reveal C(Z) w(t) = c 0 N dm + c 1 N dm (t-1) + c 2 N dm (t-2) +... dresidw(t) w(t) = c 0 N dm + c 1 N dm (t-1) + c 2 N dm (t-2) +... dresidw(t) Then specify and estimate the model: Then specify and estimate the model: w(t) = c 0 N dm + c 1 N dm (t-1) + c 2 N dm (t-2) +... dresidw(t) w(t) = c 0 N dm + c 1 N dm (t-1) + c 2 N dm (t-2) +... dresidw(t) where dresidw(t)=[ *Z *Z 2 ]* dresid(t) where dresidw(t)=[ *Z *Z 2 ]* dresid(t)

67