Factor models. March 13, 2017

Similar documents
Factor models. May 11, 2012

A. Recursively orthogonalized. VARs

A primer on Structural VARs

Dynamic Factor Models and Factor Augmented Vector Autoregressions. Lawrence J. Christiano

1. Shocks. This version: February 15, Nr. 1

Structural VARs II. February 17, 2016

VARs and factors. Lecture to Bristol MSc Time Series, Spring 2014 Tony Yates

Econometría 2: Análisis de series de Tiempo

Structural VAR Models and Applications

Online Appendix (Not intended for Publication): Decomposing the Effects of Monetary Policy Using an External Instruments SVAR

Bayesian Graphical Models for Structural Vector AutoregressiveMarch Processes 21, / 1

Principal Component Analysis-I Geog 210C Introduction to Spatial Data Analysis. Chris Funk. Lecture 17

Evaluating FAVAR with Time-Varying Parameters and Stochastic Volatility

A Primer on Vector Autoregressions

Inference Based on SVARs Identified with Sign and Zero Restrictions: Theory and Applications

Combining Macroeconomic Models for Prediction

ECON 4160: Econometrics-Modelling and Systems Estimation Lecture 9: Multiple equation models II

An Overview of the Factor-Augmented Error-Correction Model

Class 4: VAR. Macroeconometrics - Fall October 11, Jacek Suda, Banque de France

Macroeconomics II. Dynamic AD-AS model

Dynamic AD-AS model vs. AD-AS model Notes. Dynamic AD-AS model in a few words Notes. Notation to incorporate time-dimension Notes

Econ671 Factor Models: Principal Components

Bootstrap Inference for Impulse Response Functions in Factor-Augmented Vector Autoregressions

Predicting bond returns using the output gap in expansions and recessions

Title. Description. var intro Introduction to vector autoregressive models

Lecture 1: Information and Structural VARs

New meeting times for Econ 210D Mondays 8:00-9:20 a.m. in Econ 300 Wednesdays 11:00-12:20 in Econ 300

Assessing Structural VAR s

Monetary policy at the zero lower bound: Theory

Identifying the Monetary Policy Shock Christiano et al. (1999)

B y t = γ 0 + Γ 1 y t + ε t B(L) y t = γ 0 + ε t ε t iid (0, D) D is diagonal

Assessing Structural VAR s

Identifying SVARs with Sign Restrictions and Heteroskedasticity

Time-Varying Vector Autoregressive Models with Structural Dynamic Factors

Vector Auto-Regressive Models

VAR Models and Applications

Matching DSGE models,vars, and state space models. Fabio Canova EUI and CEPR September 2012

Financial Econometrics

Lecture 13. Principal Component Analysis. Brett Bernstein. April 25, CDS at NYU. Brett Bernstein (CDS at NYU) Lecture 13 April 25, / 26

Inference when identifying assumptions are doubted. A. Theory B. Applications

Inference when identifying assumptions are doubted. A. Theory. Structural model of interest: B 1 y t1. u t. B m y tm. u t i.i.d.

Discussion of Bootstrap prediction intervals for linear, nonlinear, and nonparametric autoregressions, by Li Pan and Dimitris Politis

Assessing Structural VAR s

LECTURE 3 The Effects of Monetary Changes: Statistical Identification. September 5, 2018

Whither News Shocks?

MFx Macroeconomic Forecasting

Autoregressive distributed lag models

Stochastic Trends & Economic Fluctuations

The Price Puzzle: Mixing the Temporary and Permanent Monetary Policy Shocks.

ECON 4160, Autumn term 2017 Lecture 9

Lecture 7a: Vector Autoregression (VAR)

Lecture 3: The role of information

MSc Time Series Econometrics

doi /j. issn % % JOURNAL OF CHONGQING UNIVERSITY Social Science Edition Vol. 22 No.

Notes on Time Series Modeling

BEAR 4.2. Introducing Stochastic Volatility, Time Varying Parameters and Time Varying Trends. A. Dieppe R. Legrand B. van Roye ECB.

