All courses › Mathematics S2 › A test of a proportion

A test of a proportion

A hypothesis test asks whether the data give enough reason to reject a claim. The null hypothesis is the claim of no change, here that the coin is fair. The test statistic compares the observed count with what the null hypothesis expects, and divides by the standard deviation under the null hypothesis. The course normal table gives the p-value 1 minus Φ of 2, about 0.023. That value is looked up, not calculated with the four operations. A one-sided 5% test rejects when Z is greater than the table value 1.645.

Z=X−np0np0(1−p0)Z = \frac{X - np_0}{\sqrt{np_0(1-p_0)}}test of a proportion

Symbols

p0p_0the proportion in the null hypothesis
nnnumber of trials
XXnumber of successes

Example

60 heads in 100 tosses, H0:p=0.5H_0: p = 0.5.

Z=60−50100⋅0.5⋅0.5=105=2Z = \dfrac{60 - 50}{\sqrt{100 \cdot 0.5 \cdot 0.5}} = \dfrac{10}{5} = 2.

A small p-value, below 0.05, means we reject the null hypothesis. It does not prove the alternative.
Practise hypothesis testing for free →

← The normal distribution and Z · A test of a mean →

Part of Mathematics S2: Hypothesis testing.