Statistics 5.1 - Language of statistical hypothesis testing
How unusual must a sample be before you question a population claim? You will learn to set up hypotheses, recognise extreme results and make careful decisions using critical regions or p-values. The same language will then let you test a claim about linear correlation.
Hypotheses and test statistics
If a company says that of orders use a discount code, would code-users in orders make you doubt it? The sample proportion is , twice the claimed proportion. Sampling varies, though: the size of the disagreement alone does not settle the question.
You already know
A binomial random variable counts successes in a fixed number of independent trials with constant success probability. Under , its expected value is .
Start by separating the claim from the evidence. A population parameter describes the population; a statistic is calculated from the sample.
Null and alternative hypotheses
The null hypothesis supplies the population model being tested. The alternative hypothesis describes the departure for which you seek evidence. For a proportion, write and choose , or from the question's claim.
The test statistic is the random quantity used to judge the evidence. Here it is the count ; the particular count you observe is . Equality in gives one definite model from which probabilities can be calculated.
Worked example 1: an increase in code use
Question. In the discount-code example, a manager suspects an increase. Define the parameter and statistic, state the hypotheses and give the null distribution.
Plan. Describe the whole population using , then model the sample count under the claimed proportion.
Why use , rather than , in the model? You are asking how surprising the sample is if the original claim holds.
Answer. The hypotheses concern ; the observed statistic is .
Check. The sample proportion is evidence about , not a value to substitute for .
Change only the manager's suspicion. The same data can be judged against a different question, but that question must be chosen before inspecting the result.
Worked example 2: a difference in either direction
Question. Keep the same company, claim and sample. The manager now wants to investigate whether code use has changed in either direction. Set up the test.
Plan. Keep the null model and change the alternative to match “changed”.
Why does the model stay the same? The alternative selects the evidence to look for; it does not replace the null probability.
Answer. This is a two-tailed test, still based on the observed count .
Check. Both unusually small and unusually large counts could now challenge .
Keep the population and sample symbols distinct when you set up the next test.
Watch out
is not a population hypothesis. The count has already been observed; the unknown quantity is the population proportion .
Try the same setup for a different claimed proportion.
Tails and critical regions
For , you expect about successes. Counts near or look unusual; which of them matters depends on the alternative.
| Alternative | Test | Evidence against the null |
|---|---|---|
| one-tailed | unusually small counts | |
| one-tailed | unusually large counts | |
| two-tailed | unusually small or large counts |
The mean locates the centre; it is not a rejection boundary.
Expected binomial count
In the formula booklet.
Choose a significance level before collecting the evidence. It controls how readily you reject a true null model.
Significance level and critical region
The critical region is the set of statistic values leading to rejection of . Its boundary values are critical values. The significance level is the chosen probability limit for wrongly rejecting when it is true; a discrete test's actual rejection probability may be lower. Values outside the critical region form the acceptance region, meaning “do not reject”.
Here whole bars belong either inside or outside the rejection region. You cannot shade a fraction of one observed count.
[DIAGRAM: asset_slug: p3_5_1_understand_and_apply_the_language_of_statistical_hypothesis_testing__diagram_01; asset_name: Statistics 5.1 - Language of statistical hypothesis testing - diagram 01; caption: The alternative decides which counts are extreme.; description: Three binomial bar charts for B(20,0.5), showing lower, upper and two-tailed rejection regions with exact integer boundaries.]

Worked example 3: a two-tailed decision rule
Question. Find a critical region for a two-tailed test with null distribution , putting at most in each tail. Give its actual significance level.
Plan. Find the largest lower-tail region within , then use symmetry.
Why stop at ? Including would exceed the chosen probability limit for that tail.
Answer. Reject for or . The critical values are and ; the acceptance region is . The actual significance is , about .
Check. The actual probability is below the nominal .
Change only the nominal level to . Surprisingly, the decision rule need not change at all.
Worked example 4: the same bars at a different level
Question. Repeat the test with a nominal significance level and at most in each tail.
Plan. Compare the same adjacent tail probabilities with the new allowance.
Why are the boundaries unchanged? There is no whole-number boundary between and .
Answer. The critical region remains or , with actual significance about .
Check. This actual probability fits both nominal levels. Discreteness explains the apparent surprise.
An acceptance region is a decision set, not a proof that the population claim is correct.
Watch out
Write a critical region as values, such as , not as a probability such as . The probability measures how often the region is reached; it is not the region itself.
Use symmetry again, this time with a smaller sample.
P-values and conclusions
Suppose a task has claimed success probability , but you succeed times in attempts. A p-value measures how surprising this count or a more extreme count would be under the claim.
p-value
A p-value is the probability, calculated assuming , of the observed statistic or something at least as extreme in the direction of . It is not the probability that is true.
For an upper-tail binomial test, include the observed count: . For a lower-tail test, use . These are tail probabilities, not the probability of just one count.
Worked example 5: just outside significance
Question. Test against at the level after successes in independent attempts.
Plan. Calculate the upper tail under , then compare it with .
Why use the upper tail? Only higher success probabilities support the stated alternative.
Answer. Do not reject . There is insufficient evidence at the level that the task's success probability exceeds .
Check. A sample proportion is above , but this small sample has not crossed the chosen evidence threshold.
Change only the observed count to . That one extra success removes a whole bar from the upper-tail probability.
Continue this lesson.
You’re previewing NovaLearn without an account. Create a free account to read the rest.
Create free account