Great Recession and Monetary Policy Transmission

Nowcasting Norwegian GDP

Common Time Variation of Parameters in Reduced-Form Macroeconomic Models

Identifying Aggregate Liquidity Shocks with Monetary Policy Shocks: An Application using UK Data

Structural Vector Autoregressive Analysis in a Data Rich Environment

Dynamic Factor Models, Factor Augmented VARs, and SVARs in Macroeconomics. -- Part 2: SVARs and SDFMs --

Forecast comparison of principal component regression and principal covariate regression

Dynamic Factor Models

VAR Model. (k-variate) VAR(p) model (in the Reduced Form): Y t-2. Y t-1 = A + B 1. Y t + B 2. Y t-p. + ε t. + + B p. where:

Lecture 3 Macroeconomic models by VAR

Time Series Analysis for Macroeconomics and Finance

Multivariate Statistical Analysis

Introduction to Algorithmic Trading Strategies Lecture 3

Vector autoregressions, VAR

Principal Components Analysis (PCA)

An Anatomy of the Business Cycle Data

Regression: Ordinary Least Squares

9.1 Orthogonal factor model.

Notes on empirical methods

Assessing Structural VAR s

2.5 Forecasting and Impulse Response Functions

ML Estimation of State Space Models. March 17, 2017

Lecture 7a: Vector Autoregression (VAR)

Computational Macroeconomics. Prof. Dr. Maik Wolters Friedrich Schiller University Jena

Likelihood-based Estimation of Stochastically Singular DSGE Models using Dimensionality Reduction

MA Advanced Macroeconomics: 4. VARs With Long-Run Restrictions

1 Teaching notes on structural VARs.

Multivariate modelling of long memory processes with common components

Signaling Effects of Monetary Policy

Structural FECM: Cointegration in large-scale structural FAVAR models

Oil price and macroeconomy in Russia. Abstract

Dynamic Factor Models Cointegration and Error Correction Mechanisms

Chapter 2. Some basic tools. 2.1 Time series: Theory Stochastic processes

Structural VAR Analysis in a Data-Rich Environment

A Factor-Augmented VAR for Regional Analysis

Empirical approaches in public economics

MFx Macroeconomic Forecasting

NBER WORKING PAPER SERIES ARE MORE DATA ALWAYS BETTER FOR FACTOR ANALYSIS? Jean Boivin Serena Ng. Working Paper

Formulating, Estimating, and Solving Dynamic Equilibrium Models: an Introduction. Jesús Fernández-Villaverde University of Pennsylvania

FE670 Algorithmic Trading Strategies. Stevens Institute of Technology

PRINCIPAL COMPONENTS ANALYSIS

1. Introduction. Hang Qian 1 Iowa State University

1.2. Structural VARs

Discussion of "Noisy News in Business Cycle" by Forni, Gambetti, Lippi, and Sala

Transcription:

Factor models March 13, 2017

Factor Models Macro economists have a peculiar data situation: Many data series, but usually short samples How can we utilize all this information without running into degrees of freedom problems? Factor models is one approach. We will focus on what Stock and Watson (2010) call second generation non-parametric factor models Today: Principal components and FAVARs Based on Stock and Watson (2010) and Bernanke, Boivin and Eliasz (2005).

Factor models Dynamic factor model split data into a low dimensional dynamic component and a transitory series specific (idiosyncratic) component Underlying assumption: A few common factors can explain most of the variation in many different time series Factor models is one approach to so-called dimension reduction that sometimes help in estimation (and forecasting)

State space models Factor models are a special case of state space models F t (r 1) Y t (N 1) = AF t 1 + u t = W F t + v t (N r) (r 1) where N >> r

Factor models What are the factors? In most cases, there is no economic interpretation: The factors are statistical constructs that have no deeper meaning beyond their definitions In some context the factors may correspond to the some combination of state variables in a DSGE model (but one needs to be careful) This has not stopped people from labeling factors: Real and nominal factors (Ng and Ludvigson JoF 2009) Level, slope and curvature (Large literature on bond yields)

