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:
- A p-value adds the probabilities as extreme or more extreme.
- P(X = 0) = 1/1024 and P(X = 1) = 10/1024. The bar labels are counts out of 1024.
- Divide 11 by 1024.
- The p-value is 0.0107.
- The two green bars on the left are the p-value.
- p-value = P(X ≤ 1) = P(X = 0) + P(X = 1) = 1/1024 + 10/1024.
- 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:
- H₁ says p is bigger, so look at the right-hand end.
- P(X = 5) = 6/64 and P(X = 6) = 1/64. The bar labels are counts out of 64.
- Divide 7 by 64.
- The p-value is 0.1094.
- The two green bars on the right are the p-value.
- 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:
- The chance of landing in the critical region when H₀ is true.
- P(X = 0) = 1/256 and P(X = 1) = 8/256. The bar labels are counts out of 256.
- Divide 9 by 256.
- That is the significance level of the test.
- The critical region is the two green bars on the left.
- P(X ≤ 1) = 1/256 + 8/256 = 9/256.
Chance of rejecting H₀ when true = 0.0352
Try it
Show answer
0.0107Show answer
0.1094Show answer
0.1875Show answer
0.0352Show answer
0.0625Common 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