Hypothesis Testing interview question

StatisticsHypothesis Testingbasic

What is the correct definition of a p-value?

  1. AThe probability of getting a test statistic at least as extreme as the one observed, assuming the null hypothesis is true.
  2. BThe probability that the null hypothesis is true, given the value of the test statistic that was observed in the sample.
  3. CThe probability that the observed result will be reproduced if the same experiment is repeated on a fresh sample of data.
  4. DThe probability of rejecting the null hypothesis when it is true, a threshold fixed by the analyst before seeing the data.
Show the answer and explanation

Correct answer: A, The probability of getting a test statistic at least as extreme as the one observed, assuming the null hypothesis is true.

Explanation Hypothesis Testing

The p-value is P(test statistic at least as extreme as observed | H0 true). It measures how surprising the data would be if the null hypothesis were true; small values are evidence against H0. You reject H0 when p ≤ α.

Why the other definitions are wrong:

  • P(H0 is true | data) is a posterior probability. A p-value is computed assuming H0, so it cannot be the probability that H0 is true; that would need a prior and Bayes' theorem.
  • A p-value says nothing directly about the chance of replication; a result with p = 0.04 can easily fail to reach significance in a repeat study.
  • A threshold fixed before the data is the significance level α. The p-value is computed from the data and then compared with α.

Interview tip: memorise one clean sentence: "the probability, under H0, of data at least as extreme as what we observed".

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Statistics questions

  1. When is a one-sample t-test the appropriate test?
  2. What is the correct interpretation of a 95% confidence interval for a population mean?
  3. What does Spearman's rank correlation coefficient measure?
  4. Which set of conditions is the standard list of assumptions behind classical linear regression inference?
  5. In information theory, what does the Shannon entropy H(X) of a discrete random variable measure?