Interview concept

CLT, Confidence Intervals, and Hypothesis Tests

Asked of: Data Scientist

Last updated

Three-panel educational diagram: CLT sampling distribution, confidence interval on sample mean, and hypothesis test showing p-value, Type I/II errors and power.
  1. What it is The central limit theorem (CLT) explains why averages from many independent, similar observations are approximately normal, enabling simple uncertainty calculations. Confidence intervals quantify the plausible range for a population quantity, and hypothesis tests assess whether observed effects are likely under a specified null model.

  2. Why interviewers ask about it Product data scientists design and interpret experiments that decide if features (e.g., feed ranking tweaks, notification rules) should ship. You need to size tests, compute intervals around lifts, and explain p-values, error rates, and assumptions so launches are safe and defensible.

  3. Core ideas to know

  • CLT: sample means are approximately normal under mild conditions; accuracy improves as n grows.
  • A 95% confidence interval covers the true value in 95% of repeated, identical studies.
  • Hypothesis tests frame null vs. alternative; p-value measures extremeness under the null, not effect probability.
  • Type I error (α) and power (1−β) trade off; choose α before peeking at results.
  • Confidence intervals and two-sided tests are equivalent for many models: null excluded ↔ significant result.
  • Assumptions matter: randomization, independence, stable units; watch for sample ratio mismatch and interference.
  • Practical sensitivity: variance reduction (e.g., CUPED), robust/transformations for heavy tails, and pre-specified guardrail metrics.
  1. A common pitfall Candidates often say “there’s a 95% chance the true mean is in my 95% interval,” which confuses frequentist coverage with probability about a fixed parameter. Another frequent mistake is peeking—checking significance repeatedly without correction—which inflates false positives and ships bad variants. Many also ignore bucketing or event logging issues that break independence (e.g., sample ratio mismatch), making p-values and intervals meaningless. Strong answers state assumptions, check data quality, and justify the test plan (fixed-horizon or sequential) up front.

  2. Further reading

Related concepts

CLT, Confidence Intervals, and Hypothesis Tests — Tech Interview Concept | PracHub