Aller au contenu principal

Cookies sur Macro by Mark.Nous utilisons des cookies essentiels pour la connexion, la langue et la sécurité. Avec votre accord, nous ajoutons des cookies optionnels de préférences, d’analyse et de mesure publicitaire avec le pixel Meta (Facebook). Lisez notre politique relative aux cookies.

Macro by MarkMacro by Mark
  • Accueil
Chargement…
Chargement…
← Modèles
MacroConceptsPolitiqueModèles

Dynamic factor model

Extracts a small number of latent factors from many macro indicators and lets those factors drive a current-quarter read.

Vue d’ensembleGraphiqueMathématiquesRéférences

How do you extract the common business-cycle signal from a large panel of economic indicators?

Background

Macroeconomic datasets contain hundreds of time series - output measures, employment, prices, financial indicators, surveys, trade flows - that all respond to a small number of underlying shocks: aggregate demand, aggregate supply, monetary policy, global risk appetite. The dynamic factor model (DFM) formalizes this observation. A small number of latent factors (typically 1-5) drive the co-movement across the entire panel. Each observed variable is a linear combination of these common factors plus an idiosyncratic (variable-specific) component. The factors are unobserved; they are inferred from the cross-sectional covariance structure of the data.

Geweke (1977) and Sargent and Sims (1977) introduced dynamic factor analysis to macroeconomics. Stock and Watson (1989, 2002a, 2002b) developed the modern dynamic factor framework used in applied work today. Their key innovation: when the cross-section nnn is large (n>20)(n > 20)(n>20), the factors can be consistently estimated by principal components of the data matrix, even without specifying the factor dynamics or the idiosyncratic error structure. This 'large nnn, large TTT' asymptotic framework made factor models practical for panels of 100-200 variables without requiring full maximum likelihood estimation.

The state-space representation (Doz, Giannone, Reichlin 2011) casts the DFM as a Kalman filter problem: factors follow a VAR in the state equation, and observed variables are noisy linear projections of the factors in the observation equation. The Kalman filter handles missing data, mixed frequencies, and ragged edges naturally. The New York Fed's nowcasting model and the ECB's real-time factor model both use this state-space approach.

DFMs dominate macroeconomic forecasting competitions. Stock and Watson (2002b) showed that diffusion-index forecasts built on factors extracted from a 215-predictor panel beat univariate benchmarks for key U.S. macro aggregates at horizons of 1-24 months. The factor-augmented VAR (FAVAR, Bernanke, Boivin, Eliasz 2005) combines extracted factors with policy variables in a VAR to identify monetary policy effects in a data-rich environment. Central banks worldwide - the Fed, ECB, Bank of Canada, Reserve Bank of Australia - maintain DFM-based forecasting and monitoring systems.

Connections to explore

Math ↗The structure and its conditions, step by step.References ↗Academic sources and guidance for using the model.

How the Parts Fit Together

ft\mathbf{f}_tft​

Latent factor vector

The r x 1 vector of unobserved common factors at time t. These capture the co-movement across the n observed variables.

The input is a T x n panel of stationary time series, typically standardized to zero mean and unit variance, with rows as dates and columns as variables. The panel contains variables from multiple economic categories: output/production, employment/labor, prices/wages, interest rates, exchange rates, money/credit, surveys, trade. The cross-section dimension n ranges from 20 (small DFM) to 200+ (large DFM). Each variable is classified by category and transformation (level, first difference, log difference) to ensure stationarity.

The model separates each variable into two components: a common component driven by rrr latent factors, and an idiosyncratic component specific to that variable. The common factors follow a VAR(p)\text{VAR}(p)VAR(p) in the state equation: ft=A1ft−1+…+Apft−p+ηtf_t = A_1 f_{t-1} + \ldots + A_p f_{t-p} + \eta_tft​=A1​ft−1​+…+Ap​ft−p​+ηt​. The observation equation links each variable to the factors: xi,t=λi′ft+ei,tx_{i,t} = \lambda_i' f_t + e_{i,t}xi,t​=λi′​ft​+ei,t​, where λi\lambda_iλi​ is the factor loading for variable iii. The idiosyncratic errors ei,te_{i,t}ei,t​ can be serially correlated (dynamic idiosyncratic) or white noise (exact factor model).

