What is it about?
A proven medicine cures of patients. A new one is claimed to be better. It is tested on people; is the number cured.
- Null hypothesis , alternative , significance level .
- We calculate in the boundary case , i.e. .
The critical region is with the smallest such that :
Decision rule: reject if . Rejecting a true is a type I error (probability at most here). Keeping although holds is a type II error; for a true : , power . Not rejecting does not prove .
Try it
- Tap bars in the upper histogram to set the observed value . When is rejected? Load example
- Switch between and and watch the red and orange areas. α = 1 %
- Press “Let p₁ move” and watch shrink along the power curve.
- Set and draw 100 samples: how often is wrongly rejected? Boundary case
Tasks
Task 1: Coin
A coin is tossed times; test against at the level. Find the critical region. Load task
Show solution
but , so the critical region is . Show in the simulation
Task 2: Type II error
In fact the coin is biased with . How likely is it that the test misses this? Load task
Show solution
, power . Show in the simulation
Task 3: Seeds (left-tailed)
At least of seeds are promised to germinate. Of seeds, germinate. Test at the level. Load task
Show solution
, , so the critical region is . Since lies in it, is rejected. Show in the simulation
Ideas for the classroom
- Use it to introduce the procedure of a one-sided test and to compare both kinds of error; the power curve can serve as an outlook.
- Drawing many samples with makes the type I error rate tangible.
- Common stumbling blocks:
- “ was not rejected, so is true.”
- Using instead of the tail sum .
- Computing with instead of the true .