Skip to main content
Examonaut

Topic 5 · Lesson 1 of 3

Binomial tests: p-values and critical regions

The logic: innocent until proven guilty

A hypothesis test works like a trial. We start by assuming nothing has changed (the defendant is innocent), then ask: if that were true, how surprising is the evidence? If the evidence would be very unlikely, we reject the assumption.

  • The null hypothesis, H0H_0, is the "nothing has changed" statement, always with an equals sign, such as H0:p=0.3H_0: p = 0.3.
  • The alternative hypothesis, H1H_1, is what we suspect instead: H1:p>0.3H_1: p > 0.3 (or p<0.3p < 0.3) for a one-tailed test, when we suspect a change in a particular direction; H1:p≠0.3H_1: p \ne 0.3 for a two-tailed test, when we suspect a change but don't know which way.
  • Hypotheses are always about the population parameter (pp, μ\mu or ρ\rho), never about the sample.
  • The test statistic is the number we calculate from the sample, such as XX, the number of successes.
  • The significance level (often 5% or 1%) is the threshold for "very unlikely". It is the probability of rejecting H0H_0 when H0H_0 is actually true: a wrong conviction.

The steps are always the same, as the diagram shows.

1. Hypotheses: H₀: p = 0.3, H₁: p > 0.32. Model if H₀ true: X ~ B(20, 0.3)3. Probability of a result this extreme(p-value), or the critical region4. Compare with the significance level5. Conclusion in context“there is (in)sufficient evidence at the 5% level…”

The conclusion never "proves" anything. If we reject H0H_0 we say there is sufficient evidence to support H1H_1; if not, there is insufficient evidence to reject H0H_0. Not rejecting is not the same as showing H0H_0 is true; the sample may just be too small to show the change.

Two ways to decide: pp-values and critical regions

pp-value method. Find the probability, assuming H0H_0 is true, of a result at least as extreme as the one observed (in the direction of H1H_1). If it is less than the significance level, reject H0H_0.

Critical region method. Find the critical region: the set of values of the test statistic that would lead to rejecting H0H_0. Its boundary is the critical value; the other values form the acceptance region. Then see whether the observed value falls in the critical region. Because the binomial is discrete, the probability of the critical region is usually a bit less than the significance level: that probability is the actual significance level.

Worked example

A one-tailed binomial testAS standard

A company says 30% of customers prefer its product. A manager believes the true proportion is higher. In a random sample of 20 customers, 9 prefer it. Test at the 5% level.

Show solution
  1. Let pp be the proportion of all customers who prefer the product. H0:p=0.3H_0: p = 0.3, H1:p>0.3H_1: p > 0.3 (one-tailed: the manager suspects an increase).
  2. Let XX be the number in the sample who prefer it. If H0H_0 is true, X∼B(20,0.3)X \sim B(20, 0.3).
  3. The result is 9; "at least as extreme" in the direction of H1H_1 means 9 or more: P(X≥9)=1−P(X≤8)=1−0.8867=0.1133P(X \ge 9) = 1 - P(X \le 8) = 1 - 0.8867 = 0.1133.
  4. 0.1133>0.050.1133 > 0.05, so the result is not significant: do not reject H0H_0.
  5. In context: there is insufficient evidence at the 5% level that more than 30% of customers prefer the product.

Worked example

Finding a critical regionexam standard

For the same test, find the critical region and the actual significance level.

Show solution
  1. We want the smallest cc with P(X≥c)≤0.05P(X \ge c) \le 0.05.
  2. P(X≥9)=0.1133P(X \ge 9) = 0.1133 (too big); P(X≥10)=1−P(X≤9)=1−0.9520=0.0480P(X \ge 10) = 1 - P(X \le 9) = 1 - 0.9520 = 0.0480 (at most 0.05).
  3. The critical region is X≥10X \ge 10, and the actual significance level is 4.8%, as the diagram shows.
  4. The observed value, 9, is not in the critical region, which agrees with the pp-value method.
x02468101214160.10.2critical regionX ≥ 10: total 0.048B(20, 0.3)

Write both probabilities either side of the boundary (here 0.1133 and 0.0480): examiners want to see why 10 is the critical value and not 9.

Two-tailed tests

In a two-tailed test, an extreme result in either direction counts as evidence, so the significance level is split equally between the two tails: for 5%, at most 2.5% in each.

Worked example

A two-tailed critical regionexam standard

In the past, 60% of a council's residents supported a scheme. A councillor thinks the proportion has changed. Find the critical region for a test at the 5% level using a sample of 30, and the actual significance level.

Show solution
  1. H0:p=0.6H_0: p = 0.6, H1:p≠0.6H_1: p \ne 0.6. Under H0H_0, X∼B(30,0.6)X \sim B(30, 0.6).
  2. Lower tail, at most 0.025: P(X≤12)=0.0212P(X \le 12) = 0.0212 but P(X≤13)=0.0481P(X \le 13) = 0.0481, so the lower region is X≤12X \le 12.
  3. Upper tail, at most 0.025: P(X≥24)=0.0172P(X \ge 24) = 0.0172 but P(X≥23)=0.0435P(X \ge 23) = 0.0435, so the upper region is X≥24X \ge 24.
  4. Critical region: X≤12X \le 12 or X≥24X \ge 24. Actual significance level =0.0212+0.0172=0.0384= 0.0212 + 0.0172 = 0.0384, or 3.84%.
x6121824290.050.10.15X ≤ 120.0212X ≥ 240.0172B(30, 0.6): 2.5% in each tail at most

For a two-tailed test using a pp-value, compare the probability in the relevant tail with half the significance level (here 0.025).

Try it: set the hypotheses and the significance level, find the critical region and the actual significance level, then test an observed value and read the conclusion in context.

Try it: simulation

Binomial distribution and hypothesis tests

Loading the simulation…

Practise this topic

Both are part of Premium.