Forecasting Algorithms for Causal Inference with Panel Data

Jacob Goldin, Julian Nyarko, Justin YoungEC 2024

TL;DR

This paper introduces SyNBEATS, a novel deep learning approach for causal inference with panel data that leverages both temporal (horizontal) and cross-sectional (vertical) information to improve counterfactual predictions. SyNBEATS significantly outperforms traditional methods like synthetic controls and two-way fixed effects, and is competitive with or superior to recent advanced techniques, offering a powerful new tool for social science research.

What Problem Does This Paper Address?

Estimating the causal effect of an intervention (like a new policy) using panel data is a fundamental challenge in social sciences. The core difficulty lies in estimating the "counterfactual" – what would have happened to the treated unit if it hadn't received the treatment. While existing methods like synthetic controls and two-way fixed effects attempt to impute this counterfactual, they often struggle with complex temporal dynamics or fail to fully exploit the rich information available in panel data. This paper addresses the limitation of existing forecasting models, which are typically designed for single time series and don't incorporate information from control units, by adapting a state-of-the-art forecasting algorithm (N-BEATS) to effectively use both horizontal and vertical data patterns for more accurate counterfactual imputation.

Methods

The authors adapt the N-BEATS (Neural Basis Expansion Analysis for Time Series) algorithm, a deep neural network architecture for time series forecasting, for causal inference. The key innovation is to treat the counterfactual imputation problem as a supervised learning task. SyNBEATS feeds not only the historical data of the treated unit (horizontal information) but also the contemporaneous outcomes of control units (vertical information) into the N-BEATS model. This allows the model to learn complex temporal patterns and cross-sectional relationships simultaneously. The model is trained on pre-treatment data to predict the counterfactual outcome for the treated unit in the post-treatment period.

Datasets

The paper evaluates SyNBEATS using three canonical panel data settings:

  1. Proposition 99 in California: Data on per capita cigarette sales in California and 38 control states from 1970 to 2000, used to estimate the effect of a cigarette tax increase.
  2. German Reunification: Data on per capita GDP for West Germany and 16 control countries from 1963 to 2003, used to estimate the economic impact of reunification.
  3. Simulated Stock Market Events: Data on stock returns for firms from 2009 to 2019, used to predict abnormal returns for simulated events.

Key Insights and Ideas

  • Leveraging Both Dimensions is Crucial: The paper strongly suggests that combining horizontal (time series of the treated unit) and vertical (contemporaneous outcomes of control units) information is key to SyNBEATS' superior performance. Excluding either significantly degrades accuracy.
  • Deep Learning for Causal Inference: This work demonstrates the power of adapting advanced deep learning forecasting models to address complex causal inference problems in social sciences, moving beyond traditional econometric approaches.
  • N-BEATS Architecture Advantage: The residual block structure of N-BEATS appears to be particularly effective at efficiently mining signal from limited data, making it suitable for the often sparse panel datasets in social science research.
  • Trade-off Between Accuracy and Consistency: While SyNBEATS offers high accuracy (low RMSE), it doesn't guarantee asymptotic consistency. The authors explore bias-correction techniques to address this, showing it can improve accuracy but sometimes at the cost of increased variance.

Key Results

  • Outperforms Traditional Methods: SyNBEATS consistently outperforms Synthetic Controls (SC) and Two-Way Fixed Effects (TWFE) across all tested datasets and prediction horizons (short-term and long-term). For example, in the Prop 99 data, SyNBEATS achieved a 54% improvement in RMSE over the second-best alternative for 1-year predictions.
  • Competitive with Modern Methods: SyNBEATS performs comparably or better than recent advanced methods like Matrix Completion (MC) and Synthetic Difference-in-Differences (SDID). It dramatically outperforms MC and is better in 6 out of 8 analyses compared to SDID.
  • Simulation Insights: Simulations show SyNBEATS' advantage diminishes with sparser data (fewer controls or shorter pre-treatment periods), highlighting the need for sufficient training data. SDID performs better when fixed effects strongly dominate the data-generating process.
  • Bias-Correction: Bias-corrected SyNBEATS can shift mean error closer to zero, but the trade-off with variance depends on the dataset.

Limitations and Future Work

  • Asymptotic Consistency: SyNBEATS, due to its flexible neural network architecture, does not inherently guarantee asymptotic consistency. While bias-correction is proposed, it involves a trade-off with variance.
  • Uncertainty Quantification: The paper focuses on prediction accuracy (RMSE) rather than quantifying the uncertainty of the resulting estimates with standard errors. The authors suggest adapting existing methods for SC-type estimators or using conformal inference for finite sample coverage guarantees.
  • Data Requirements: Simulations suggest SyNBEATS may require sufficient training data to realize its full potential, and its advantage may be less pronounced in settings dominated by strong unit fixed effects.
  • Future Work: The authors suggest exploring time-series cross-validation techniques for tuning SyNBEATS, which could potentially exacerbate overfitting and regularization biases, making bias-correction more valuable. Further research into uncertainty quantification is also a clear avenue.

Summary updated

BibTeX
@inproceedings{goldin2024forecasting,
  author = {Jacob Goldin and Julian Nyarko and Justin Young},
  title = {{Forecasting Algorithms for Causal Inference with Panel Data}},
  booktitle = {EC},
  year = {2024},
  doi = {10.1145/3670865.3673641},
}
Figure