1 / 64

Econ 240 C

Econ 240 C. Lecture 11. Benchmark Forecasts. “Naïve Forecasts” Time series is level: use mean Time series is trended: use trend to forecast, e.g. Lab 2 Time series is random walk: best forecast for next period is this period ARMA model forecasts

sage
Télécharger la présentation

Econ 240 C

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Econ 240 C Lecture 11

  2. Benchmark Forecasts • “Naïve Forecasts” • Time series is level: use mean • Time series is trended: use trend to forecast, e.g. Lab 2 • Time series is random walk: best forecast for next period is this period • ARMA model forecasts • Also uses the past to extrapolate the future

  3. Part I: Distributed Lag Models

  4. ? Output Y(t) Dynamic Relationship Input X(t)

  5. Distributed Lag • Y(t) = c0x(t) + c1x(t-1) + c2x(t-2) + … + resid(t) • Y(t) = c0 x(t) + c1 Z x(t) + c2 Z2 x(t) + … resid(t) • Y(t) = [c0 + c1 Z + c2 Z2 + …] x(t) + resid(t)

  6. Y(t) = C(Z) x(t) + resid(t)

  7. Resid(t) + Dynamic relationship C(Z) Input X(t) + Output Y(t)

  8. Pre-midterm Resid(t) + Dynamic relationship C(Z) Input X(t) + Output Y(t)

  9. Dynamic Model Building • Process • Identification of C(Z) • How many lags? • Which lags • Use cross-correlation function to answer specification of lags • Identification of resid(t) • Resid(t) captures part of y(t) • Use the univariate ARMA model for y(t) as a starting point for modeling resid(t)

  10. Part II: Estimation of Distributed Lag Models

  11. Part II: Estimation of Distributed Lag Models • Why not use simple OLS regression of SP500 on consumer sentiment in levels?

  12. Part II: Estimation of Distributed Lag Models • Example from Lab 6: The Index of Consumer Sentiment and the Standard & Poors 500 Index • Does consumer sentiment affect the stock market?

  13. Resid(t) + Dynamic relationship C(Z) Input X(t) consumer sentiment [c0 + c1 Z + c2 Z2 + …] + Output Y(t) sp500

  14. Regress sp500 on a distributed lag of consumer sentiment • sp500(t) = c0consen(t) + c1consen(t-1) + c2consen(t-2) + … + resid(t)

  15. Regression of SP500 on Consen

  16. Distributed Lag Model of SP500 on Consumer Sentiment • Why are not the t-statistics more significant

  17. Correlogram of Consumer Sentiment

  18. Distributed Lag Model of SP500 on Consumer Sentiment • Fixup: Taking logarithms is not enough

  19. Correlogram of natural logarithm of the Index of Consumer Sentiment

  20. Distributed Lag Model of SP500 on Consumer Sentiment • Fixup: Taking logarithms is not enough • First difference after taking natural logarithm to obtain the fractional change in the Index of Consumer Sentiment

  21. Resid(t) + Dynamic relationship C(Z) Input X(t) D lnconsumer sentiment [c0 + c1 Z + c2 Z2 + …] + Output Y(t) D lnsp500

  22. Regression of dlnsp500 on distributed lag of dlncons

  23. Distributed Lag Model of Fractional Changes in SP500 on Fractional Changes in Consumer Sentiment • Why does this work? Because fractional changes in consumer sentiment are orthogonal!

  24. Correlogram of fractional changes in consumer sentiment

  25. Contemporary correlation • dlnsp500(t) = c0 dlncons(t) + c1 dlncons(t-1) + c2 dlncons(t-2) + c3 dlncons(t-3) + resid(t) • multiply by dlcons(t) and take expectations

  26. E{dlnsp500(t)*dlncons(t) = c0 [dlncons(t)]2 + c1 dlncons(t-1)*dlncons(t) + c2 dlncons(t-2)*dlncons(t) + c3 dlncons(t-3)*dlmcons(t) + resid(t)*dlncons(t)} • cov dlnsp500(t) dlncons(t) = c0 var dlncons(t) + 0 • c0 = cov[dlny*dlnx]/var[dlnx]

  27. Correlation at lag one • dlnsp500(t) = c0 dlncons(t) + c1 dlncons(t-1) + c2 dlncons(t-2) + c3 dlncons(t-3) + resid(t) • multiply by dlcons(t-1) and take expectations

  28. E{dlnsp500(t)*dlncons(t-1) = c0 [dlncons(t)*dlncons(t-1)] + c1 dlncons(t-1)*dlncons(t-1) + c2 dlncons(t-2)*dlncons(t-1) + c3 dlncons(t-3)*dlmcons(t-1) + resid(t)*dlncons(t-1)} • crosscov dlnsp500(t) dlncons(t-1) = c1 autocov dlncons(t-1)*dlncons(t-1)) + 0 • c1 = cov[dlny(t)*dlnx(t-1)]/var[dlnx]

  29. Cross-correlation function

  30. Part III: Definitions of Cross-Covariance and Cross-Correlation • In general, the cross-covariance function where y depends on current and lagged values of x:

  31. Part III: Definitions of Cross-Covariance and Cross-Correlation • If y and x are covariance stationary, then the cross-correlation function depends on lag only:

  32. Part III: Definitions of Cross-Covariance and Cross-Correlation • Definition of cross-correlation • rx,y(u) = gx,y(u)/sx sy • note: (sy/ sx) * rx,y(u) = gx,y(u)/sx2 is the cross covariance function divided by the variance of x and reveals the distributed lag of y on lagged values of x

  33. E{dlnsp500(t)*dlncons(t-1) = c0 [dlncons(t)*dlncons(t-1)] + c1 dlncons(t-1)*dlncons(t-1) + c2 dlncons(t-2)*dlncons(t-1) + c3 dlncons(t-3)*dlmcons(t-1) + resid(t)*dlncons(t-1)} • crosscov dlnsp500(t) dlncons(t-1) = c1 autocov dlncons(t-1)*dlncons(t-1)) + 0 • c1 = cov[dlny(t)*dlnx(t-1)]/var[dlnx]

  34. Cross-correlation function

  35. What happens if the input(x, dlncons) is not orthogonal? • Then we need to make it orthogonal. This is the Box-Jenkins procedure for estimating distributed lags and we will study it in Lab 7.

  36. Part IV. Moving Averages • Example from Lab 6 • dlnsp500(t)

  37. Correlogram

  38. Unit Root Test

  39. Part IV. Moving Averages • So lnsp500(t) is a random walk with drift(trend) • Suppose we take a 15 month moving average. This takes the first 15 observations and calculates the average. Then it takes observations 2 through 16 and calculates an average, and so on.

  40. Part IV. Moving Averages • Movavlnsp500 = @movav(lnsp500, 15)

  41. Notice movav lags lnsp500

  42. Part IV. Moving Averages • We could advance movavlnsp500(t) by 7 periods to center it using GENR • movcen=movavlnsp500(7)

More Related