Open Mathhh

Binomial hypothesis tests: p-values and critical regions

Statistics · worksheets 60 to 65 · 3 min read

I can

  • write H₀ and H₁ for a test on p
  • find a p-value by adding binomial probabilities
  • find the chance of rejecting H₀ when it is true

Key idea

In a hypothesis test we assume the null hypothesis H₀ (for example p = 0.5) and ask how surprising the data are. The alternative H₁ says p is lower (p < 0.5) or higher (p > 0.5).

The p-value is the chance of a result at least as extreme as the one seen, if H₀ is true. If H₁ is p < p₀ and x is seen, the p-value is P(X ≤ x). If H₁ is p > p₀, it is P(X ≥ x). A small p-value (smaller than the significance level, such as 5%) means we reject H₀.

The critical region is the set of values that lead us to reject H₀. The chance of rejecting H₀ when it is true is the probability of the critical region.

Use P(X = r) = nCr × p^r × q^(n − r), and round as asked.

Worked examples

Example 1: X ~ B(10, 0.5), x = 1 seen, H₁: p < 0.5

Watch it: X ~ B(10, 0.5), x = 1 seen, H₁: p < 0.5, step by step:

  1. A p-value adds the probabilities as extreme or more extreme.
  2. P(X = 0) = 1/1024 and P(X = 1) = 10/1024. The bar labels are counts out of 1024.
  3. Divide 11 by 1024.
  4. The p-value is 0.0107.
  5. The two green bars on the left are the p-value.
  1. p-value = P(X ≤ 1) = P(X = 0) + P(X = 1) = 1/1024 + 10/1024.
  2. 11/1024 = 0.01074...

p-value = 0.0107

Example 2: X ~ B(6, 0.5), x = 5 seen, H₁: p > 0.5

Watch it: X ~ B(6, 0.5), x = 5 seen, H₁: p > 0.5, step by step:

  1. H₁ says p is bigger, so look at the right-hand end.
  2. P(X = 5) = 6/64 and P(X = 6) = 1/64. The bar labels are counts out of 64.
  3. Divide 7 by 64.
  4. The p-value is 0.1094.
  5. The two green bars on the right are the p-value.
  1. p-value = P(X ≥ 5) = 6/64 + 1/64 = 7/64.

p-value = 0.1094

Example 3: X ~ B(8, 0.5), critical region X ≤ 1

Watch it: X ~ B(8, 0.5), critical region X ≤ 1, step by step:

  1. The chance of landing in the critical region when H₀ is true.
  2. P(X = 0) = 1/256 and P(X = 1) = 8/256. The bar labels are counts out of 256.
  3. Divide 9 by 256.
  4. That is the significance level of the test.
  5. The critical region is the two green bars on the left.
  1. P(X ≤ 1) = 1/256 + 8/256 = 9/256.

Chance of rejecting H₀ when true = 0.0352

Try it

X ~ B(10, 0.5) under H₀: p = 0.5. The value x = 9 is observed. For H₁: p > 0.5, find the p-value P(X ≥ 9). Answer to 4 d.p.
Show answer0.0107
X ~ B(6, 0.5) under H₀: p = 0.5. The value x = 1 is observed. For H₁: p < 0.5, find the p-value P(X ≤ 1). Answer to 4 d.p.
Show answer0.1094
X ~ B(5, 0.5) under H₀: p = 0.5. The value x = 1 is observed. For H₁: p < 0.5, find the p-value P(X ≤ 1). Answer to 4 d.p.
Show answer0.1875
X ~ B(8, 0.5) under H₀: p = 0.5. The critical region is X ≥ 7. Find the probability of rejecting H₀ when it is true. Answer to 4 d.p.
Show answer0.0352
X ~ B(4, 0.5) under H₀: p = 0.5. The critical region is X ≤ 0. Find the probability of rejecting H₀ when it is true. Answer to 4 d.p.
Show answer0.0625

Common mistakes

  • Using P(X ≤ x) when H₁ says p is higher. Look at the direction of H₁.
  • Forgetting to include x itself in the sum.
  • Rejecting H₀ when the p-value is bigger than the significance level. Reject only when it is smaller.

Remember

  • p < p₀ gives P(X ≤ x); p > p₀ gives P(X ≥ x).
  • Small p-value: reject H₀.

Practise this

Worksheets 60 to 65 of Statistics practise this note. Sign in to Mathhh, write your answers by hand and see your marks straight away.

Open Mathhh

More Statistics notes

Keep learning

All Statistics notes · All study notes