Equation Gallery
Semester 2, 2021
Ellis Beach

Testing a proportion
The sample proportion is a random variable. This equation shows how we can use this random quantity to test a hypothesised value for a population proportion.
For large enough sample sizes, the Central Limit Theorem tells us that the variability of the sample proportion is approximately Normal. If we have a value that is 2 standard deviations above the mean then we know that this, or a more extreme value, could only occur about 2.5% of the time by chance.
Now the mean of the sample proportion is the population proportion, for which we have a hypothesised value. So we can calculate the number of standard deviations we are from the mean by subtracting the hypothesised value and dividing by the standard deviation.
Suppose someone claimed that only 20% of UQ students had tried marijuana but from a sample of 100 students we found 34. There are actually two different "standard deviations" we can use to measure how far 34% is from the hypothesised 20%. Firstly, we can estimate the standard deviation using the standard error, in this case 4.74%. However, we can also use the original definition with our hypothesised value, giving 4.00% here. The latter is theoretically correct but the former, using the standard error, matches the practice for testing sample means and also makes the test agree with a confidence interval for the population proportion. The practical difference is usually small anyway.
Now 34% is 2.95 standard errors above 20%, and in a Normal distribution this could only happen about 0.2% of the time. Either 20% is correct and we were lucky to get 34% or 20% is wrong. Here it is extremely unlikely to get 34% by chance if the true value was 20%, so this suggests that 20% is wrong.
To estimate the true population proportion we can use a confidence interval.