The Multiple Comparisons Problem
Running many statistical tests on one dataset is like buying many lottery tickets; your chance of a "winning" false positive increases with each test. This happens in A/B tests with many metrics.
The mental model
Running many statistical tests on the same data is like giving yourself multiple chances to be fooled by randomness. If you run one test with a 95% confidence level (p=0.05), there's a 5% chance of a false positive. If you run 20 such tests, the probability of getting at least one false positive isn't 5%; it's much higher. You're giving random chance 20 opportunities to produce a fluke result that looks significant. This is the multiple comparisons problem, also called multiplicity.
How it works
The math shows how quickly the error rate grows. The probability of not making a Type I error in one test is (1 - α), where α is your significance level (e.g., 0.05). For 'k' independent tests, the probability of making no errors across all of them is (1 - α) to the power of k. Therefore, the probability of making at least one error, known as the family-wise error rate (FWER), is 1 - (1 - α)^k. For α=0.05 and k=20 tests, the FWER is 1 - (0.95)^20, which is approximately 64%. Your effective error rate has ballooned from 5% to 64%.
When to use it
This is a problem to be aware of, not a tool to use. It's critical in three main situations. First, in A/B testing when you track many metrics or segment users into many groups for the same experiment. Second, in scientific studies like genomics where thousands of genes are tested for association with a disease. Third, in any exploratory data analysis where you are "fishing" for correlations by testing many pairs of variables.
When not to use it
The problem is most acute when tests are performed to confirm a hypothesis. If you have a single, pre-specified hypothesis before looking at the data, you don't need to correct for other tests you could have run. The correction applies only to the set of tests you actually perform. It's also less of a concern in pure exploration, as long as any "discoveries" are treated as tentative and are later validated with a new, independent experiment designed to test that single finding.
One canonical example
An engineering team A/B tests a website redesign. They track 20 different metrics: button clicks, time on page, bounce rate, add to cart, newsletter sign-ups, etc., with a significance level of p < 0.05 for each. Even if the redesign has no real effect, there is a high probability (~64%) that at least one metric will show a "statistically significant" change just by random chance. The team might celebrate a win on newsletter sign-ups, unaware it's likely a statistical ghost. To fix this, they could use a Bonferroni correction, adjusting the required p-value for each test to 0.05 / 20 = 0.0025.
Interview question
Which scenario is LEAST susceptible to the multiple comparisons problem?
- a.An exploratory data analysis searching for correlations among 50 financial indicators.
- b.A scientific study examining the association between a disease and 1000 genetic markers.
- c.An A/B test evaluating a new feature across 15 different performance metrics.
- d.A pre-specified clinical trial testing one primary hypothesis about a drug's efficacy.Correct
Why? this is the answer
The card states that the multiple comparisons problem is less of a concern when testing a single, pre-specified hypothesis. The other options involve running many tests or tracking many metrics, which are prime examples of situations where the problem is acute.
Just read this? Test yourself on what you have been reading.
Read the original → en.wikipedia.org
- #statistics
- #a/b testing
- #data analysis
- #metrics
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on statistics — each one lists the topics its interview covers.
See open roles