Skill Tracer
Skills › Scientific Agent Skills › scientific-critical-thinking › statistical_pitfalls.md

statistical_pitfalls.md

551 lines · skills/scientific-critical-thinking/references/statistical_pitfalls.md at 5f2bc03

Open on GitHub
1# Common Statistical Pitfalls
2
3Use the estimand, sampling design, and assumptions to judge an analysis; the examples
4below are illustrative. Primary guidance is linked in [review_sources.md](review_sources.md).
5

Common Statistical Pitfalls

Use the estimand, sampling design, and assumptions to judge an analysis; the examples below are illustrative. Primary guidance is linked in review_sources.md.

Raw lines 1 to 5
6## P-Value Misinterpretations
7

P-Value Misinterpretations

Raw lines 6 to 7
8### Pitfall 1: P-Value = Probability Hypothesis is True
9**Misconception:** p = .05 means 5% chance the null hypothesis is true.
11**Reality:** A p-value is a tail probability for the specified test statistic under the
12null and the rest of the statistical model, including the sampling/analysis procedure.
13It is not a posterior probability that a hypothesis is true.
15**Correct interpretation:** "Under this null model and analysis procedure, a test statistic
16at least this extreme has probability .05." Selection or unaccounted optional stopping
17can invalidate this calibration.

Pitfall 1: P-Value = Probability Hypothesis is True

Misconception: p = .05 means 5% chance the null hypothesis is true.

Reality: A p-value is a tail probability for the specified test statistic under the null and the rest of the statistical model, including the sampling/analysis procedure. It is not a posterior probability that a hypothesis is true.

Correct interpretation: "Under this null model and analysis procedure, a test statistic at least this extreme has probability .05." Selection or unaccounted optional stopping can invalidate this calibration.

Raw lines 8 to 18
19### Pitfall 2: Non-Significant = No Effect
20**Misconception:** p > .05 proves there's no effect.
22**Reality:** Absence of evidence ≠ evidence of absence. Non-significant results may indicate:
23- Insufficient statistical power
24- True effect too small to detect
25- High variability
26- Small sample size
28**Better approach:**
29- Report confidence intervals
30- Compare the interval with effects of practical importance; do not calculate power
31 from the observed effect to explain this result
32- Consider equivalence testing with scientifically justified, prespecified bounds

Pitfall 2: Non-Significant = No Effect

Misconception: p > .05 proves there's no effect.

Reality: Absence of evidence ≠ evidence of absence. Non-significant results may indicate:

  • Insufficient statistical power
  • True effect too small to detect
  • High variability
  • Small sample size

Better approach:

  • Report confidence intervals
  • Compare the interval with effects of practical importance; do not calculate power from the observed effect to explain this result
  • Consider equivalence testing with scientifically justified, prespecified bounds
Raw lines 19 to 33
34### Pitfall 3: Significant = Important
35**Misconception:** Statistical significance means practical importance.
37**Reality:** With large samples, effects too small to matter for the decision can become
38"significant." Judge magnitude against a justified practical threshold.
40**Better approach:**
41- Report effect sizes
42- Consider practical significance
43- Use confidence intervals

Pitfall 3: Significant = Important

Misconception: Statistical significance means practical importance.

Reality: With large samples, effects too small to matter for the decision can become "significant." Judge magnitude against a justified practical threshold.

Better approach:

  • Report effect sizes
  • Consider practical significance
  • Use confidence intervals
Raw lines 34 to 44
45### Pitfall 4: P = .049 vs. P = .051
46**Misconception:** These are meaningfully different because one crosses the .05 threshold.
48**Reality:** These represent nearly identical evidence. The .05 threshold is arbitrary.
50**Better approach:**
51- Interpret p-values continuously as model-compatibility summaries, not stand-alone evidence scores
52- Report exact p-values
53- Consider context and prior evidence

Pitfall 4: P = .049 vs. P = .051

Misconception: These are meaningfully different because one crosses the .05 threshold.

Reality: These represent nearly identical evidence. The .05 threshold is arbitrary.

Better approach:

  • Interpret p-values continuously as model-compatibility summaries, not stand-alone evidence scores
  • Report exact p-values
  • Consider context and prior evidence
Raw lines 45 to 54
55### Pitfall 5: One-Tailed Tests Without Justification
56**Misconception:** One-tailed tests are free extra power.
58**Reality:** A one-sided test addresses a directional hypothesis; the opposite direction
59need not be impossible. Choosing the tail after seeing data invalidates the nominal error rate.
61**When appropriate:** Prespecify a directional decision and error criterion (for example,
62a justified non-inferiority margin). Still report estimates, uncertainty, and possible harm.

Pitfall 5: One-Tailed Tests Without Justification

Misconception: One-tailed tests are free extra power.

Reality: A one-sided test addresses a directional hypothesis; the opposite direction need not be impossible. Choosing the tail after seeing data invalidates the nominal error rate.

When appropriate: Prespecify a directional decision and error criterion (for example, a justified non-inferiority margin). Still report estimates, uncertainty, and possible harm.

