Evaluating the effects of interventions
Evaluating an intervention means estimating how much of an observed change it caused: the difference between what happened and what would have happened without it (HM Treasury, 2026). That second outcome is never observed, so every estimate rests on a comparison and on assumptions about why the comparison is fair (HM Treasury, 2026). The main difficulties are checking those assumptions, which standard tests can miss, and deciding what can still be claimed when no fair comparison exists. A metric that moved in the right direction answers neither question; how metrics themselves mislead is covered in Performance metrics.
Observed change and causal effect
A before-and-after change shows what happened, not what the intervention did. Impact evaluation asks how far the changes can be attributed to the intervention, over and above what would have happened had it not taken place (HM Treasury, 2026). The imagined outcome without the intervention is called the counterfactual.
For a group of people rather than one person, a causal effect is a number that compares outcomes under different interventions. It measures how the distribution of the outcome (its average, or the share of people with a given result) changes when the group receives one intervention instead of another (Hernán & Robins, 2020).
Choosing a credible comparison
Every comparison rests on assumptions specific to its method. Collecting comparable data from an intervention group and a control group lets evaluators attribute a measured change to the intervention, subject to the assumptions of the method used (HM Treasury, 2026).
Random assignment, as in a randomized trial or an online A/B test, decides by chance who receives the intervention.
Observational studies, where people or units were not assigned by chance, can also identify causal effects, but only under extra assumptions. A conditionally randomized experiment is one in which assignment was as good as random among people with the same measured characteristics. If an observational study can be treated as one, methods such as weighting or standardization can recover the effect (Hernán & Robins, 2020).
Difference-in-differences is a common observational design. It compares the change over time in a group that received the intervention with the change in a group that did not. Its key assumption is parallel trends: without the intervention, the two groups’ outcomes would have moved in parallel.
Checking the assumptions
Pretrend tests Weak evidence: few or small studies support this
A standard check of parallel trends can pass when the assumption fails. Analysts often test whether the two groups followed similar trends before the intervention, called a pretrend test. Such tests may miss real departures from parallel trends (Roth, 2022).
Choosing the analysis according to whether the pretest passed can make matters worse. Conditioning on the pretest can increase the bias of the estimate and make confidence intervals cover the true value less often than they claim (Roth, 2022). A confidence interval is a range of effect sizes compatible with the data; a 95% interval should contain the true effect in 95% of repeated studies.
Spillovers in randomized experiments Weak evidence: few or small studies support this
Randomized experiments can be affected by spillovers, though the evidence here comes from one study. A spillover occurs when the treatment of one person changes another person’s outcome, for example when users who see a new feed affect what their contacts see or do.
In field experiments on LinkedIn’s feed, researchers detected spillovers in their second experiment once they applied a technique that reduced statistical noise (Saveski et al., 2017).
Reporting size and uncertainty
A p-value does not say how large or important an effect is. The American Statistical Association states that a p-value, or statistical significance, does not measure the size of an effect or the importance of a result (Wasserstein & Lazar, 2016). A p-value measures how surprising the data would be if the intervention had no effect.
For a yes-or-no outcome, report both the absolute and the relative effect, each with a confidence interval. The CONSORT guideline for reporting randomized trials recommends this whenever the primary outcome is binary (Hopewell et al., 2025). For example, if an outcome falls from 10% to 8% of cases, the absolute effect is 2 percentage points and the relative effect is a 20% drop.
Guardrail metrics
An evaluation also tracks outcomes the change could harm, not only the outcome it aims to improve. Microsoft’s experimentation team separates metrics that show whether a feature succeeded from guardrail metrics, which do not indicate success but should not be significantly harmed when deciding whether to release. Page load time on Bing or MSN is one example of a guardrail (Dmitriev et al., 2017).
When no credible comparison exists
Without a credible comparison, an evaluation can still test whether and how an intervention contributed, but not how large its effect was. Contribution analysis sets out a theory of change, the expected chain from activities to results. It tests that theory against the observed evidence and examines other influencing factors and rival explanations (Mayne, 2012).
The UK government’s evaluation guidance lists contribution analysis among theory-based methods. These methods allow causal attribution, but none gives precise estimates of effect size (HM Treasury, 2026).
Further reading
- HM Treasury, Magenta Book (HM Treasury, 2026): the UK government’s guidance on evaluation, covering impact evaluation, comparison designs and theory-based methods.
- Hernán and Robins, Causal Inference: What If (Hernán & Robins, 2020): a textbook on defining causal effects and the assumptions under which observational data identify them.
- Roth, “Pretest with caution” (Roth, 2022): why passing a parallel-trends pretest does not secure a difference-in-differences estimate.
- Dmitriev and colleagues, “A dirty dozen” (Dmitriev et al., 2017): pitfalls in reading metrics from online experiments, including guardrail metrics.
- Mayne, “Contribution analysis: Coming of age?” (Mayne, 2012): the method’s originator on how to support a contribution claim without a control group.
First published .
Known gaps
What this article cannot tell you yet.
- How often pretrend tests mislead in practice, as opposed to in theory and simulation, was not researched.
- How common spillovers are across online experiments was not researched; the article rests on a single pair of experiments at one company.
- Other nonrandomized designs, such as regression discontinuity, instrumental variables and synthetic control, were not researched.
- How to set thresholds for guardrail metrics, and how to weigh a gain against a guardrail loss, was not researched.
References
- Solid source
- Rated highly trustworthy by the research, and every passage taken from it was found in it.
- Weak source
- Rated low, or a passage taken from it was not found in it.
- Medium trust
- Rated medium by the research.
- Not checked
- Rated high, but its passages could not all be checked against it.
Show all 8 references
- Dmitriev, P., Gupta, S., Kim, D. W., & Vaz, G. (2017). A dirty dozen: Twelve common metric interpretation pitfalls in online controlled experiments. Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. https://www.microsoft.com/en-us/research/wp-content/uploads/2020/08/2017-08-KDDMetricInterpretationPitfalls.pdf Medium trust Peer-reviewed, read in large part.
- Hernán, M. A., & Robins, J. M. (2020). Causal inference: What if. Chapman & Hall/CRC. https://static1.squarespace.com/static/675db8b0dd37046447128f5f/t/691fb7706ce66332f0b44467/1763686256720/hernan_robins_WhatIf_21nov25.pdf Solid source Book, read in large part.
- HM Treasury (2026). Magenta Book: Central Government guidance on evaluation. HM Treasury. https://assets.publishing.service.gov.uk/media/6a3157a0141f0690ad5fa438/CCS0126982978-001_PN10541411_Magenta_Book_Update_V2_Accessible_2__1_.pdf Solid source Government report, read in large part.
- Hopewell, S., Chan, A., Collins, G. S., Hróbjartsson, A., Moher, D., Schulz, K. F., et al. (2025). CONSORT 2025 explanation and elaboration: Updated guideline for reporting randomised trials. BMJ, 389, e081124. https://pmc.ncbi.nlm.nih.gov/articles/PMC11995452/ Medium trust Peer-reviewed, read in large part.
- Mayne, J. (2012). Contribution analysis: Coming of age? Evaluation. https://www.aspeninstitute.org/wp-content/uploads/2018/02/Mayne12-CAComingofAge.pdf Medium trust Peer-reviewed, read in large part.
- Roth, J. (2022). Pretest with caution: Event-study estimates after testing for parallel trends. American Economic Review: Insights. https://www.aeaweb.org/articles?id=10.1257/aeri.20210236 Medium trust Peer-reviewed, abstract only.
- Saveski, M., Pouget-Abadie, J., Saint-Jacques, G., Duan, W., Ghosh, S., Xu, Y., et al. (2017). Detecting network effects: Randomizing over randomized experiments. Proceedings of the 23rd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD 2017). https://faculty.washington.edu/msaveski/assets/publications/2017_detecting_network_effects/paper.pdf Solid source Peer-reviewed, read in large part.
- Wasserstein, R. L., & Lazar, N. A. (2016). The ASA's statement on p-values: Context, process, and purpose. The American Statistician, 70(2), 129-133. https://www.uab.edu/ccts/images/kaizen/r2t/2025/Questions%2011-15_ASA%20Statement%20on%20Pvalues.pdf Medium trust Peer-reviewed, read in large part.