What is the distribution of p-values under the null hypothesis, and why is it uniform?

Quick Overview

Asks for the distribution of p-values when the null hypothesis is true and a derivation of why it takes that form. It tests the probability integral transform, Type I error calibration, and the cases where the result fails, such as discrete tests, composite nulls and misspecified models.

What is the distribution of p-values under the null hypothesis, and why is it uniform?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is the distribution of p-values under the null hypothesis, and why is it uniform? ```hint Write the p-value as a function Express the p-value in terms of the test statistic and its null CDF, then compute $P(p \le \alpha)$ directly. ``` ```hint Check the assumptions Look at which property of the statistic's null distribution the argument needs, and what changes when the statistic can only take a few values. ``` ### What a Strong Answer Covers - The distribution of p-values when the null hypothesis is true - A derivation through the null distribution of the test statistic - Why this gives Type I error control at every level $\alpha$ - The conditions the result needs and what happens when they fail - How the distribution changes when the alternative is true ### Follow-up Questions - You run 1,000 A/A tests and 12% of the p-values fall below 0.05. What could cause that? - What does a histogram of p-values from thousands of hypotheses tell you, and how do false discovery rate methods use it? - How does peeking at results and stopping as soon as $p < 0.05$ change the null distribution of the p-value? - For a one-sided test of $\mu \le 0$, what does the p-value distribution look like when the true mean is below 0?

Overview: Asks for the distribution of p-values when the null hypothesis is true and a derivation of why it takes that form. It tests the probability integral transform, Type I error calibration, and the cases where the result fails, such as discrete tests, composite nulls and misspecified models.

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

What is the distribution of p-values under the null hypothesis, and why is it uniform?

What a Strong Answer Covers Guidance

  • The distribution of p-values when the null hypothesis is true
  • A derivation through the null distribution of the test statistic
  • Why this gives Type I error control at every level α\alpha
  • The conditions the result needs and what happens when they fail
  • How the distribution changes when the alternative is true

Follow-up Questions Guidance

  • You run 1,000 A/A tests and 12% of the p-values fall below 0.05. What could cause that?
  • What does a histogram of p-values from thousands of hypotheses tell you, and how do false discovery rate methods use it?
  • How does peeking at results and stopping as soon as p<0.05p < 0.05 change the null distribution of the p-value?
  • For a one-sided test of μ≤0\mu \le 0 , what does the p-value distribution look like when the true mean is below 0?