Raw lines 55 to 63
64## Multiple Comparisons Problems

Multiple Comparisons Problems

Raw lines 64 to 65
66### Pitfall 6: Multiple Testing Without Correction
67**Problem:** For 20 independent tests of true nulls at alpha .05, the probability of at
68least one false rejection is `1 - 0.95**20 = 0.6415` (about 64%). Dependence changes this value.
70**Examples:**
71- Testing many outcomes
72- Testing many subgroups
73- Conducting multiple interim analyses
74- Testing at multiple time points
76**Solutions:**
77- Bonferroni correction (divide α by number of tests)
78- False Discovery Rate (FDR) control
79- Prespecify primary outcome
80- Treat exploratory analyses as hypothesis-generating
82Define the hypothesis family and error target first. FWER limits the probability of any
83false rejection; FDR limits the expected false-discovery proportion (zero when there are
84no discoveries). Neither is the probability that a particular discovery is false. A named
85primary outcome does not resolve multiplicity across doses, time points, interim looks,
86subgroups, or data-selected analysis choices.

Pitfall 6: Multiple Testing Without Correction

Problem: For 20 independent tests of true nulls at alpha .05, the probability of at least one false rejection is 1 - 0.95**20 = 0.6415 (about 64%). Dependence changes this value.

Examples:

  • Testing many outcomes
  • Testing many subgroups
  • Conducting multiple interim analyses
  • Testing at multiple time points

Solutions:

  • Bonferroni correction (divide α by number of tests)
  • False Discovery Rate (FDR) control
  • Prespecify primary outcome
  • Treat exploratory analyses as hypothesis-generating

Define the hypothesis family and error target first. FWER limits the probability of any false rejection; FDR limits the expected false-discovery proportion (zero when there are no discoveries). Neither is the probability that a particular discovery is false. A named primary outcome does not resolve multiplicity across doses, time points, interim looks, subgroups, or data-selected analysis choices.

Raw lines 66 to 87
88### Pitfall 7: Subgroup Analysis Fishing
89**Problem:** Testing many subgroups until finding significance.
91**Why problematic:**
92- Inflates false positive rate
93- Often reported without disclosure
94- A significant result in women and a non-significant result in men does not establish
95 a difference between groups; estimate and test the interaction directly
97**Solutions:**
98- Prespecify subgroups
99- Use interaction tests, not separate tests
100- Require replication
101- Correct for multiple comparisons

Pitfall 7: Subgroup Analysis Fishing

Problem: Testing many subgroups until finding significance.

Why problematic:

  • Inflates false positive rate
  • Often reported without disclosure
  • A significant result in women and a non-significant result in men does not establish a difference between groups; estimate and test the interaction directly

Solutions:

  • Prespecify subgroups
  • Use interaction tests, not separate tests
  • Require replication
  • Correct for multiple comparisons
Raw lines 88 to 102
103### Pitfall 8: Outcome Switching
104**Problem:** Analyzing many outcomes, reporting only significant ones.
106**Detection signs:**
107- Secondary outcomes emphasized
108- Incomplete outcome reporting
109- Discrepancy between registration and publication
111**Solutions:**
112- Preregister all outcomes
113- Report all planned outcomes
114- Distinguish primary from secondary

Pitfall 8: Outcome Switching

Problem: Analyzing many outcomes, reporting only significant ones.

Detection signs:

  • Secondary outcomes emphasized
  • Incomplete outcome reporting
  • Discrepancy between registration and publication

Solutions:

  • Preregister all outcomes
  • Report all planned outcomes
  • Distinguish primary from secondary
Raw lines 103 to 115
116## Sample Size and Power Issues

Sample Size and Power Issues

Raw lines 116 to 117
118### Pitfall 9: Underpowered Studies
119**Problem:** Small samples have low probability of detecting true effects.
121**Consequences:**
122- High false negative rate
123- Among selected significant findings, the false-discovery fraction depends on power,
124 prior prevalence of real effects, bias, and multiplicity; low power alone does not
125 increase a correctly calibrated test's Type I error above its alpha
126- Overestimated effect sizes (when significant)
128**Solutions:**
129- Conduct a priori power analysis
130- Justify power or precision targets for the decision; 80-90% are conventions, not guarantees
131- Use a meaningful effect and plausible variance; assess uncertainty in small pilot estimates

Pitfall 9: Underpowered Studies

Problem: Small samples have low probability of detecting true effects.

Consequences:

  • High false negative rate
  • Among selected significant findings, the false-discovery fraction depends on power, prior prevalence of real effects, bias, and multiplicity; low power alone does not increase a correctly calibrated test's Type I error above its alpha
  • Overestimated effect sizes (when significant)

Solutions:

  • Conduct a priori power analysis
  • Justify power or precision targets for the decision; 80-90% are conventions, not guarantees
  • Use a meaningful effect and plausible variance; assess uncertainty in small pilot estimates
