Interpretable and Validatable Uplift Modeling

· 0 min read

Randomization Inference for Matched Pairs with Binary Outcomes

· 0 min read

Principal Stratification and Mediation

· 38 min read · Causal Inference

This post explores principal stratification and mediation analysis as tools for understanding causal effects, decomposing them into direct and indirect components. It covers scenarios like non-compliance, missing outcomes, and surrogate indices, highlighting the importance of assumptions such as no direct effects and no Defiers. Practical methods, including multiple imputation, regression, and matching, are discussed for estimating effects even when key quantities are unobserved. Real-world examples, like marketing lift studies and product funnels, illustrate the relevance of these techniques for addressing complex causal questions.

Principal Stratification and Mediation

Interpretable and Validatable Uplift Modeling

· 27 min read · Causal Inference

In this note, we introduce a method for interpreting and validating the results of uplift modeling. We propose two novel strategies for controlling the Familywise Error Rate in this setting.

Interpretable and Validatable Uplift Modeling

Modes of Inference in Randomized Experiments

· 10 min read · Causal Inference

Randomization provides the “reasoned basis for inference” in an experiment. Yet some approaches to analyzing experiments ignore the special structure of randomization. Simple, familiar approaches like regression models sometimes give wrong answers when applied to experiments. Approaches exploiting randomization deliver more reliable inferences than methods neglecting it. Randomization inference should be the first method we reach for when analyzing experiments.

Modes of Inference in Randomized Experiments

Sensitivity Analysis for Matched Sets with One Treated Unit

· 31 min read · Causal Inference

Adjusting for observed factors does not elevate an observational study to the reliability of an experiment. P-values are not appropriate measures of the strength of evidence in an observational study. Instead, sensitivity analysis allows us to identify the magnitude of hidden biases that would be necessary to invalidate study conclusions. This leads to a strength-of-evidence metric appropriate for an observational study.

Sensitivity Analysis for Matched Sets with One Treated Unit

Sensitivity Analysis for Matched Pairs

· 45 min read · Causal Inference

Observational studies involve more uncertainty than randomized experiments. Sensitivity analysis offers an approach to quantifying this uncertainty.

Sensitivity Analysis for Matched Pairs

Attributable Effects

· 14 min read

In a previous post, we discussed why randomization provides a reasoned basis for inference in an experiment. Randomization not only quantifies the plausibility of a causal effect but also allows us to infer something about the size of that effect.

Attributable Effects

The Reasoned Basis for Inference in Experiments

· 11 min read

In his 1935 book, “Design of Experiments”, Ronald Fisher described randomization as the “reasoned basis for inference” in an experiment. Why do we need a “basis” at all, let alone a reasoned one?

Tests with One-Sided Noncompliance

· 14 min read

Introduction Tech companies spoil data scientists. It’s so easy for us to A/B test everything. We can alter many aspects of the product from a configuration UI. We have the sample size to get a good read in as little as a few days. We have the data infrastructure to analyze and report results quickly.

User Segmentation from Heterogeneous Treatment Effects

· 4 min read

Imagine we are attempting to identify segments within an audience, perhaps so we can market to them more effectively through personalization. A common approach to doing so is to apply some kind of clustering algorithm (such as K-means) based on various user covariates. I have never been especially happy with this approach: the resulting clusters seem pretty arbitrary.

Heterogeneous Treatment Effect Estimation: Function Approximation

· 15 min read

A simple approach to heterogeneous treatment effect estimation relies on a difference in approximations to the outcome function among the two treatment groups. In this post, I derive the conditions under which this approach works.

The Alternative to Causal Inference is Worse Causal Inference

· 5 min read

Some of the most important questions data scientists investigate are causal questions. They’re also some of the hardest to answer! A well-designed A/B test often provides the cleanest answer, but when a test is infeasible, there are plenty of other causal inference techniques that may be useful. While not perfect, these techniques are much better than the alternative: ad hoc methods with no logical foundation.

Supervised Learning as Function Approximation

· 4 min read

