Cinelli Hazlett 2020 - Planted Confounders and Bayesian Sketch
Summary
The OVB formula is an exact algebraic identity, so it can be verified by planting a synthetic confounder of known partial values and comparing the formula’s predicted adjusted estimate with the regression that includes it. Putting priors on the two partial turns the identity into a Bayesian sensitivity analysis (a posterior over given a prior over confounder strength). This note records the check, a PyMC sketch (untested), and how the idea maps to the job-training and ad-targeting examples.
Overview
This is a synthesis note (concept note) built on the paper’s formulas; the simulation and code are this vault’s own and the PyMC model is untested.
Main Content
Planting a confounder of exact strength (E107 pattern)
Procedure for a benchmark with a known answer (for instance an experiment or a hidden measured covariate):
- Run the restricted regression to get , , and the residuals , .
- Construct a synthetic whose residualised version has target correlations with and with (e.g. , then solve for coefficients).
- Refit with included; compare with the formula .
Simulation check
Data: , , , , true effect 0. Restricted . Realised , . Formula bias ; actual (agree to 15 digits). The identity holds because it is algebra, not a model.
Robustness value as a pre-registered benchmark
For a job-training or lift regression, compute and first, then ask which observed covariate has comparable partial values. A recurring check in observational benchmarks against experiments (LaLonde NSW vs CPS; see also Experimental Benchmarks for Observational Ad Measurement): hide a measured covariate, compute the bound with , then verify the true shift stays inside it. By the bounding theorem the shift of the hidden-covariate estimate is bounded by the formal evaluated at .
Bayesian version: a prior over confounder strength
Treat as unknown sensitivity parameters with priors, and as
Given a posterior (or a full Bayesian regression’s posterior), the induced posterior for is a prior-dependent sensitivity analysis. Because are not identified by the data, their posterior equals their prior; only the resulting distribution of changes. This is the logic (and the honesty requirement) of the “unidentified parameters” discussion in Franks 2019 - Flexible Sensitivity Analysis Without Observable Implications - Overview.
# PyMC 5 sketch (untested): prior over confounder strength -> posterior over tau.
import numpy as np, pymc as pm
tau_hat, se, df = 0.097, 0.023, 783
with pm.Model() as m:
tau_res = pm.Normal("tau_res", tau_hat, se) # stand-in for regression posterior
# priors encode "no stronger than k x Female": Beta mass below the bound, here (0.12, 0.01)
r2_y = pm.Beta("r2_y", 2, 14) # mean ~ 0.125
r2_d = pm.Beta("r2_d", 1.5, 148) # mean ~ 0.01
direction = pm.Bernoulli("harmful", 0.5) # does Z hurt or help the estimate?
bias = pm.math.sqrt(r2_y*r2_d/(1-r2_d))*np.sqrt(df)*se
tau = pm.Deterministic("tau", tau_res - (2*direction-1)*bias)
pm.Deterministic("prob_tau_gt0", tau > 0)
idata = pm.sample(2000, tune=1000, chains=4, random_seed=0)Marketing reading
- Ad lift / propensity estimates (E101-E103): the omitted “hidden targeting” variable is a confounder of exposure and conversion; partial values answer “how much of the outcome and of delivery would targeting have to explain”.
- MMM: omitted drivers (seasonality shifts, distribution, promotions) of both spend and sales; the multi-confounder bound summarises them in one number. Experiments (lift tests) provide the benchmark for how large can plausibly be, similar in spirit to Gordon et al 2019 - Sensitivity to Unobservables and Bias-Reduction Ratio.
Examples
See the simulation above and the Darfur reproduction in Cinelli Hazlett 2020 - Darfur Application and Reporting.
Connections
- Propensity Score in Bayesian CI: Bayesian propensity analyses where can be given a prior.
- Sensitivity Analysis in Observational Studies: E-value, Rosenbaum bounds, copula approaches.
- Bayesian Estimation and Priors for MMM: priors that act as sensitivity assumptions.
See Also
Cinelli Hazlett 2020 - Making Sense of Sensitivity - Overview, Cinelli Hazlett 2020 - Informal Benchmarking Pitfalls and Related Methods