Raw lines 118 to 132
133### Pitfall 10: Post-Hoc Power Analysis
134**Problem:** Calculating "observed power" using the observed effect and the same test is
135circular and uninformative. This does not prohibit design sensitivity calculations at an
136independently justified effect size.
138**Why useless:**
139- Non-significant results always have low "post-hoc power"
140- It recapitulates the p-value without new information
142**Better approach:**
143- Calculate confidence intervals
144- Plan replication with adequate sample
145- Conduct prospective power analysis for future studies

Pitfall 10: Post-Hoc Power Analysis

Problem: Calculating "observed power" using the observed effect and the same test is circular and uninformative. This does not prohibit design sensitivity calculations at an independently justified effect size.

Why useless:

  • Non-significant results always have low "post-hoc power"
  • It recapitulates the p-value without new information

Better approach:

  • Calculate confidence intervals
  • Plan replication with adequate sample
  • Conduct prospective power analysis for future studies
Raw lines 133 to 146
147### Pitfall 11: Small Sample Fallacy
148**Problem:** Trusting results from very small samples.
150**Issues:**
151- High sampling variability
152- Outliers have large influence
153- Distributional approximations may be unreliable; small n alone is not an assumption violation
154- Confidence intervals very wide
156**Guidelines:**
157- There is no universal n = 30 validity threshold; count independent units and inspect precision
158- Check assumptions carefully
159- Choose methods for the estimand and design; non-parametric methods also have assumptions
160- Replicate findings

Pitfall 11: Small Sample Fallacy

Problem: Trusting results from very small samples.

Issues:

  • High sampling variability
  • Outliers have large influence
  • Distributional approximations may be unreliable; small n alone is not an assumption violation
  • Confidence intervals very wide

Guidelines:

  • There is no universal n = 30 validity threshold; count independent units and inspect precision
  • Check assumptions carefully
  • Choose methods for the estimand and design; non-parametric methods also have assumptions
  • Replicate findings
Raw lines 147 to 161
162## Effect Size Misunderstandings

Effect Size Misunderstandings

