Common Statistical
Pitfalls
Learn to recognize and avoid the most dangerous traps in data analysis: multiple comparisons, data snooping, and misinterpretation of results.
Why Statistical Pitfalls Matter
In business, data-driven decisions can lead to massive gains or catastrophic losses. Statistical pitfalls cause false conclusions that waste resources, mislead stakeholders, and erode trust in analytics.
The Three Core Pitfalls
Recall: The \( p \)-value
A \( p \)-value is the probability of observing data at least as extreme as what you got, assuming the null hypothesis \( H_0 \) is true.
The Multiple Comparisons Problem
When you run \( m \) independent tests at \( \alpha = 0.05 \), the probability of getting at least one false positive is:
The Bonferroni Correction
The simplest fix for multiple comparisons: divide your significance level by the number of tests. This controls the family-wise error rate (FWER).
What Is Data Snooping?
Data snooping (also called data dredging or p-hacking) occurs when you explore a dataset, find a pattern, and then test that same pattern on the same data as if it were a pre-planned hypothesis.
Exploratory vs. Confirmatory Analysis
| Exploratory (EDA) | Confirmatory (CDA) | |
|---|---|---|
| Goal | Generate hypotheses | Test hypotheses |
| Data | Training / discovery set | Fresh holdout set |
| \( p \)-values | Not meaningful | Valid and interpretable |
| Outcome | Interesting patterns to test | Evidence for/against \( H_0 \) |
| Risk | Overfitting if used for decisions | Missing effects if underpowered |
Common Misinterpretations
How to Avoid These Pitfalls
Example 1: Marketing Campaign
A marketing team tests 20 different ad variations and finds that one has \( p = 0.03 \). They declare it the winner. Is this valid?
Example 2: Ice Cream & Drowning
Data shows a strong positive correlation (\( r = 0.87 \)) between ice cream sales and drowning deaths. A report concludes: "Ice cream causes drowning."
Example 3: Huge Sample, Tiny Effect
A company surveys 500,000 customers and finds that Feature X increases satisfaction scores by 0.02 points on a 10-point scale (\( p = 0.001 \)). The CEO calls it a breakthrough.
Beyond Bonferroni: False Discovery Rate
The Benjamini-Hochberg procedure controls the False Discovery Rate (FDR): the expected proportion of false positives among all rejected hypotheses. It is less conservative than Bonferroni.
Common Mistakes to Avoid
Pitfall Summary Table
| Pitfall | What Goes Wrong | How to Fix It |
|---|---|---|
| Multiple Comparisons | False positives inflate with more tests | Bonferroni, FDR correction |
| Data Snooping | Hypothesis formed from the same data used to test it | Pre-register; split data |
| Correlation ≠ Causation | Confounders create spurious associations | Controlled experiments; DAGs |
| Ignoring Effect Size | Trivial effects appear "significant" with large \( n \) | Report Cohen's \( d \), CI |
| \( p \)-value Misreading | Treating \( p \) as probability \( H_0 \) is true | Understand definition; use Bayesian reasoning |
Question 1 of 5
A researcher tests 40 different supplements for their effect on memory, each at \( \alpha = 0.05 \). Two supplements show \( p < 0.05 \). What should the researcher do?
Question 2 of 5
A data analyst explores sales data, notices that Tuesday sales are higher than other days, then runs a hypothesis test on the same data and gets \( p = 0.02 \). This is an example of:
Question 3 of 5
A study with \( n = 1{,}000{,}000 \) finds that a new layout increases average time on site by 0.3 seconds (\( p < 0.001 \)). Which statement best describes this result?
Question 4 of 5
Using the Bonferroni correction, if you conduct 10 hypothesis tests at a family-wise \( \alpha = 0.05 \), what is the adjusted significance level for each individual test?
Question 5 of 5
A report states: "Since \( p = 0.04 \), there is a 96% probability that the alternative hypothesis is true." This statement is: