= Statistical hypothesis test
{wiki}
= Statistical hypothesis testing
{synonym}
= Hypothesis test
{synonym}
A <statistical hypothesis test> is a decision rule calibrated to distinguish a <null hypothesis> $\theta\in\Theta_0$ from a specified <alternative hypothesis>. A <randomized statistical test> gives a rejection <probability> $\phi(x)\in[0,1]$ for possible data $x$. Its <power function of a statistical test> is $\mathbb E_\theta\phi(X)$, and a level-$\alpha$ test satisfies
$$
\sup_{\theta\in\Theta_0}\mathbb E_\theta\phi(X)\le\alpha.
$$
The supremum is the <size of a statistical test>. Controlling it limits <type I error>; a useful test also has high <statistical power> against scientifically relevant alternatives.
For ten independent <Bernoulli trials> with success <probability> $p$, test $H_0:p\le1/2$ against $H_1:p>1/2$ by rejecting for at least nine successes. The upper-tail <probability> increases with $p$, so the largest null rejection <probability> occurs at $p=1/2$ and equals
$$
\frac{\binom{10}{9}+\binom{10}{10}}{2^{10}}=\frac{11}{1024}\simeq0.0107.
$$
It is therefore a conservative level-0.05 test. Rejecting at eight successes would have size $56/1024>0.05$. This illustrates why discrete calibration need not attain the advertised level exactly. A <p-value> is a null-tail <probability> for the observation, not a <probability> that the <null hypothesis> is true. The decision also does not measure the size or practical importance of an effect.
Back to article page