Loading…
Trusting the Untestable: Validation and Diagnostics for the Doubly Robust Models
LyftShima Nassiri
Summary
When randomized A/B tests are infeasible for evaluating partnerships or long-term effects, Lyft applies Augmented Inverse Propensity Weighting (AIPW) doubly robust models to estimate treatment effects from observational data. The quasi-experimentation platform mandates rigorous confounder selection prior to treatment exposure and adjusts for downsampling bias via propensity score conversions and outcome reweighting. When comparing AIPW against experimental ground truths, initial estimates understated effects because trimming extreme propensity scores removed key users and unobserved confounders persisted. To evaluate model health and external validity, the platform incorporates diagnostic scorecards featuring common support checks, Marginal Sensitivity Models, and covariate comparisons between trimmed and untrimmed cohorts.
Context
Lyft frequently encounters business scenarios where randomized A/B testing is impractical, including partnership rollouts, long-term effect tracking, post-launch policy evaluations, and biased experimental data. Because quasi-experiments lack the inherent unbiasedness of randomized trials, unobserved confounding, downsampling, and common support violations can severely distort treatment effect estimates.
Approach / What changed
Lyft deployed a quasi-experimentation platform using Augmented Inverse Propensity Weighting (AIPW) alongside diagnostic tools. The platform enforces pre-exposure confounder extraction via customizable SQL, applies propensity score corrections and outcome reweighting for downsampled groups, and provides diagnostic scorecards. Diagnostics include common support overlap histograms, Zhao et al.'s Marginal Sensitivity Model to bound unobserved confounding, and covariate comparison plots between trimmed and untrimmed cohorts.
Takeaways
- AIPW requires fitting an outcome model and a propensity score model, consistently estimating the true Average Treatment Effect as long as at least one of the two models is correctly specified.
- Random downsampling used to balance group sizes introduces bias that requires converting sample propensity scores to true population scores and uniformly rescaling outcome weights.
- Trimming extreme propensity scores to satisfy common support assumptions can exclude distinct user segments, reducing external validity unless trimmed and untrimmed covariates are compared and verified.
Related reading
Lyft ·
From Day 1 to Production: Building Lyft’s Analytics & Rides Intelligence Assistant as Onboarding…
Lyft developed Aria, an AI-powered assistant allowing approved employees to query ride analytics via natural language through a backend with LangGraph orchestration and SQL generation. However, Aria's user interface was limited to a Streamlit prototype that lacked standard service framework integration, Lyft authentication, and multi-user scalability. To resolve these limitations, a new engineer built a production-grade web client from scratch using Lyft's internal Node.js framework and Next.js as a three-week onboarding assignment. The implementation involved configuring Envoy routing, resolving authentication plugin incompatibilities, debugging service connectivity with Grafana, and managing interface state with an XState state machine. Aria was successfully hardened and launched into production, expanding natural language analytics access across the company.
SagarbaroniaLyft ·