liveBook · Manning

FWL strategy

As explained in Causal Inference for Data Science

The FWL strategy estimates a regression coefficient by removing confounder-predicted components from both the treatment and outcome and regressing the resulting residuals on each other.

The FWL strategy estimates a treatment effect by removing the confounder-predicted components from both treatment and outcome, then regressing the two residuals on each other. section 8.1.1

A practical workflow is:

  • Predict the outcome from the confounder and retain its residuals. section 8.1.1
  • Predict the treatment from the confounder and retain its residuals. section 8.1.1
  • Regress outcome residuals on treatment residuals; the coefficient matches linear regression controlling for the confounder, apart from rounding. section 8.1.1

Synthetic treatment-effect data

With a simulated treatment effect of 5, the adjusted regression estimates 4.9473069, while the FWL residual regression estimates 4.947307. section 8.1.1

How Causal Inference for Data Science covers it

How deep it goes
Demonstrates residual construction and numerical equivalence in a simulated linear setting, without extending beyond that example.
Examples
Uses simulated treatment, outcome, and confounder data with R and Python implementations.
What you can do after
Apply the strategy in R or Python to reproduce an adjusted treatment coefficient from residualized variables.
How it connects
Connects confounders, linear regression, residuals, and the Double Machine Learning strategy.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Causal Inference for Data Science. The section links point to the parts of the book it draws on.