How does EDA generate hypotheses, and why is testing a hypothesis on the same data that suggested it a problem?

Quick Overview

Asks how exploratory data analysis leads to hypotheses and why testing a hypothesis on the data that suggested it is a problem. Tests your understanding of multiple comparisons, selection bias in p-values and effect sizes, and how holdout data or new experiments confirm a finding.

How does EDA generate hypotheses, and why is testing a hypothesis on the same data that suggested it a problem?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How does EDA help in generating hypotheses, and why is it problematic to test a hypothesis on the same data that suggested it? ```hint Count the looks Suppose you scan 20 customer segments with no real differences between them. How likely is it that at least one looks significant at the 5% level? ``` ```hint Think about selection What does a p-value assume about when the hypothesis was chosen? Ask what happens to that assumption when the most striking pattern is the one you choose to test. ``` ### What a Strong Answer Covers - How exploration turns visible patterns, group differences and anomalies into testable questions - What testing a hypothesis on the data that suggested it does to false positive rates and effect estimates - Whether multiple-comparison corrections fix the problem after open-ended exploration - Concrete remedies (holdout splits, new data or experiments, pre-registration) and what each costs ### Follow-up Questions - You only have 2,000 rows. How would you balance exploration and confirmation? - Why do effects found during exploration tend to shrink when measured again on new data? - If you apply a Bonferroni correction to the tests you ran during EDA, is the confirmatory result now valid? - How would you report a finding that you could not confirm on independent data?

Overview: Asks how exploratory data analysis leads to hypotheses and why testing a hypothesis on the data that suggested it is a problem. Tests your understanding of multiple comparisons, selection bias in p-values and effect sizes, and how holdout data or new experiments confirm a finding.

General logo
General
Nov 24, 2026
mediumData ScientistOtherStatistics & Math
0
0

How does EDA help in generating hypotheses, and why is it problematic to test a hypothesis on the same data that suggested it?

What a Strong Answer Covers Guidance

  • How exploration turns visible patterns, group differences and anomalies into testable questions
  • What testing a hypothesis on the data that suggested it does to false positive rates and effect estimates
  • Whether multiple-comparison corrections fix the problem after open-ended exploration
  • Concrete remedies (holdout splits, new data or experiments, pre-registration) and what each costs

Follow-up Questions Guidance

  • You only have 2,000 rows. How would you balance exploration and confirmation?
  • Why do effects found during exploration tend to shrink when measured again on new data?
  • If you apply a Bonferroni correction to the tests you ran during EDA, is the confirmatory result now valid?
  • How would you report a finding that you could not confirm on independent data?