Unit 2 of 11 · about 3 hours · explain
SUTVA, interference and treatment leakage
A clean user-level randomization can answer the wrong rollout question. Control users may benefit, lose opportunities or share resources with treated users.
You'll be able to
- Distinguish a direct assignment contrast from the effect of a full rollout when users interact.
- Choose a saturation or cluster design and state its remaining interference assumptions.
- Identify treatment leakage through shared models, training data and serving infrastructure.
Covers
Read
In this order, only the parts listed
0 of 3 done
- MIT 14.310x: displacement and saturation14.310x Lecture 22 - Experimental Design
Spring 2023, Lecture 22, Experimental Design, slides 10 to 20; slide 15 gives the two-step assignment
- Eckles, Karrer and Ugander: the global effectDesign and Analysis of Experiments in Networks: Reducing Bias from Interference
Journal of Causal Inference 2017 author version, Section 1, Introduction, Eq. 1
Stop before Section 1.1. The network model and simulation results are depth, not required.
- Microsoft ExP: infrastructure leakagePatterns of Trustworthy Experimentation - Pre-Experiment
Pre-Experiment Stage: Review Engineering Design Choices to Avoid Bias
Focus on
- No interference and well-defined treatment versions are distinct parts of SUTVA. Under interference, write potential outcomes as functions of the assignment vector, not just the user's own assignment.
- A saturation design randomizes treatment probabilities across groups and assignment within groups. Untreated users in partially treated groups reveal spillovers relative to pure-control groups, under the stated between-group isolation assumption.
- Cluster assignment can move exposure closer to a full rollout but trades bias against variance. It is not automatically unbiased for the global effect; cross-cluster edges and too few independent clusters still matter.
- Inventory shared caches, learned features and retraining inputs. A treatment-trained component reaching control is contamination even if assignment identifiers never change.
Common mistakes · 3
- Calling cluster assignment a universal interference repair. Cluster boundaries need a defensible exposure model.
- Counting the user's own assignment in the peer fraction. That changes the direct effect in this generator.
- Reading Microsoft's pre-experiment claim of an unbiased cluster estimate without conditions. Eckles explicitly studies bias reduction, not universal elimination.
Try it yourself
Closed-book, before checking anything
rng = np.random.default_rng(2026). Permute 200 copies each of saturation probabilities 0, 0.5 and 1 across 600 groups of 20 users. Draw independent binary assignments with each group's probability, using rng.binomial(1, q[:, None], size=(600, 20)). Let each outcome be own assignment plus twice the fraction of the other 19 group members assigned treatment. There is no noise or cross-group interference. Derive expected direct and spillover contrasts of 1 in the half-saturation groups, and a full-rollout contrast of 3. Check the first two within 0.1 and the last exactly. Explain why the within-group treated-control comparison misses part of the rollout effect.Quiz yourself
Answer first, then mark it. Missed ones go to Review.
0 got · 0 missed
1.Why is the global effect 3 rather than 1 in this generator?Answer
Treating everyone changes own assignment by 1 and the treated-peer fraction by 1. Both pathways contribute, giving .
2.What does an untreated user in a half-saturation group reveal?Answer
Compared with untreated users in pure-control groups, the user reveals exposure to treated peers. The interpretation requires the groups to be isolated and comparable through the randomized saturation assignment.
3.Does stable assignment prevent leakage from retraining?Answer
No. If treatment interactions update a shared model, control outcomes can change without any user's assignment changing. Assignment logs alone cannot rule this out.
You're done when
The saturation checks pass and you can explain which contrast your design identifies, which it misses, and how shared infrastructure could invalidate it.
Only when you can do this without notes.
Leads to
Notes
Resources · 3 for this unit, 14 more in the section
- 14.310x Lecture 22 - Experimental DesignMIT OpenCourseWare · required
Read slides 2 to 4 (randomization unit, stratification, clustering) and 10 to 20 (displacement effects and two-stage saturation designs: 235 agencies in 47 quintuplets assigned 0% to 100% saturation). Simulate a saturation design with spillovers. Slide 33's "only 28%" is an incremental coefficient, not an absolute receipt rate, and slides 7 to 9 have removed diagrams.
- Patterns of Trustworthy Experimentation - Pre-ExperimentMicrosoft Research ExP · required
Use Forming a Hypothesis and Selecting Users, the randomization-unit and pre-experiment bias checks, Set Up Counterfactual Logging (trigger eligibility for users who were or would have been affected, not both potential outcomes), shared infrastructure and gradual rollout. Specify assignment, exposure, joins, exclusions and the decision before outcomes exist. Rerandomization needs a predeclared design, never seed shopping after outcomes.
- Design and Analysis of Experiments in Networks: Reducing Bias from InterferenceEckles, Karrer and Ugander, Journal of Causal Inference 2017 · support
Read Section 1 and Eq. 1: the global effect contrasts everyone treated with everyone in control, and outcomes depend on the whole assignment vector. Cluster assignment trades bias for variance and is not automatically unbiased for the global effect; it also needs enough independent clusters for inference. The rest is depth.
Also in this section
- Causal Inference: What IfMiguel Hernan and James Robins · primary
Use the August 19, 2026 revision (printed pages): 3.6 target trials (pp. 41 to 46), 8.4 to 8.5 selection bias, 12.1 to 12.3 inverse probability weighting with Fine Point 12.2 on structural versus random positivity violations (p. 169), 13.1 to 13.5 standardization and its validity conditions, and 15.4 propensity methods. Chapters 1 to 3 and 6 to 8 are lookup for core identification. Compare weighting and standardization estimates; a small difference does not prove a correct model, and failed overlap should narrow the estimand.
- Introduction to Causal Inference - Chapter 8Brady Neal · required
Read Chapter 8, Unobserved Confounding: Bounds and Sensitivity Analysis (pp. 73 to 85). Proposition 8.8's bias formula comes from a noiseless linear example; for practice, vary a hidden confounder in a noisy simulation, derive the matching bias expression and report the tipping point where the conclusion changes. Chapters 12 to 14 are unfinished placeholders.
- Patterns of Trustworthy Experimentation - During ExperimentMicrosoft Research ExP · required
Use Measure Holistically and Frequently, alerts and auto-shutdown, and the static and date segments. Two claims overstate: "as long as the overall test doesn't have an SRM, each segment slide will be SRM-free" (opposite subgroup defects can cancel) and that stable segments "guarantee" trustworthy insights. It asks you to account for peeking without giving a boundary, so predeclare a fixed-horizon success rule and separate harm stops.
- Patterns of Trustworthy Experimentation - Post-ExperimentMicrosoft Research ExP · required
Use the post-experiment checks as the decision checklist: SRM and A/A results, triggering and dilution, variance reduction, capping, date and market slices, network effects and experiment interactions, before reading the treatment effect.
- Diagnosing Sample Ratio Mismatch in A/B TestingMicrosoft Research · required
Gate every effect on the SRM test (chi-square against the planned allocation; Microsoft's p < 0.0005 is a platform policy). Build a count table from assigned to exposed, logged, joined and triggered, inject one stage-specific defect and find where counts first diverge; the MSN bot-filter case shows treatment-dependent filtering reversing a result. A passing check does not validate outcomes, and symmetric loss can preserve the ratio.
- Improving the Sensitivity of Online Controlled Experiments by Utilizing Pre-Experiment DataDeng, Xu, Kohavi and Walker, WSDM 2013 · required
Read 3.1 to 3.3 (stratification, control variates, their connection) and 4.1 to 4.3 (covariate choice, missing pre-period data, covariates beyond the pre-period). Adjust with ; variance falls by the factor . X must be unaffected by treatment, and the abstract's "about 50%" is a Bing result. Simulate the variance reduction and keep new users with a stated missing-history rule.
- Trustworthy Online Controlled Experiments: Five Puzzling Outcomes ExplainedKohavi et al., KDD 2012 · required
Read 3.3 (initial effects appear to trend), 3.4 (experiment length and power) and 3.5 (carryover: seven days of A/A, 47 days of A/B and over three weeks of follow-up before the effect faded). Separate novelty from carryover, keep bucket histories and justify a washout; three weeks is one case, not a rule. Plot noncumulative daily cohorts, since cumulative plots drift toward zero mechanically.
- DoWhy 0.14 - Simple ExamplePyWhy · support
Pin
dowhy==0.14and follow the graph-first interface:CausalModel(data=..., treatment=..., outcome=..., graph=...),identify_effect(),estimate_effect(..., method_name="backdoor.linear_regression"), then the refuters. A large refuter p-value means no discrepancy under that perturbation, not "no unmeasured confounding". Include one scenario built to fail: an omitted confounder or a placebo treatment. - Causal Inference for the Brave and TrueMatheus Facure · support
A Python alternative for practice: Chapter 10 Matching (Matching Bias, The Curse of Dimensionality) and Chapter 11 Propensity Score (Propensity Weighting, Standard Error, Common Issues), with overlap diagnostics; Chapter 19 (evaluating causal models with cumulative gain on randomized data) is depth. Part II is the author's labelled work in progress.
- Diagnosing Sample Ratio Mismatch in Online Controlled Experiments: A Taxonomy and Rules of Thumb for PractitionersFabijan et al., KDD 2019 · support
The root-cause taxonomy behind the article: 2.3.1 (definition), Section 5 (assignment, execution, log processing, analysis, interference), Figure 5 and Section 6 (investigation rules). Use it to name falsifiable causes; do not read both versions in full.
- A/B Testing Intuition BustersKohavi, Deng and Vermeer, KDD 2022 · support
Read Sections 2 and 5: 3/82 against 12/75 conversions reported as a 337% lift, Fisher exact p = 0.013, and observed power determined by the p-value. Report counts, absolute effects and intervals, and replicate surprising selected wins. A false-positive probability needs a prior success rate and power, not one p-value.
- Seven Pitfalls to Avoid when Running Controlled Experiments on the WebCrook, Frasca, Kohavi and Longbotham, KDD 2009 · reference
Only for its failure examples: 5.2 (variance of non-per-user metrics), 6 (Simpson's paradox from changing ramp allocations) and 8.1 to 8.4 (audits and instrumentation). Resample the randomized unit, not page views.
- Always Valid Inference: Continuous Monitoring of A/B TestsJohari, Pekelis and Walsh · reference
Two definitions only: v3 Definition 1 (always-valid p-values over any stopping time) and Definition 2 (confidence coverage at a stopping time). This stage's required route is a predeclared fixed horizon with separately declared harm stops; never present a harm-stopped estimate as an unselected fixed-horizon result. Full always-valid infrastructure comes later.
- Causal Inference: The Mixtape (second edition, The Remix)Scott Cunningham · optional
The live site is the work-in-progress second edition; do not mix first-edition chapter numbers. Use 5.10 (the National Supported Work exercise: matching and weighting against an experimental benchmark, with trimming and falsification) and, for an optional quasi-experiment, Chapter 9 (9.3 parallel trends and no anticipation, 9.5 event studies, 9.6 falsification). The code is R and Stata.