O1, O2 - Binomial hypothesis tests
Use a sample to investigate a claim about a population proportion. O1 supplies the language of hypotheses, tails and significance; O2 connects exact binomial probabilities to a cautious conclusion about the population.
Population proportions and hypotheses
A manufacturer claims that only of its sensors fail a test. You randomly select sensors and fail. Is that enough evidence to challenge the claim, or could it be ordinary sampling variation?
The sample failure proportion is . That describes the sample exactly. It does not establish that exactly a quarter of all the manufacturer's sensors fail. A hypothesis test weighs the sample evidence against a population claim.
You already know
A random sample can support an inference about its population. For independent trials with two outcomes and a constant success probability , the number of successes has distribution . “Success” means the event counted, even when that event is a failure.
Let be the probability that a randomly chosen sensor from the current production fails. This is the population proportion we want to investigate. Specify the question about before looking at the result.
Null and alternative hypotheses
The null hypothesis, , specifies the population value used to calculate reference probabilities. The alternative hypothesis, , describes the departure being investigated. For the sensor claim, . An increase uses , a decrease uses , and a change in either direction uses .
An increase or decrease calls for a one-tailed test. An unspecified change calls for a two-tailed test. The equality belongs in . Neither hypothesis is a statement about the already known sample proportion. These hypothesis conventions are not in the formula booklet: learn them.
Worked example 1: an intended improvement
Question. A service previously delivered of orders on time. A new system is intended to improve this proportion. Define the parameter and state suitable hypotheses.
Plan. Define a population proportion, then translate “improve” into a direction.
Why this direction? On-time delivery is the event counted, so improvement makes its probability larger.
Answer. Use , , a one-tailed upper-tail test.
Check. A proportion below would contradict improvement, so it should not be the rejection direction.
Change only the investigation in example 2: the same new system might improve or worsen performance. The alternative must allow both possibilities.
Worked example 2: a change without a direction
Question. The service now investigates whether its new system has changed the on-time proportion from . Define the parameter and state suitable hypotheses.
Plan. Keep the population parameter and reference value, but include departures on either side.
Why two tails? Both unusually few and unusually many on-time deliveries could provide evidence of change.
Answer. Use , , a two-tailed test.
Check. Both and satisfy this alternative; does not.
Choose the direction from the purpose of the investigation. Selecting a favourable tail after seeing the sample changes the test being carried out.
Watch out
Wrong: . This replaces the population claim with the sample evidence. Right: test , and use the observed count to judge that claim.
The next question changes the event from timely deliveries to complaints. Define the event clearly before writing an inequality.
The null model and the relevant tail
To judge the sensor claim, temporarily assume it is true. Under , the number of failures in the sample has distribution . This tells us which counts would be unusual if the population failure proportion really were .
A binomial model needs independent trials with a common probability. Sampling without replacement from a much larger population can make independence a reasonable approximation. Twenty related sensors from one faulty batch need not represent twenty independent chances from all production.
Test statistic and one-tailed p-value
A test statistic is a quantity calculated from the sample; here its observed value is the number of failures. Under the null, the random variable describes its possible values. A one-tailed p-value is the probability, assuming , of the observed count or a count further in the direction of .
For an increase, include the observed count and every larger count. For a decrease, include it and every smaller count. A calculator's cumulative binomial function usually returns a lower inclusive probability, so the discrete boundary matters.
Inclusive binomial tails
For an observed count ,
Use under . The binomial probability formula is supplied separately; this box gives the tail choices and complement boundaries. Not in the formula booklet: learn it.
A significance level provides the threshold for deciding that evidence is sufficiently unusual. At a one-tailed level, reject if the relevant p-value is at most . Keep unrounded probabilities until the comparison.
Worked example 3: five failures
Question. For independent sensors, fail. Test against at .
Plan. Calculate the inclusive upper tail under the claimed failure proportion.
Why the upper tail? More failures support the proposed increase in the population failure proportion.
Answer. Reject . There is sufficient evidence at to suggest that the population failure proportion exceeds .
Check. The complement removes counts to , leaving exactly to .
Example 4 changes only the observed count. A sample proportion can exceed the claim without giving sufficiently strong evidence against it.
Worked example 4: four failures
Question. Repeat the same upper-tail test when of the sensors fail.
Plan. Keep the null model, but move the inclusive boundary to four.
Why does the probability increase? The tail now includes the additional possible count .
Answer. Do not reject . There is insufficient evidence at to suggest that the population failure proportion exceeds .
Check. Although , the relevant null probability is about , above the chosen threshold.
The p-value concerns a set of possible outcomes, rather than just the exact count observed.
Watch out
Wrong: . This omits the observed count itself. Right: subtract . Using only also omits more extreme counts.
Use your calculator for exact binomial tails. A Normal approximation is unnecessary here, and the current Mathematics formula booklet contains no statistical tables.
Critical regions for one and two tails
Instead of waiting for a sample and then calculating its p-value, decide in advance which counts would lead to rejection. This makes the decision rule visible.
Critical and acceptance regions
The critical region is the set of possible test-statistic values leading to rejection of . Its boundary count or counts are called critical values. The remaining possible counts form the acceptance region, where the test does not reject . The name does not mean that the null has been proved.
For a lower-tail test with nominal level , choose the largest integer satisfying . Check that would exceed the limit. For an upper tail, choose the smallest satisfying , and check . These rules are not in the formula booklet: learn them.
Worked example 5: a lower critical region
Question. Under , . Find the lower-tail critical region and its actual rejection probability.
Plan. Find consecutive counts whose cumulative probabilities fall either side of .
Why check the next count? It proves that the chosen lower region is as large as the significance limit permits.
Answer. The critical region is , with critical value . Its actual rejection probability under is , about . The acceptance region is .
Check. Adding count would increase the rejection probability beyond .
Example 6 changes only the alternative's direction. The same distribution now needs an upper tail; reflecting the old boundary would be wrong because this binomial distribution is not symmetric.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account