Raw lines 162 to 163
164### Pitfall 12: Ignoring Effect Size
165**Problem:** Focusing only on significance, not magnitude.
167**Why problematic:**
168- Significance ≠ importance
169- Can't compare across studies
170- Doesn't inform practical decisions
172**Solutions:**
173- Always report effect sizes
174- Report effects in interpretable original units or absolute risks; add standardized
175 measures (Cohen's d, r, η²) when they answer the comparison of interest
176- Interpret using field conventions
177- Consider minimum clinically important difference

Pitfall 12: Ignoring Effect Size

Problem: Focusing only on significance, not magnitude.

Why problematic:

  • Significance ≠ importance
  • Can't compare across studies
  • Doesn't inform practical decisions

Solutions:

  • Always report effect sizes
  • Report effects in interpretable original units or absolute risks; add standardized measures (Cohen's d, r, η²) when they answer the comparison of interest
  • Interpret using field conventions
  • Consider minimum clinically important difference
Raw lines 164 to 178
179### Pitfall 13: Misinterpreting Standardized Effect Sizes
180**Problem:** Treating Cohen's d = 0.5 as "medium" without context.
182**Reality:**
183- Field-specific norms vary
184- Some fields have larger typical effects
185- Real-world importance depends on context
187**Better approach:**
188- Compare to effects in same domain
189- Consider practical implications
190- Look at raw effect sizes too

Pitfall 13: Misinterpreting Standardized Effect Sizes

Problem: Treating Cohen's d = 0.5 as "medium" without context.

Reality:

  • Field-specific norms vary
  • Some fields have larger typical effects
  • Real-world importance depends on context

Better approach:

  • Compare to effects in same domain
  • Consider practical implications
  • Look at raw effect sizes too
Raw lines 179 to 191
192### Pitfall 14: Confusing Explained Variance with Importance
193**Problem:** "Only explains 5% of variance" = unimportant.
195**Reality:**
196- A small explained-variance fraction can still matter for an important outcome
197- Complex phenomena have many small contributors
198- Predictive accuracy ≠ causal importance
200**Consideration:** Context matters more than percentage alone.

Pitfall 14: Confusing Explained Variance with Importance

Problem: "Only explains 5% of variance" = unimportant.

Reality:

  • A small explained-variance fraction can still matter for an important outcome
  • Complex phenomena have many small contributors
  • Predictive accuracy ≠ causal importance

Consideration: Context matters more than percentage alone.

Raw lines 192 to 201
202## Correlation and Causation

Correlation and Causation

Raw lines 202 to 203
204### Pitfall 15: Correlation Implies Causation
205**Problem:** Inferring causation from correlation.
207**Alternative explanations:**
208- Reverse causation (B causes A, not A causes B)
209- Confounding (C causes both A and B)
210- Coincidence
211- Selection bias
213**Causal appraisal:** Specify the intervention/exposure contrast, population, and outcome.
214Assess temporality, exchangeability/confounding, positivity, consistency, selection, and
215measurement assumptions. Observational causal inference is possible under defensible
216assumptions; randomization does not repair missing outcomes or post-randomization selection.

Pitfall 15: Correlation Implies Causation

Problem: Inferring causation from correlation.

Alternative explanations:

  • Reverse causation (B causes A, not A causes B)
  • Confounding (C causes both A and B)
  • Coincidence
  • Selection bias

Causal appraisal: Specify the intervention/exposure contrast, population, and outcome. Assess temporality, exchangeability/confounding, positivity, consistency, selection, and measurement assumptions. Observational causal inference is possible under defensible assumptions; randomization does not repair missing outcomes or post-randomization selection.

Raw lines 204 to 217
218### Pitfall 16: Ecological Fallacy
219**Problem:** Inferring individual-level relationships from group-level data.
221**Example:** Countries with more chocolate consumption have more Nobel laureates doesn't mean eating chocolate makes you win Nobels.
223**Why problematic:** Group-level correlations may not hold at individual level.

Pitfall 16: Ecological Fallacy

Problem: Inferring individual-level relationships from group-level data.

Example: Countries with more chocolate consumption have more Nobel laureates doesn't mean eating chocolate makes you win Nobels.

Why problematic: Group-level correlations may not hold at individual level.

Raw lines 218 to 224
225### Pitfall 17: Simpson's Paradox
226**Problem:** Trend appears in groups but reverses when combined (or vice versa).
228**Example:** Treatment appears worse overall but better in every subgroup.
230**Cause:** Different group weights can reverse marginal and conditional associations.
231The stratifying variable is not automatically a confounder; it may be a mediator or collider.
233**Solution:** Choose adjustment from the causal question and temporal structure, not
234from whichever stratification gives the preferred answer.

Pitfall 17: Simpson's Paradox

Problem: Trend appears in groups but reverses when combined (or vice versa).

Example: Treatment appears worse overall but better in every subgroup.

Cause: Different group weights can reverse marginal and conditional associations. The stratifying variable is not automatically a confounder; it may be a mediator or collider.

Solution: Choose adjustment from the causal question and temporal structure, not from whichever stratification gives the preferred answer.

Raw lines 225 to 235
236## Regression and Modeling Pitfalls

Regression and Modeling Pitfalls

Raw lines 236 to 237
238### Pitfall 18: Overfitting
239**Problem:** Model fits sample data well but doesn't generalize.
241**Causes:**
242- Too many predictors relative to sample size
243- Fitting noise rather than signal
244- No cross-validation
246**Solutions:**
247- Use cross-validation with all learned preprocessing and tuning inside training folds
248- Penalized regression (LASSO, ridge)
249- Independent test set
250- Simpler models

Pitfall 18: Overfitting

Problem: Model fits sample data well but doesn't generalize.

Causes:

  • Too many predictors relative to sample size
  • Fitting noise rather than signal
  • No cross-validation

Solutions:

  • Use cross-validation with all learned preprocessing and tuning inside training folds
  • Penalized regression (LASSO, ridge)
  • Independent test set
  • Simpler models
Raw lines 238 to 251
252### Pitfall 19: Extrapolation Beyond Data Range
253**Problem:** Predicting outside the range of observed data.
255**Why dangerous:**
256- Relationships may not hold outside observed range
257- Increased uncertainty not reflected in predictions
259**Solution:** Label extrapolation, justify transport/model assumptions, and assess
260sensitivity. In-range predictions can also fail under population or measurement shifts.

Pitfall 19: Extrapolation Beyond Data Range

Problem: Predicting outside the range of observed data.

Why dangerous:

  • Relationships may not hold outside observed range
  • Increased uncertainty not reflected in predictions

Solution: Label extrapolation, justify transport/model assumptions, and assess sensitivity. In-range predictions can also fail under population or measurement shifts.

Raw lines 252 to 261
262### Pitfall 20: Ignoring Model Assumptions
263**Problem:** Using statistical tests without checking assumptions.
265**Common violations:**
266- Incorrect distributional assumptions for the relevant errors/conditional outcomes;
267 not all parametric models require normally distributed raw data
268- Heteroscedasticity (unequal variances)
269- Non-independence
270- Linearity
271- Rank deficiency or unstable coefficient estimation; some predictor correlation is allowed
273**Solutions:**
274- Check assumptions with diagnostics
275- Use robust methods
276- Transform data
277- Use appropriate non-parametric alternatives

Pitfall 20: Ignoring Model Assumptions

Problem: Using statistical tests without checking assumptions.

Common violations:

  • Incorrect distributional assumptions for the relevant errors/conditional outcomes; not all parametric models require normally distributed raw data
  • Heteroscedasticity (unequal variances)
  • Non-independence
  • Linearity
  • Rank deficiency or unstable coefficient estimation; some predictor correlation is allowed

Solutions:

  • Check assumptions with diagnostics
  • Use robust methods
  • Transform data
  • Use appropriate non-parametric alternatives
Raw lines 262 to 278
279### Pitfall 21: Treating Non-Significant Covariates as Eliminating Confounding
280**Problem:** "We controlled for X and it wasn't significant, so it's not a confounder."
282**Reality:** Non-significant covariates can still be important confounders. Significance ≠ confounding.
284**Solution:** Prespecify an appropriate adjustment set from causal knowledge; do not
285select confounders by p-values or automatically adjust for mediators/colliders.

Pitfall 21: Treating Non-Significant Covariates as Eliminating Confounding

Problem: "We controlled for X and it wasn't significant, so it's not a confounder."

Reality: Non-significant covariates can still be important confounders. Significance ≠ confounding.

Solution: Prespecify an appropriate adjustment set from causal knowledge; do not select confounders by p-values or automatically adjust for mediators/colliders.

Raw lines 279 to 286
287### Pitfall 22: Collinearity Masking Effects
288**Problem:** When predictors are highly correlated, true effects may appear non-significant.
290**Manifestations:**
291- Large standard errors
292- Unstable coefficients
293- Sign changes when adding/removing variables
295**Detection:**
296- Variance Inflation Factors (VIF)
297- Correlation matrices
299**Solutions:**
300- Remove redundant predictors
301- Combine correlated variables
302- Use regularization methods
304Regularization may stabilize prediction but does not make a non-identifiable effect
305identified by the data. Check design rank, parameter symmetries, profiles/sensitivity,
306and dependence on constraints or priors. Good fit and convergence are insufficient.

Pitfall 22: Collinearity Masking Effects

Problem: When predictors are highly correlated, true effects may appear non-significant.

Manifestations:

  • Large standard errors
  • Unstable coefficients
  • Sign changes when adding/removing variables

Detection:

  • Variance Inflation Factors (VIF)
  • Correlation matrices

Solutions:

  • Remove redundant predictors
  • Combine correlated variables
  • Use regularization methods

Regularization may stabilize prediction but does not make a non-identifiable effect identified by the data. Check design rank, parameter symmetries, profiles/sensitivity, and dependence on constraints or priors. Good fit and convergence are insufficient.

Raw lines 287 to 307
308## Specific Test Misuses

Specific Test Misuses

Raw lines 308 to 309
310### Pitfall 23: Uncontrolled Pairwise Comparisons
311**Problem:** Treating many unadjusted pairwise tests as one confirmatory analysis.
313**Correct approach:** Prespecify contrasts and an appropriate familywise or other error
314strategy. An omnibus ANOVA is useful for its own question but is not a universal prerequisite
315for planned contrasts, and a significant omnibus test does not authorize all unadjusted pairs.

Pitfall 23: Uncontrolled Pairwise Comparisons

Problem: Treating many unadjusted pairwise tests as one confirmatory analysis.

Correct approach: Prespecify contrasts and an appropriate familywise or other error strategy. An omnibus ANOVA is useful for its own question but is not a universal prerequisite for planned contrasts, and a significant omnibus test does not authorize all unadjusted pairs.

Raw lines 310 to 316
317### Pitfall 24: Pearson Correlation for Non-Linear Relationships
318**Problem:** Using Pearson's r for curved relationships.
320**Why misleading:** r measures linear relationships only.
322**Solutions:**
323- Check scatterplots first
324- Use Spearman's ρ for monotonic relationships
325- Consider polynomial or non-linear models

Pitfall 24: Pearson Correlation for Non-Linear Relationships

Problem: Using Pearson's r for curved relationships.

Why misleading: r measures linear relationships only.

Solutions:

  • Check scatterplots first
  • Use Spearman's ρ for monotonic relationships
  • Consider polynomial or non-linear models
Raw lines 317 to 326
327### Pitfall 25: Chi-Square with Small Expected Frequencies
328**Problem:** Relying on an asymptotic chi-square approximation with sparse expected counts.
329The often-used count-of-five rule is a heuristic, not a universal validity boundary.
331**Solutions:**
332- Fisher's exact test
333- Combine categories only for a prespecified substantive reason, not to obtain significance
334- Increase sample size

Pitfall 25: Chi-Square with Small Expected Frequencies

Problem: Relying on an asymptotic chi-square approximation with sparse expected counts. The often-used count-of-five rule is a heuristic, not a universal validity boundary.

Solutions:

  • Fisher's exact test
  • Combine categories only for a prespecified substantive reason, not to obtain significance
  • Increase sample size
Raw lines 327 to 335
336### Pitfall 26: Paired vs. Independent Tests
337**Problem:** Using independent samples test for paired data (or vice versa).
339**Why wrong:**
340- Ignoring real dependence can misestimate uncertainty in either direction
341- Inventing pairs changes the estimand and may discard data or distort uncertainty
343**Solution:** Match test to design.

Pitfall 26: Paired vs. Independent Tests

Problem: Using independent samples test for paired data (or vice versa).

Why wrong:

  • Ignoring real dependence can misestimate uncertainty in either direction
  • Inventing pairs changes the estimand and may discard data or distort uncertainty

Solution: Match test to design.

Raw lines 336 to 344
345## Confidence Interval Misinterpretations

Confidence Interval Misinterpretations

Raw lines 345 to 346
347### Pitfall 27: 95% CI = 95% Probability True Value Inside
348**Misconception:** "95% chance the true value is in this interval."
350**Reality:** For a correctly calibrated frequentist 95% interval procedure under its
351assumptions, 95% of intervals across repetitions cover the fixed parameter. An individual
352interval does not assign a 95% posterior probability to that parameter.
354**Better reporting:** Give the estimate, interval, confidence level, assumptions, and
355whether the interval excludes effects important to the scientific decision.

Pitfall 27: 95% CI = 95% Probability True Value Inside

Misconception: "95% chance the true value is in this interval."

Reality: For a correctly calibrated frequentist 95% interval procedure under its assumptions, 95% of intervals across repetitions cover the fixed parameter. An individual interval does not assign a 95% posterior probability to that parameter.

Better reporting: Give the estimate, interval, confidence level, assumptions, and whether the interval excludes effects important to the scientific decision.

Raw lines 347 to 356
357### Pitfall 28: Overlapping CIs = No Difference
358**Problem:** Assuming overlapping confidence intervals mean no significant difference.
360**Reality:** Overlapping CIs are less stringent than difference tests. Two CIs can overlap while the difference between groups is significant.
362**Guideline:** Estimate the contrast and its interval directly, accounting for covariance.
363Neither overlap heuristic substitutes for that calculation.

Pitfall 28: Overlapping CIs = No Difference

Problem: Assuming overlapping confidence intervals mean no significant difference.

Reality: Overlapping CIs are less stringent than difference tests. Two CIs can overlap while the difference between groups is significant.

Guideline: Estimate the contrast and its interval directly, accounting for covariance. Neither overlap heuristic substitutes for that calculation.

Raw lines 357 to 364
365### Pitfall 29: Ignoring CI Width
366**Problem:** Focusing only on whether CI includes zero, not precision.
368**Why important:** Wide CIs indicate high uncertainty. "Significant" effects with huge CIs are less convincing.
370**Consider:** Both significance and precision.

Pitfall 29: Ignoring CI Width

Problem: Focusing only on whether CI includes zero, not precision.

Why important: Wide CIs indicate high uncertainty. "Significant" effects with huge CIs are less convincing.

Consider: Both significance and precision.

Raw lines 365 to 371
372## Bayesian vs. Frequentist Confusions

Bayesian vs. Frequentist Confusions

Raw lines 372 to 373
374### Pitfall 30: Mixing Bayesian and Frequentist Interpretations
375**Problem:** Making Bayesian statements from frequentist analyses.
377**Examples:**
378- "Probability hypothesis is true" (Bayesian) from p-value (frequentist)
379- "Evidence for no meaningful effect" from a non-significant test alone; frequentist
380 equivalence tests can address prespecified bounds, not prove an exact point null
382**Solution:**
383- Be clear about framework
384- Use Bayesian methods for Bayesian questions
385- For Bayes factors, specify competing models and priors and examine prior sensitivity

Pitfall 30: Mixing Bayesian and Frequentist Interpretations

Problem: Making Bayesian statements from frequentist analyses.

Examples:

  • "Probability hypothesis is true" (Bayesian) from p-value (frequentist)
  • "Evidence for no meaningful effect" from a non-significant test alone; frequentist equivalence tests can address prespecified bounds, not prove an exact point null

Solution:

  • Be clear about framework
  • Use Bayesian methods for Bayesian questions
  • For Bayes factors, specify competing models and priors and examine prior sensitivity
Raw lines 374 to 386
387### Pitfall 31: Ignoring Prior Probability
388**Problem:** Treating all hypotheses as equally likely initially.
390**Reality:** Extraordinary claims need extraordinary evidence. Prior plausibility matters.
392**Consider:**
393- Plausibility given existing knowledge
394- Mechanism plausibility
395- Base rates

Pitfall 31: Ignoring Prior Probability

Problem: Treating all hypotheses as equally likely initially.

Reality: Extraordinary claims need extraordinary evidence. Prior plausibility matters.

Consider:

  • Plausibility given existing knowledge
  • Mechanism plausibility
  • Base rates
Raw lines 387 to 396
397## Data Transformation Issues

Data Transformation Issues

Raw lines 397 to 398
399### Pitfall 32: Dichotomizing Continuous Variables
400**Problem:** Splitting continuous variables at arbitrary cutoffs.
402**Consequences:**
403- Loss of information and power
404- Arbitrary distinctions
405- Discarding individual differences
407**Exceptions:** Clinically meaningful cutoffs with strong justification.
409**Better:** Model the continuous relationship, including nonlinear terms when justified;
410adding arbitrary categories still loses information.

Pitfall 32: Dichotomizing Continuous Variables

Problem: Splitting continuous variables at arbitrary cutoffs.

Consequences:

  • Loss of information and power
  • Arbitrary distinctions
  • Discarding individual differences

Exceptions: Clinically meaningful cutoffs with strong justification.

Better: Model the continuous relationship, including nonlinear terms when justified; adding arbitrary categories still loses information.

Raw lines 399 to 411
412### Pitfall 33: Trying Multiple Transformations
413**Problem:** Testing many transformations until finding significance.
415**Why problematic:** Inflates Type I error, is a form of p-hacking.
417**Better approach:**
418- Prespecify transformations
419- Use theory-driven transformations
420- Correct for multiple testing if exploring

Pitfall 33: Trying Multiple Transformations

Problem: Testing many transformations until finding significance.

Why problematic: Inflates Type I error, is a form of p-hacking.

Better approach:

  • Prespecify transformations
  • Use theory-driven transformations
  • Correct for multiple testing if exploring
Raw lines 412 to 421
422## Missing Data Problems

Missing Data Problems

Raw lines 422 to 423
424### Pitfall 34: Listwise Deletion by Default
425**Problem:** Automatically deleting all cases with any missing data.
427**Consequences:**
428- Reduced power
429- Potential bias if data not missing completely at random (MCAR)
431**Better approaches:**
432- Multiple imputation
433- Maximum likelihood methods
434- Analyze missingness patterns

Pitfall 34: Listwise Deletion by Default

Problem: Automatically deleting all cases with any missing data.

Consequences:

  • Reduced power
  • Potential bias if data not missing completely at random (MCAR)

Better approaches:

  • Multiple imputation
  • Maximum likelihood methods
  • Analyze missingness patterns
Raw lines 424 to 435
436### Pitfall 35: Ignoring Missing Data Mechanisms
437**Problem:** Not considering why data are missing.
439**Types:**
440- MCAR: missingness independent of observed and unobserved data; deletion can lose precision
441- MAR: conditional on the observed variables used, missingness is independent of missing
442 values; imputation/likelihood methods still require correctly specified, compatible models
443- MNAR: residual dependence on missing values; examine plausible sensitivity scenarios
445**Solution:** Record reasons, timing, and assumptions. Observed missingness patterns cannot
446establish MAR versus MNAR. Pool imputation uncertainty; single mean imputation is not a fix.

Pitfall 35: Ignoring Missing Data Mechanisms

Problem: Not considering why data are missing.

Types:

  • MCAR: missingness independent of observed and unobserved data; deletion can lose precision
  • MAR: conditional on the observed variables used, missingness is independent of missing values; imputation/likelihood methods still require correctly specified, compatible models
  • MNAR: residual dependence on missing values; examine plausible sensitivity scenarios

Solution: Record reasons, timing, and assumptions. Observed missingness patterns cannot establish MAR versus MNAR. Pool imputation uncertainty; single mean imputation is not a fix.

Raw lines 436 to 447
448## Publication and Reporting Issues

Publication and Reporting Issues

Raw lines 448 to 449
450### Pitfall 36: Selective Reporting
451**Problem:** Only reporting significant results or favorable analyses.
453**Consequences:**
454- Literature appears more consistent than reality
455- Meta-analyses biased
456- Wasted research effort
458**Solutions:**
459- Preregistration
460- Report all analyses
461- Use reporting guidelines (CONSORT, PRISMA, etc.)

Pitfall 36: Selective Reporting

Problem: Only reporting significant results or favorable analyses.

Consequences:

  • Literature appears more consistent than reality
  • Meta-analyses biased
  • Wasted research effort

Solutions:

  • Preregistration
  • Report all analyses
  • Use reporting guidelines (CONSORT, PRISMA, etc.)
Raw lines 450 to 462
463### Pitfall 37: Rounding to p < .05
464**Problem:** Reporting exact p-values selectively (e.g., p = .049 but p < .05 for .051).
466**Why problematic:** Obscures values near threshold, enables p-hacking detection evasion.
468**Better:** Always report exact p-values.

Pitfall 37: Rounding to p < .05

Problem: Reporting exact p-values selectively (e.g., p = .049 but p < .05 for .051).

Why problematic: Obscures values near threshold, enables p-hacking detection evasion.

Better: Always report exact p-values.

Raw lines 463 to 469
470### Pitfall 38: No Data Sharing
471**Problem:** Not making data available for verification or reanalysis.
473**Consequences:**
474- Can't verify results
475- Some independent checks or individual-participant-data analyses may be impossible;
476 published aggregate estimates can still support an appropriate meta-analysis
477- Hinders scientific progress
479**Best practice:** Share data unless privacy concerns prohibit.

Pitfall 38: No Data Sharing

Problem: Not making data available for verification or reanalysis.

Consequences:

  • Can't verify results
  • Some independent checks or individual-participant-data analyses may be impossible; published aggregate estimates can still support an appropriate meta-analysis
  • Hinders scientific progress

Best practice: Share data unless privacy concerns prohibit.

Raw lines 470 to 480
481## Cross-Validation and Generalization

Cross-Validation and Generalization

Raw lines 481 to 482
483### Pitfall 39: No Cross-Validation
484**Problem:** Testing model on same data used to build it.
486**Consequence:** Overly optimistic performance estimates.
488**Solutions:**
489- Split data (train/test)
490- K-fold cross-validation
491- Independent validation sample

Pitfall 39: No Cross-Validation

Problem: Testing model on same data used to build it.

Consequence: Overly optimistic performance estimates.

Solutions:

  • Split data (train/test)
  • K-fold cross-validation
  • Independent validation sample
Raw lines 483 to 492
493### Pitfall 40: Data Leakage
494**Problem:** Information from test set leaking into training.
496**Examples:**
497- Normalizing before splitting
498- Feature selection on full dataset
499- Including temporal information
501**Consequence:** Inflated performance metrics.
503**Prevention:** Fit learned preprocessing only on the training portion of each fold; tune
504within that boundary and reserve an untouched evaluation set. Split by independent subject,
505site, batch, or time as the deployment question requires; technical replicates must not leak.

Pitfall 40: Data Leakage

Problem: Information from test set leaking into training.

Examples:

  • Normalizing before splitting
  • Feature selection on full dataset
  • Including temporal information

Consequence: Inflated performance metrics.

Prevention: Fit learned preprocessing only on the training portion of each fold; tune within that boundary and reserve an untouched evaluation set. Split by independent subject, site, batch, or time as the deployment question requires; technical replicates must not leak.

Raw lines 493 to 506
507## Meta-Analysis Pitfalls

Meta-Analysis Pitfalls

Raw lines 507 to 508
509### Pitfall 41: Apples and Oranges
510**Problem:** Combining studies with different designs, populations, or measures.
512**Balance:** Need homogeneity but also comprehensiveness.
514**Solutions:**
515- Clear inclusion criteria
516- Subgroup analyses
517- Meta-regression for moderators

Pitfall 41: Apples and Oranges

Problem: Combining studies with different designs, populations, or measures.

Balance: Need homogeneity but also comprehensiveness.

Solutions:

  • Clear inclusion criteria
  • Subgroup analyses
  • Meta-regression for moderators
Raw lines 509 to 518
519### Pitfall 42: Ignoring Publication Bias
520**Problem:** Published studies overrepresent significant results.
522**Consequences:** Overestimated effects in meta-analyses.
524**Assessment:** Compare protocols/registries and reported outcomes; seek eligible unpublished
525results. Funnel asymmetry indicates small-study effects, not necessarily publication bias.
526Asymmetry tests generally need at least ten studies with varying precision and a method
527appropriate to the effect measure; a negative test cannot exclude missing evidence.
529**Sensitivity analysis:** Trim-and-fill, selection models, PET-PEESE, and p-curve have
530different assumptions and targets. Do not describe adjusted estimates as recovered truth
531or treat fail-safe N as a reliability certificate.

Pitfall 42: Ignoring Publication Bias

Problem: Published studies overrepresent significant results.

Consequences: Overestimated effects in meta-analyses.

Assessment: Compare protocols/registries and reported outcomes; seek eligible unpublished results. Funnel asymmetry indicates small-study effects, not necessarily publication bias. Asymmetry tests generally need at least ten studies with varying precision and a method appropriate to the effect measure; a negative test cannot exclude missing evidence.

Sensitivity analysis: Trim-and-fill, selection models, PET-PEESE, and p-curve have different assumptions and targets. Do not describe adjusted estimates as recovered truth or treat fail-safe N as a reliability certificate.

Raw lines 519 to 532
533### Pitfall 43: Pseudoreplication and Changing Denominators
534Repeated measurements, cells from one donor, or wells from one culture are not automatically
535independent biological replicates. Identify assignment and sampling units; use an appropriate
536hierarchical/repeated-measures analysis or justified aggregation. Report independent-unit n
537separately from measurement count. A mean of group percentages differs from the pooled
538numerator/denominator when group sizes differ; state weighting, evaluable counts, and exclusions.

Pitfall 43: Pseudoreplication and Changing Denominators

Repeated measurements, cells from one donor, or wells from one culture are not automatically independent biological replicates. Identify assignment and sampling units; use an appropriate hierarchical/repeated-measures analysis or justified aggregation. Report independent-unit n separately from measurement count. A mean of group percentages differs from the pooled numerator/denominator when group sizes differ; state weighting, evaluable counts, and exclusions.

Raw lines 533 to 539
540## General Best Practices
5421. **Preregister studies** - Distinguish confirmatory from exploratory
5432. **Report transparently** - All analyses, not just significant ones
5443. **Check assumptions** - Don't blindly apply tests
5454. **Use appropriate tests** - Match test to data and design
5465. **Report effect sizes** - Not just p-values
5476. **Consider practical significance** - Not just statistical
5487. **Replicate findings** - One study is rarely definitive
5498. **Share data and code** - Enable verification
5509. **Use confidence intervals** - Show uncertainty
55110. **Think causally carefully** - Most research is correlational

General Best Practices

  1. Preregister studies - Distinguish confirmatory from exploratory
  2. Report transparently - All analyses, not just significant ones
  3. Check assumptions - Don't blindly apply tests
  4. Use appropriate tests - Match test to data and design
  5. Report effect sizes - Not just p-values
  6. Consider practical significance - Not just statistical
  7. Replicate findings - One study is rarely definitive
  8. Share data and code - Enable verification
  9. Use confidence intervals - Show uncertainty
  10. Think causally carefully - Most research is correlational
Raw lines 540 to 551