Hypothesis Testing and p-values
The p-value is a shaded area under an assumption. Move the observation and watch the area, and the assumption, stay exactly where they were.
Hypothesis Testing and p-values
This module needs JavaScript: the numbers are computed in the page rather than recorded.
Worth knowing
Overview
Specify the test
A hypothesis test starts with a null hypothesis H₀ and an alternative H₁, then chooses a test statistic and a reference distribution under H₀. The p-value is the probability, assuming H₀ and the model assumptions, of observing a statistic at least as incompatible with H₀ as the one measured.
For a two-sided test of a normal mean with known standard error, the statistic is z = (x̄−μ₀)/SE; evidence in either tail contributes to the p-value. A one-sided test counts one specified direction. The direction must be chosen before inspecting results.
Specify the test
A hypothesis test starts with a null hypothesis H₀ and an alternative H₁, then chooses a test statistic and a reference distribution under H₀. The p-value is the probability, assuming H₀ and the model assumptions, of observing a statistic at least as incompatible with H₀ as the one measured.
For a two-sided test of a normal mean with known standard error, the statistic is z = (x̄−μ₀)/SE; evidence in either tail contributes to the p-value. A one-sided test counts one specified direction. The direction must be chosen before inspecting results.