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.

Slides:



Advertisements
Similar presentations
FINANCIAL TIME-SERIES ECONOMETRICS SUN LIJIAN Feb 23,2001.
Advertisements

SMA 6304 / MIT / MIT Manufacturing Systems Lecture 11: Forecasting Lecturer: Prof. Duane S. Boning Copyright 2003 © Duane S. Boning. 1.
Autocorrelation Functions and ARIMA Modelling
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
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.
Chapter 14 Business Cycles and Economic Growth. AGENDA Fri 3/23 & Mon 4/2 QOD # 23: Economic Growth Review HW Business Cycles Economic Indicators HW:
STAT 497 APPLIED TIME SERIES ANALYSIS
Business Forecasting Chapter 10 The Box–Jenkins Method of Forecasting.
13 Introduction toTime-Series Analysis. What is in this Chapter? This chapter discusses –the basic time-series models: autoregressive (AR) and moving.
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.
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.
Modeling Cycles By ARMA
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 Review 2002 Final Ideas that are transcending p. 15 Economic Models of Time Series Symbolic Summary.
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 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.
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.
Econ 240C Lecture Part I: Forecasting Time Series Housing Starts Housing Starts Labs 5 and 7 Labs 5 and 7.
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 Econ 240C Power Outline The Law of One Price.
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 8. 2 Outline: 2 nd Order AR Roots of the quadratic Roots of the quadratic Example: capumfg Example: capumfg Polar form Polar form.
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.
ARIMA Forecasting Lecture 7 and 8 - March 14-16, 2011
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.
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 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.
BOX JENKINS METHODOLOGY
ARMA models Gloria González-Rivera University of California, Riverside
Module 2: Representing Process and Disturbance Dynamics Using Discrete Time Transfer Functions.
1 © 2009 The Conference Board, Inc. Job information is entered here! Trusted Insights for Business Worldwide
STAT 497 LECTURE NOTES 2.
economic indicator  A statistic about the economy.  Allows analysis of economic performance and predictions of future performance.  Include various.
Linear Stationary Processes. ARMA models. This lecture introduces the basic linear models for stationary processes. Considering only stationary processes.
Autoregressive Integrated Moving Average (ARIMA) Popularly known as the Box-Jenkins methodology.
John G. Zhang, Ph.D. Harper College
K. Ensor, STAT Spring 2005 Model selection/diagnostics Akaike’s Information Criterion (AIC) –A measure of fit plus a penalty term for the number.
Introducing ITSM 2000 By: Amir Heshmaty Far. S EVERAL FUNCTION IN ITSM to analyze and display the properties of time series data to compute and display.
Big Data at Home Depot KSU – Big Data Survey Course Steve Einbender Advanced Analytics Architect.
K. Ensor, STAT Spring 2004 Memory characterization of a process How would the ACF behave for a process with no memory? What is a short memory series?
Time Series Basics Fin250f: Lecture 8.1 Spring 2010 Reading: Brooks, chapter
MULTIVARIATE TIME SERIES & FORECASTING 1. 2 : autocovariance function of the individual time series.
Linear Filters. denote a bivariate time series with zero mean. Let.
The Box-Jenkins (ARIMA) Methodology
Module 4 Forecasting Multiple Variables from their own Histories EC 827.
Ch16: Time Series 24 Nov 2011 BUSI275 Dr. Sean Ho HW8 due tonight Please download: 22-TheFed.xls 22-TheFed.xls.
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.
Introduction to stochastic processes
Covariance, stationarity & some useful operators
Financial Econometrics Lecture Notes 2
Lecture 8 ARIMA Forecasting II
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
Econ 240 C Lecture 4.
Econ 240C Lecture 18.
ECON 240C Lecture 7.
Module 3 Forecasting a Single Variable from its own History, continued
BOX JENKINS (ARIMA) METHODOLOGY
Chap 7: Seasonal ARIMA Models
Presentation transcript:

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 w Part I. Time Series Components Model w Part II. Autoregressive of order one w Part III. Characterizing autoregressive processes of the first order w Part IV. Forecasting: information Sources