When does it work in theory? For the system F t (r 1) Y t (N 1) = AF t 1 + u t = WF t + v t we need that 1. N 1 W W D W where D W is an r r matrix of rank r as N 2. max eig(e (v t v t)) c < Condition (1) ensures that factors affect all observables, and that the observables span the factors. Condition (2) ensures that the measurement errors in individual series cancel as the number of series is increased.

When does it work in practice? Can we from just observing Y t tell whether a large data set can be represented with a factor structure? Yes: Scree plots (informal but useful)

Scree plots Uses that E (v t v t) << E (Y t Y t ) implies a particular structure of E (Y t Y t ) if N >> r Do eigenvalue-eigenvector decomposition of (normalized) sample covariance E (Y t Y t ) E ( Y t Y t ) = W ΛW where W contains the eigenvectors of E (Y t Y t ) and Λ is a diagonal matrix containing the ordered eigenvalues and where the eigenvectors are orthonormal so that WW = I.

7 6 Good scree plot 5 4 Pathological scree plot 3 2 1 0 1 2 3 4 5 6 7 Figure: Good and bad scree plot

Choosing the number of factors There are several approaches: Visual inspection of the scree plot The most common and usually sufficiently accurate method Formal test of largest ratio of two adjacent eigenvalues Identifies the sharpest kink in the scree plot. Information criteria Similar to likelihood ratio tests: Cost of better fit with more factors traded against risk of over-parameterization Visual inspection of scree plots will do it for us

An example: Bond yields The data: Use Fed Funds Rate, 3, 12, 24, 36, 48, 60 month bond yields

14 12 10 8 6 4 2 0-2 -4-6 0 100 200 300 400 500 600 Figure: Bond yield data

Step 1: Normalize the time series Normalize variances ŷ n,t = y n,t Ey n,t y n,t This is done to ensure that factors structure is not sensitive to unit of measurement Example: GDP measured in Euros and Pesetas

4 3 2 1 0-1 -2 0 100 200 300 400 500 600 Figure: Normalized Bond yield data

Step 2: Eigenvalue decomposition of covariance matrix EY t Y t = Σ y = W ΛW Eigenvalue decomposition of covariance matrix in MatLab [W, Λ] = eig(σ y ) gives Λ with eigenvalues in ascending or descending order depending on the properties of Σ y. This can be confusing, since in the literature the first eigenvalue usually means the largest eigenvalue

7 6 5 4 3 2 1 0 1 2 3 4 5 6 7 Figure: Scree plot

Step 3: Get the factors Since Ŷ t = WF t and W 1 = W we can get the factors from F t = W Ŷ t The three top rows of F t contains the principal components (i.e. the factors) associated with the three largest eigenvalues.

25 20 15 10 5 0-5 -10-15 0 100 200 300 400 500 600 Figure: Time series of (first) three factors

Let s check how we are doing If three factor model is a good representation of the data, three factors should be able to fit the data well Ŷ t = WF t = [ ] w 1 w r f 1,t Let s plot the fitted values using only the first factors Ŷt fit3 = [ ] f 1,t w 1 w 2 w 3 f 2,t f 3,t. f r,t

4 3 2 1 0-1 -2 0 100 200 300 400 500 600 Figure: Fit of Federal Funds Rate using only 1 st PC

4 3 2 1 0-1 -2 0 100 200 300 400 500 600 Figure: Fit of Federal Funds Rate using 1 st and 2 nd PC

4 3 2 1 0-1 -2 0 100 200 300 400 500 600 Figure: Fit of Federal Funds Rate using 1 st, 2 nd and 3 rd PC

Step 4 Estimate the dynamic evolution of the factors This can be done OLS so that A = F 3,t = AF 3,t 1 + u t F 3,t [ f 1,t f 2,t f 3,t ] [ T T ] 1 F 3,t F 3,t 1 F 3,t 1 F 3,t 1 t=2 t=2