Supervised learning is perhaps the most central idea in Machine Learning. It is equally central to statistics where it is known as regression. Statistics formulates the problem in terms of identifying the distribution from which observations are drawn; Machine Learning in terms of finding a model that fits the data well.

Naive Comparisons Under Endogeneity

· 9 min read

Recently I have been reading Causal Inference: The Mixtape by Scott Cunningham. One thing I think Cunningham explains very well is the role of endogeneity in confounding even simple comparisons. I don’t have a background in economics, so I had never really grokked the concepts of endogenous and exogenous factors, especially as it related to causal inference. In this post, I’m going to discuss a few examples that highlight why it’s such an important distinction.

Violations of the Stable Unit Treatment Value Assumption

· 4 min read

We have previously mentioned the Stable Unit Treatment Value Assumption, or SUTVA, a complicated-sounding term that is one of the most important assumptions underlying A/B testing (and Causal Inference in general). In this post, we talk a little more about it and why it is so important.

Contingency Tables Part IV: The Score Test

· 11 min read

The score test can be used to calculate p-values and confidence intervals for A/B tests. The score test considers the slope of the likelihood function at the parameter value associated with the null hypothesis.

Sprinkle some Maximum Likelihood Estimation on that Contingency Table!

· 9 min read

Maximum Likelihood Estimation provides consistent estimators, and can be efficiently computed under many null hypotheses of practical interest.

Contingency Tables Part II: The Binomial Distribution

· 9 min read

In our last post, we introduced the potential outcomes framework as the foundational framework for causal inference. In the potential outcomes framework, each unit (e.g. each person) is represented by a pair of outcomes, corresponding to the result of the experience provided to them (treatment or control, A or B, etc.)

Contingency Tables Part I: The Potential Outcomes Framework

· 8 min read

“Why can’t I take the results of an A/B test at face value? Who are you, the statistics mafia? I don’t need a PhD in statistics to know that one number is greater than another.” If this sounds familiar, it is helpful to remember that we do an A/B test to learn about different potential outcomes. Comparing potential outcomes is essential for smart decision making, and this framework is the cornerstone of causal inference.

A/B Testing

· 0 min read

Calculators for planning and analyzing A/B tests

A/B Testing

A/B Testing Best Practices

· 9 min read

When I started this blog, my primary objective was less about teaching others A/B testing and more about clarifying my own thoughts on A/B testing. I had been running A/B tests for about a year, and I was starting to feel uncomfortable with some of the standard methodologies. It’s pretty common to use Student’s t-test to analyze A/B tests for example. One of the assumptions underlying that test is that the distributions are Gaussian. “What about A/B testing is Gaussian?”, I wondered. I knew there was a big difference between one-sided and two-sided tests, but I didn’t feel confident in my ability to choose the right one. And the multiple comparisons problem seemed to rear its ugly head at every turn: what was the best way to handle this?

Optimal Experiment Design

· 3 min read

We can plan sample sizes to control the width of confidence intervals.

Optimal Experiment Design

Three Goals of Statistics: Description, Prediction, and Prescription

· 4 min read

The great successes of Machine Learning in recent years are based on our ability to extrapolate and predict based on data. The next big step is learning and leveraging the relationship between cause and effect to prescribe what action to take.

Three Goals of Statistics: Description, Prediction, and Prescription

Confidence Intervals

· 11 min read

Statistical analysis is not complete without an estimate of residual uncertainty.

Confidence Intervals

Statistical Power

· 13 min read

Power considerations drive the sample sizes needed for a successful experiment.

Statistical Power

Counterfactuals and Causal Reasoning

· 8 min read

What does ‘Why?’ mean anyway?

Counterfactuals and Causal Reasoning

Fisher's Exact Test

· 7 min read

Simulation-based inference sits on a rigorous foundation.

Fisher's Exact Test

A/B Testing, Part 2: Statistical Significance

· 11 min read

Results can’t always be taken at face value.

A/B Testing, Part 2: Statistical Significance

A/B Testing, Part 1: Random Segmentation

· 14 min read

Random segmentation is the gold standard of Causal Inference.

A/B Testing, Part 1: Random Segmentation