3 Box and Jenkins Analysis w The grand design w A stationary time series, x(t), is modeled as the ratio of polynomials in the lag operator times white noise, wn(t) w X(t) = A(z)/B(z) * wn(t) w Example 1: A(z)=1=z 0, B(z)=1, x(t) =wn(t) w Example 2: A(z)=1, B(z) = (1-z), x(t) =rw(t)

4 ARIMA models cont. w Example 3: A(z) =1, B(z) = (1-bz), x(t) =ARONE(t) w Historically, before Box and Jenkins, time series were modeled as higher order autoregressive processes w Example 4: A(z) = 1, B(z) = (1 –b 1 z –b 2 z 2 ), x(t) =ARTWO(t)

5 ARIMA models cont. To estimate higher order models, you have to estimate more parameters, i.e. tease more information out of the data, risking insignificant parameters Box and Jenkins discovered that by using a ratio of polynomials you could get by with fewer paramemters: x(t) = [(1 + az)/(1-bz)] wn(t)

6 What do you need to learn? w I. How to prewhiten a time series i.e. make it stationary Logarithmic transformation if necessary First difference Seasonal difference w II. How to identify, i.e. specify a model to estimate Trace Histogram Correlogram Unit root tesrt

7 What to learn? cont. w Need a systematics, ie a mapping from the correlogram to the model Correlogram of an arzero Correlogram of an arone correlogram of an artwo w Estimation of a model and its validation Actual, fitted and residula Correlogram of residual: is residual orthogonal? Histogram of residual: is residual normal?

8 What to learn? Cont. w Using a validated model to forecast

9 Preview of the partial autocorrelation function, pacf(u) w Arone: x(t) = b*x(t-1) + wn(t) Acf(1) = b = dx(t)/dx(t-1) = pacf(1) w Artwo: x(t) = b 1 *x(t-1) + b 2 *x(t-2) + wn(t) b 2 =  x(t)/  x(t-2) = pacf(2) Pacf(2)=[acf(2)-acf(1)*acf(1)]/[1- acf(1)*acf(1)] If arone, then pacf =0, since acf(2) = acf(1)*acf(1) pacf(2) =b*b, acf(1) =b

10 Part I: Time Series Components Model w The conceptual framework for inertial (mechanical) time series models: w Time series (t) = trend + cycle + seasonal + residual w We are familiar with trend models, e.g. w Time series = a + b*t + e(t), i.e.  time series = trend + residual where e(t) is i.i.d. N(0,   )

11 Time Series Components Model w We also know how to deal with seasonality. For example, using quarterly data we could add a dummy zero-one variable, D 1 that takes on the value of one if the observation is for the first quarter and zero otherwise. Similarly, we could add dummy variables for second quarter observations and for third quarter observations: Time series = a + b*t + c 1 *D 1 + c 2 *D 2 + c 3 *D 3 + e(t)

12 Time Series Components Models w So we have: time series = trend + seasonal + residual w But how do we model cycles? w Since macroeconomic variables are likely to be affected by economic conditions and the business cycle, this is an important question. w The answer lies in Box-Jenkins or ARIMA models.

13 Time Series Components Models w ARIMA models are about modeling the residual w The simplest time series model is: time series(t) = white noise(t) w some other time series models are of the form: time series = A(Z)*white noise(t), where A(Z) is a polynomial in Z, a dynamic multiplier for white noise. w For the white noise model, A(Z) = Z 0 =1

14 Time Series Components Models w For the random walk, RW(t), RW(t) = A(Z)*WN(t) where A(Z) = (1+Z+Z 2 +Z 3 + …) w For the autoregressive process of the first order, ARONE(t), ARONE(t) = A(Z) * WN(t) where A(Z) = (1+b*Z+b 2 *Z 2 +b 3 *Z 3 +…) and -1<b<1, i.e. b is on the real number line and is less than one in absolute value w

15 Time Series Components Models w So ARIMA models have a residual, white noise, as an input, and transform it with the polynomial in lag, A(Z), to model time series behavior. w One can think of ARIMA models in terms of the time series components model, where the time series, y(t), for quarterly data is modeled as: y(t)=a+b*t+c 1 *D 1 +c 2 *D 2 +c 3 *D 3 +A(Z)WN(t)

16 Time Series Components Models w But y(t), with a trend component, and a seasonal component, is evolutionary, i.e. time dependent, on two counts. So first we difference the time series, y(t), to remove trend, and seasonally difference it to remove the seasonal component, making it stationary. Then we can model it as an ARMA model, i.e. an autoregressive- moving average time series.