What have we achieved? We now have an estimated model for the dynamics of Ŷt Ŷ t = [ w 1 w 2 w 3 ] F3,t F 3,t = AF 3,t 1 + u t where we only estimated 15 + 7x3 = 36 parameters (W, A and Eu t u t) Compare this with the 49 + 28 = 77 parameters of a 7 variable VAR.

Can we interpret the factors? Not really, but they have been given names that are suggestive for their effect on the yield curve. Plot the columns of [ w 1 w 2 w 3 ]

0.8 0.6 0.4 0.2 0-0.2-0.4-0.6-0.8 1 2 3 4 5 6 7 Figure: Factor loadings (Level, slope and curvature)

What can we do with a factor model? Forecasting FAVARS

Forecasting with factor models We can produce s period forecasts for all N variables by using E [Y t+s F t ] = WA s F t Advantages: Dimension reduction often improves out-of-sample forecasting No degrees of freedom problems

-0.2-0.4-0.6-0.8-1 -1.2-1.4-1.6 Period forecast is made -1.8-2 450 500 550 600 Figure: Actual and forecasted bond yields from factor model (solid) and 7 dimensional VAR(1) (dottted)

Warning: Eye-balling data is not always informative... Factor structure in bond yields is obvious from looking at bond yield data 14 12 10 8 6 4 2 0-2 -4-6 0 100 200 300 400 500 600 This is not always the case, especially for macro data Example: Australian Macro data (15 series)

3 2 1 0-1 -2-3 0 20 40 60 80 100 120 Figure: Australian Macro data (15 series)

12 10 8 6 4 2 0-2 0 5 10 15 Figure: Scree plot for Australian Macro data (15 series)

FAVARS: Combining large data sets with identifying assumptions Bernanke, Boivin and Eliasz (QJE 2005) Measuring the effects of monetary policy: A Factor Augmented Vector Autoregressive (FAVAR) approach Investigate the effects of a monetary policy shock Use more information than what is possible in SVAR Degrees of freedom issues for large N/T Avoid price puzzle IRFs can be computed to more variables

Consider the model FAVAR implementation [ Ft r t ] [ Ft 1 = Φ r t 1 ] + v t where F t are factors constructed from some macroeconomic variables of interest Y t. The basic premise is that the factors F t help describe the dynamics of the variables of interest Y t. Strategy: 1. Find the factors 2. Estimate reduced form FAVAR 3. Identify the the effects of a policy shock using standard techniques (contemporaneous restrictions)

Step 1: Finding the factors We want the factors to capture information that is orthogonal to r t Start by regressing Y t on r ṱ Y t = βr t + υ t The factors F t can then be constructed as the principal components of the residuals υ t

Step 2: Estimate the reduced form of the FAVAR The reduced form of the FAVAR can be found by estimating [ ] [ ] Ft Ft 1 = Φ + v r t r t t 1 by OLS.

Step 3: Identify shock to r t With r t ordered last, this can be done using Cholesky decomposition of errors covariance Ω = (T 1) 1 ([ F t ([ Ft r t ] Φ r t [ Ft 1 r t 1 ] [ Φ Ft 1 ]) r t 1 ]) so that we can recover A 0 and C in [ ] Ft A 0 r t = A 1 [ Ft 1 r t 1 ] + Cε t : ε t N(0, I )

Step 3: Identify shock to r t To compute the impulse response of the variables in Y t to identified shock, use Y t+s ε r t = [ W β ] Φ s C r since Y t+s = WF t+s + βr t+s

Summing up factor models Dynamic Factor Models Dimension reduction: Suitable when large number of time series are available that share a lot of common variation Feasible when data sets are tall, i.e. with many time series but relatively short samples Good record in forecasting Can be combined with identifying assumptions to estimate effects of structural shocks on all the variables in the sample Implementation Scree plots can be used to check if factor structure is appropriate Easy to estimate: Eigenvalue decomposition of covariance matrix + OLS

That s it for today.