Estimation follows one of two paths. (A) Principal components: with XXX stored as T×nT \times nT×n, compute X′X/TX'X/TX′X/T, take the first rrr eigenvectors as the factor-loading space, and extract factors as f^t=Λ^′xt/n\hat{f}_t = \hat{\Lambda}' x_t / nf^​t​=Λ^′xt​/n. Equivalently, the factor scores are the first rrr principal components of the T×nT \times nT×n data matrix. (B) State-space/Kalman filter: specify the full state-space model (state equation + observation equation), estimate parameters by EM algorithm or quasi-maximum likelihood, and extract factors by the Kalman smoother. Path (A) is fast and requires no distributional assumptions; path (B) handles missing data and mixed frequencies but requires iterative estimation.

Assumptions

Testable

Approximate factor structure

As n grows, the r largest eigenvalues of the n x n covariance matrix diverge (they grow with n), while all remaining eigenvalues stay bounded. The common component explains a non-vanishing fraction of the total variance in the cross-section.

If violated:If the factor structure is weak (eigenvalues grow slowly), principal component estimates of the factors are inconsistent. A weak factor loads on only a subset of variables; it can be missed by methods that assume pervasive factors.

Testable

Stationarity

All variables in the panel are covariance stationary after appropriate transformations (differencing, log transformation). The factor dynamics are stable (companion matrix eigenvalues inside the unit circle).

If violated:Non-stationary variables create spurious factor estimates: unit-root-driven trends dominate the first principal component regardless of economic content.

Testable

Limited cross-sectional dependence in idiosyncratic errors

The idiosyncratic errors ei,te_{i,t}ei,t​ are weakly cross-sectionally correlated. Strong clustering (e.g., all energy variables have correlated idiosyncratic shocks) violates the approximate factor model assumptions.

If violated:Strong idiosyncratic cross-correlation inflates the eigenvalues of the covariance matrix, leading the number-of-factors criteria (Bai-Ng) to overestimate r.

Testable

Correct number of factors

The number of common factors r is correctly specified. Bai-Ng IC criteria, the Onatski (2010) test, or the Ahn-Horenstein (2013) eigenvalue ratio test provide data-driven guidance.

If violated:Too few factors: the omitted factor's variance is absorbed into the idiosyncratic errors, creating cross-correlated residuals and biased factor-augmented regressions. Too many factors: noise is elevated to factor status, adding estimation variance without improving the common component.

Maintained

Linearity of the factor structure

Each variable is a linear function of the common factors. No threshold effects, no nonlinear factor loadings.

If violated:Nonlinear dependence on the factors (e.g., financial variables respond asymmetrically to positive vs. negative factor realizations) is not captured. Nonlinear factor models exist but are computationally demanding and rarely used in macro practice.

Testable

Balanced panel or correctly handled missing data

The panel is either balanced (no missing observations) or missing data is handled by the EM algorithm / Kalman filter. Dropping variables with missing data instead of imputing can bias factor estimates if missingness is non-random.

If violated:Listwise deletion of variables with missing data reduces the effective cross-section and can eliminate informative series. The EM algorithm iteratively imputes missing values using the current factor estimates, then re-estimates factors.

Applications

The New York Fed maintains two distinct factor-model products. The Weekly Economic Index (WEI, Lewis, Mertens, and Stock) extracts a single common factor from roughly ten weekly series to track real activity at weekly frequency. Separately, the NY Fed Staff Nowcast (Bok et al. 2018) is a dynamic factor model that extracts common factors from a panel of 37 monthly and quarterly indicators covering output, labor, housing, consumption, surveys, and financial conditions. The nowcast model operates in state-space form with the Kalman filter, handling mixed frequencies (monthly and quarterly data) and ragged edges (different publication dates) within a unified framework. The extracted factor becomes a coincident economic index and a direct input to the GDP nowcast.

