Core Statistics Refresher: Distributions, Tests, and Inference
Statistics & ExperimentsModel answerLast updated
Answer five foundational statistics questions covering Poisson moments, confidence intervals, t vs z tests, the CLT, and p-value interpretation.
Setting
You have 20 minutes to answer five short statistics questions. For each one, state the formula or definition, explain when it applies, and flag any common misinterpretations. Precision matters — vague answers do not score full credit.
Questions
1. What are the mean and variance of a Poisson distribution with rate parameter λ?
2. A population has known standard deviation σ. You draw a sample of size n. Write the 95% confidence interval for the population mean and explain each term.
3. You want to compare the means of two independent groups. Under what conditions do you choose a two-sample t-test over a z-test?
4. State the Central Limit Theorem precisely, including its required conditions. Give one concrete example of how it is used in practice.
5. A hypothesis test returns p = 0.03. Interpret this number correctly, state your decision at α = 0.05 and at α = 0.01, and identify two things the p-value does not tell you.
What a strong answer looks like: formula first, then conditions, then interpretation, then at least one real-world tie-in or practical caveat per question.
Hints
Hint 1
For Poisson, try factoring the sum in the expectation so it collapses to a familiar Taylor series — the same trick works for the second factorial moment and makes the variance calculation clean.
Hint 2
The choice between t and z does not hinge on sample size alone. Ask yourself what you actually know about σ before the data are collected, and think about where the extra uncertainty goes when you have to estimate it.
Hint 3
A p-value is defined under the assumption that H₀ is true — write that assumption into your interpretation from the start. It helps you avoid the two most common misstatements: confusing it with P(H₀ true) and treating it as a measure of effect size.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
1. Mean and Variance of Poisson(λ)
Result: E[X] = λ and Var(X) = λ.
Derivation. The PMF is P(X = k) = e^(−λ) λ^k / k! for k = 0, 1, 2, …
Mean: Factor a λ out of the sum and shift the index by 1.
E[X] = Σ k · e^(−λ) λ^k / k! = λ · e^(−λ) · Σ_{k≥1} λ^(k−1) / (k−1)! = λ · e^(−λ) · e^λ = λ
Variance: Use the second factorial moment E[X(X−1)].
E[X(X−1)] = λ² · e^(−λ) · Σ_{k≥2} λ^(k−2) / (k−2)! = λ²
So E[X²] = λ² + λ, and Var(X) = λ² + λ − λ² = λ.
Alternatively, the cumulant generating function is log M(t) = λ(e^t − 1), whose n-th derivative at t = 0 equals λ for every n, confirming both the mean and variance in one step.
Why it matters in practice: Mean equal to variance is a testable signature. Real count data — web events, support tickets, clicks per session — routinely show variance much larger than the mean (overdispersion). When you see that, Poisson is the wrong model; reach for negative binomial or quasi-Poisson instead.
2. 95% Confidence Interval for the Mean (σ known)
Formula:
x̄ ± 1.96 · σ / √n
The 1.96 is z₀.₉₇₅, the 97.5th percentile of the standard normal, chosen so the central 95% of the distribution falls between −1.96 and +1.96. The term σ / √n is the standard error of the mean.
Why it works: When σ is known, (x̄ − μ) / (σ/√n) is exactly N(0,1) if the population is normal, and approximately so by the CLT for large n. Inverting the inequality P(−1.96 ≤ Z ≤ 1.96) = 0.95 for μ yields the interval above.
Key points to state:
- Width scales as 1/√n. Halving the margin of error costs four times the sample size.
- If σ is unknown, replace it with the sample standard deviation s and use t_{n−1, 0.975} instead of 1.96.
Correct interpretation: If the sampling procedure were repeated many times, 95% of the resulting intervals would contain the true μ. Once a specific interval is computed, it either contains μ or it does not — there is no "95% probability" attached to that single interval.
3. Two-Sample t-test vs. z-test
The real criterion is whether σ is known, not whether n is small.
Use a t-test when the population standard deviations must be estimated from the data, which is the default in virtually every real-world comparison. Substituting sample standard deviations for unknown population values introduces estimation uncertainty. The resulting test statistic follows a t distribution with heavier tails than the normal, which correctly widens critical regions and demands stronger evidence.
Use a z-test when σ is genuinely known (rare) or when n is large enough that t and z are numerically indistinguishable (roughly n > 30 per group and no extreme skew). Proportion comparisons in A/B tests are a natural exception: the variance is p(1 − p), determined by p itself, so large-sample z-tests are standard.
Variants to know:
- Welch's t-test: does not assume equal variances. Its degrees of freedom come from the Welch–Satterthwaite approximation. This is the safe default.
- Pooled t-test: assumes equal variances; only appropriate when that assumption is defensible.
- Paired t-test: for matched observations (before/after on the same units). Structurally a one-sample test on the differences, not a two-sample test.
Common mistake: saying the t-test is "for small samples." Small n is when the difference between t and z is most visible, but the correct reason to use t is unknown σ.
4. Central Limit Theorem
Statement: Let X₁, …, Xₙ be i.i.d. with mean μ and finite variance σ². Then as n → ∞:
√n (X̄ₙ − μ) / σ → N(0, 1) in distribution.
Equivalently, X̄ₙ is approximately N(μ, σ²/n) for large n, regardless of the shape of the underlying distribution.
Required conditions: independence, identical distribution, and finite variance. The CLT breaks down for Cauchy-distributed data or other cases where variance is infinite.
Practical example: Revenue per user is heavily right-skewed with occasional large orders. The CLT lets us treat the sample mean revenue in each arm of an A/B test as approximately normally distributed, justifying z/t-based confidence intervals on the difference even though the underlying data are not normal. As a rule of thumb, a few hundred observations per arm is enough for typical e-commerce revenue distributions; highly skewed data may require thousands.
Caveats worth stating:
- The CLT describes the distribution of the sample mean, not the raw data. The individual observations do not become normal.
- Convergence is slow for very skewed distributions. Winsorizing, log transforms, or bootstrap methods are practical remedies when n is moderate.
- Independence is critical. Clustered or autocorrelated data invalidate the standard error formula even when n is large.
5. Interpreting p = 0.03
Correct definition: Assuming the null hypothesis is true and all model assumptions hold, the probability of observing a test statistic at least as extreme as the one obtained is 0.03.
Decisions:
- At α = 0.05: p = 0.03 < 0.05 → reject H₀. The result is statistically significant.
- At α = 0.01: p = 0.03 > 0.01 → fail to reject H₀. α must be fixed before looking at the data.
What p = 0.03 does not mean:
- It is not P(H₀ is true). That is a Bayesian posterior probability, which requires a prior.
- It says nothing about effect size or practical importance. With a large enough sample, a trivially small difference will yield p < 0.001. Always report the effect estimate and its confidence interval alongside the p-value.
- Failing to reject H₀ is not evidence that H₀ is true; it may simply reflect low power.
Interview-ready framing: "In an A/B test on a new recommendation algorithm, p = 0.03 means that if the algorithm truly had no effect, we'd see a lift at least this large only 3% of the time under random variation alone. That clears our 5% threshold, so we reject the null. Before shipping, I'd check the size of the lift, the confidence interval, whether multiple comparisons were made, and whether we peeked at results early — all of which can invalidate the stated p-value."
Common Mistakes at a Glance
| Question | Mistake to avoid |
|---|---|
| Poisson | Stating variance as λ² or √λ; forgetting mean = variance is empirically testable |
| CI | Using σ/n instead of σ/√n; saying "95% chance μ is in this interval" |
| t vs z | Treating sample size as the deciding factor rather than whether σ is known |
| CLT | Claiming the raw data become normal; omitting the finite-variance requirement |
| p-value | Equating it with P(H₀ true); treating significance as equivalent to importance |