Causal Inference Questions
Establishing cause-and-effect from observational and experimental data. Covers correlation versus causation, confounding, treatment-effect estimation, and quasi-experimental methods such as difference-in-differences, matching, and instrumental variables. Includes incrementality reasoning when true randomization is not possible.
Implement an inverse probability of treatment weighting (IPTW) estimator in Python to estimate the Average Treatment Effect. Given a DataFrame with a binary 'treatment' column, a numeric 'outcome' column, and covariates X1..Xn: compute stabilized weights, estimate the ATE, and return a bootstrap 95% confidence interval using 1000 bootstrap resamples. Comment on weight clipping and one diagnostic you would run.
A colleague proposes using SHAP values or feature importance from a predictive model to generate causal hypotheses about why the model is failing on certain inputs. Explain two specific pitfalls of treating feature importance as causal evidence, and propose a mitigation for each.
Describe an interrupted time series (ITS) design to estimate the causal effect of a sudden, universal policy change (for example, removing a free tier) on a daily metric. What diagnostics and sensitivity checks would you run to increase confidence that the observed break is really attributable to the change?
Discuss causal machine learning approaches for heterogeneous treatment effect estimation, such as causal forests and double/debiased machine learning (DML). Explain the identification assumptions, how cross-fitting and orthogonalization (the Neyman-orthogonal score) reduce bias from flexibly estimated nuisance functions, and what to watch for when tuning and interpreting the results.
Define the potential-outcomes (counterfactual) framework in plain language: what are the two potential outcomes for a unit, and why can we never observe both? Explain how this framework guides forming a testable causal hypothesis, and why randomization is what lets us estimate the average of an otherwise-unobservable quantity.
Unlock Full Question Bank
Get access to all 49 Causal Inference interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.