The FAVAR (Bernanke, Boivin, Eliasz 2005) is the dominant tool for studying monetary policy transmission in a data-rich environment. The idea: extract factors from a large panel (100+ macro and financial variables), then include the extracted factors alongside the federal funds rate in a VAR. Structural identification (Cholesky, sign restrictions) applied to the VAR yields impulse responses of every variable in the panel to a monetary policy shock. The FAVAR avoids the dimensionality problem of including all 100+ variables directly in the VAR.

The ECB's area-wide model and the Eurosystem's real-time forecasting infrastructure use DFMs to handle the heterogeneous data availability across euro area member states. Some countries publish GDP estimates earlier than others; some indicators are monthly in one country and quarterly in another. The state-space DFM imputes missing values, aggregates across countries, and produces a euro area factor that tracks aggregate economic activity. The Banbura and Modugno (2014) implementation is the methodological backbone.

DFMs struggle when the data-generating process changes structurally: the COVID-19 pandemic produced factor estimates that were orders of magnitude larger than any historical observation, rendering the Gaussian state-space model's forecast intervals meaningless. The linear factor structure also misses sector-specific dynamics: a shock concentrated in one sector (e.g., oil prices affecting energy production) may not be captured by factors estimated from the full panel. Factor-augmented models with sector-specific factors (Kose, Otrok, Whiteman 2003) partially address this at the cost of additional complexity.

Extensions and open questions

Variants

  • Static factor model: factors are extracted from the contemporaneous cross-sectional covariance, with no dynamics specified. Estimated by principal components. The simplest version.
  • Dynamic factor model (state-space): factors follow a VAR in the state equation. Estimated by Kalman filter + EM algorithm or quasi-MLE. Handles missing data and mixed frequencies.
  • FAVAR (factor-augmented VAR): extracted factors plus policy variables in a VAR. Used for structural identification of policy shocks in a data-rich environment.
  • Generalized dynamic factor model (Forni, Hallin, Lippi, Reichlin 2000): uses the spectral density matrix to separate common and idiosyncratic components. More general than the state-space version but harder to implement.
  • Time-varying factor model: factor loadings λi(t)\lambda_i(t)λi​(t) or factor dynamics Aj(t)A_j(t)Aj​(t) change over time. Captures structural breaks and evolving economic relationships at heavy computational cost.

Open questions

  • How many factors drive the macroeconomy? The Bai-Ng criteria typically select 2-6 for large U.S. panels. But the answer depends on the panel composition and variable transformations. There is no consensus on whether 'the' correct number is 2, 4, or 6.
  • Structural identification of factor shocks: the latent factors are identified only up to rotation (PCA identifies them up to an orthogonal rotation). Giving factors economic names (demand shock, supply shock, financial shock) requires additional restrictions. Different rotation schemes produce different structural interpretations.
  • Weak factors: some economically important factors (e.g., a housing-sector factor) load on only a small subset of variables. Standard PCA-based methods estimate them poorly because they do not produce diverging eigenvalues. Targeted-predictor factor estimation (Bai and Ng 2008) addresses this but is not yet standard.

Keep going

Read next

Continue with a related concept, model, or example.

Empirical model

ARDL / Bounds Testing

a contrasting take on Dynamic Factor Model

Contrast it →
Empirical model

BVAR

a contrasting take on Dynamic Factor Model

Contrast it →

Poursuivre l’apprentissage

Concepts

  • Output and income→
  • Business cycles→
  • Labor market structure→

Politique

  • Monetary policy→
  • Fiscal policy→

Modèles

  • Bridge model→
  • MIDAS→
  • VAR→
Macro by Mark
Aide
Politique de confidentialitéConditions d’utilisationÉthique et conformité

© 2026 Mark Jayson Nation LLC