17 Time Series Components Models  Symbolically, we difference, , y(t) to remove trend, obtaining  y(t)  Then we seasonally difference,  S,  y(t) to remove the seasonality, obtaining  S y(t).  Now we can model this stationary time series,  S y(t) as ARMA, e.g.  S y(t) = A(Z)*WN(t)

18 Time Series Components Models  After modeling  S y(t) as an ARMA process, we can recover the model for the original time series, y(t), by undoing the differencing and seasonal differencing. w This is accomplished by summation, i.e. integration, the inverse of differencing. Hence the name autoregressive integrated moving average, or ARIMA, for the model of y(t).

19 Part II. Behavior of Autoregressive Processes of the First Order w From PowerPoint Lecture Three

20 Model Three: Autoregressive Time Series of Order One w An analogy to our model of trend plus shock for the logarithm of the Standard Poors is inertia plus shock for an economic time series such as the change in private inventories w Source: FRED

21

22

23 Data: text to columns

24

25 Behavior of ARONE Processes w So we have a typical trace of an ARONE w How about the histogram? w How about the correlogram?

26

27

28

29

30

31

32

33 Residuals from ARONE Model of CBI Some structure at lags 3, 7, 10

34 Part III. Characterizing Autoregressive Processes of the First Order w ARONE(t) = b*ARONE(t-1) + WN(t) w Lag by one w ARONE(t-1) = b*ARONE(t-2) + WN(t-1) w Substitute for ARONE(t-1) w ARONE(t) = b*[b*ARONE(t-2) + WN(t-1] + WN(t) w ARONE(t) = WN(t) + b*WN(t-1) +b 2 *ARONE(t-2) + …

35 Characterize AR of 1st Order w Keep lagging and substituting to obtain w ARONE(t) = WN(t) +b*WN(t-1) + b 2 *WN(t-2) + ….. w ARONE(t) = [1+b*Z+b 2 Z 2 +…] WN(t) w ARONE(t) = A(Z)*WN(t)

36 Characterize AR of 1st Order w ARONE(t) = WN(t) +b*WN(t-1) + b 2 *WN(t-2) + ….. w Note that the mean function of an ARONE process is zero w m(t) = E ARONE(t) = E{WN(t) + b*WN(t-1) + b 2 *WN(t-2) + …..} where E WN(t) =0, and EWN(t-1) =0 etc. w m(t) = 0

37 WN(t) and WN(t-1)

38 Autocovariance of ARONE w E{[ARONE(t) - EARONE(t)]*[ARONE(t-u)- EARONE(t-u)]}=E{ARONE(t)*ARONE(t-u)] since EARONE(t) = 0 = EARONE(t-u)  So  AR,AR (u) = E{ARONE(t)*ARONE(t-u)}  For u=1, i.e. lag one,  AR,AR (1) = E{ARONE(t)*ARONE(t-1)}, and w use ARONE(t) = b*ARONE(t-1) + WN(t) w and multiply byARONE(t-1)

39 Autocovariance of ARONE w ARONE(t)*ARONE(t-1) = b*[ARONE(t-1)] 2 +ARONE(t-1)*WN(t) w and take expectations, E w E{ARONE(t)*ARONE(t-1) = b*[ARONE(t- 1)] 2 +ARONE(t-1)*WN(t)}  where the LHS E{ARONE(t)*ARONE(t-1) is  AR,AR (1) by definition and  b*E *[ARONE(t-1)] 2 is b*  AR,AR (0), i.e. b* the variance by definition but how about

40 Autocovariance of an ARONE w E{ARONE(t-1)*WN(t)} = ? w Note that ARONE(t) = WN(t) +b*WN(t-1) + b 2 *WN(t-2) + ….. w And lagging by one, ARONE(t-1) = WN(t-1) +b*WN(t-2) + b 2 *WN(t-3) + ….. w So ARONE(t-1) depends on WN(t-1) and earlier shocks, so that E{ARONE(t-1)*WN(t)} = 0, i.e. ARONE(t) is independent of WN(t).

41 Autocovariance of ARONE  In sum,  AR,AR (1) = b*  AR,AR (0)  or in general for an ARONE,  AR,AR (u) = b*  AR,AR (u-1) which can be confirmed by taking the formula : w ARONE(t) = b*ARONE(t-1) + WN(t), multiplying by ARONE(t-u) and taking expectations.  Note  AR,AR (u) =  AR,AR (u) /  AR,AR (0)

42 Autocorrelation of ARONE(t)  So dividing  AR,AR (u) = b*  AR,AR (u-1) by  AR,AR (0) results in   AR,AR (u) = b*  AR,AR (u-1), u>0   AR,AR (1) = b*  AR,AR (0) = b   AR,AR (2) = b*  AR,AR (1) = b*b = b 2 w etc.

43 Autocorrelation Function of an Autoregressive Process of the First Order

45 Part IV. Forecasting-Information Sources w The Conference Board publishes a monthly, Business Cycle Indicators w A monthly series followed in the popular press is the Index of Leading Indicators

46

47

48 Leading Index Components w Average Weekly Hours, anufacturing w Initial claims For Unemployment Insurance w Manufacturerers’ New Orders Consumer goods w Vendor Performance w Building Permits new private housing w Manufacturerers’ New Orders nondefense capital goods

49 Leading Index (Cont.0 w Stock Prices 500 common stocks w Money Supply M2 w Interest Rate Spread 10 Treasury bonds - Federal Funds Rate w Index of Consumer Expectations

50 Article About Leading Indices w indicators.org/GeneralInfo/bci4.pdf w BCI Web page: indicators.org/

51 Revised Versus Old Leading Index

52 Part V: Autoregressive of 1st Order w The model for an autoregressive process of the first order, ARONE(t) is: w ARONE(t) = b*ARONE(t-1) + WN(t) w or, using the lag operator, ARONE(t) = b*ZARONE(t) + WN(t), i.e. ARONE(t) - b*ZARONE(t) = WN(t), and factoring out ARONE(t): [1 -b*Z]*ARONE(t) = WN(t)

53 Autoregressive of 1st Order w Dividing by [1 - b*Z], w ARONE(t) = {1/[1 - b*Z]}WN(t) where the reciprocal of [1 - bZ] is: {1/[1 - b*Z]} = (1+b*Z+b 2 *Z 2 +b 3 *Z 3 +…) which can be verified by multiplying [1 - b*Z] by (1+b*Z+b 2 *Z 2 +b 3 *Z 3 +…) to obtain 1.

54 Autoregressive of the First Order w Note that we can write ARONE(t) as 1/[1-b*Z]*WN(t), i.e. ARONE(t) ={1/B(Z)}* WN(t), where B(Z) = [1 - b*Z] is a first order polynomial in Z, w Or, we can write ARONE(t) as ARONE(t) = A(Z) * WN(t) where A(Z) = (1+b*Z+b 2 *Z 2 +b 3 *Z 3 +…) is a polynomial in Z of infinite order.

55 Autoregreesive of the First Order w So 1/B(Z) = A(Z). A first order polynomial in the denominator can approximate an infinite order polynomial in the numerator. w Box and Jenkins achieved parsimony, i.e. the use of only a few parameters which you need to estimate by modeling time series using the ratio of low order polynomials in the numerator and denominator: w ARMA(t) = {A(Z)/B(Z)}* WN(t)

56 Autoregressive of the First Order w For Now we will concentrate on the denominator: ARONE(t) = {1/B(Z)}*WN(t), where the polynomial in the denominator, B(Z) = [1 - b*Z], captures autoregressive behavior of the first order. w Later, we will turn our attention to the numerator, where A(Z) captures moving average behavior. w Then we will combine A(Z) and B(Z).

57 Puzzles w Annual data on output per hour; all persons, manufacturing w measure of productivity

58

59

60

61 Fractional Changes: Productivity

62 Histogram

Date: 04/15/03 Time: 16:59 Sample: Included observations: 51 AutocorrelationPartial Correlation AC PAC Q-Stat Prob **|. | **|. | |. |.*|. | *|. |.*|. | ***|. | ****|. | |**** |. |**** | *|. |.*|. | |. |.*|. | |. |.*|. | **|. |. |** | |*** |.*|. | |. |. |*. |

64

65 How to Identify, i.e. Specify, this model