My textbook has the following question:
Here is how I approached this problem:
If the allergist wishes to test the hypothesis that at least 30% of the public is allergic to some cheese products, then the following are true:
$H_0: p<0.30$
$H_1: p\geq0.30$
(a) A type I error occurs when we reject the null hypothesis ($H_0$) when it was in fact true. So this would occur if $p < 0.30$ but we concluded that $p\geq 0.30$.
(b) A type II error occurs when we fail to reject the null hypothesis when there was sufficient evidence suggesting it is false. So this happens if $p\geq 0.30$ but we conclude that $p<0.30$
Here's what the book's answer key says, though:
This seems to be the exact opposite...and the book does the same for all other problems. Am I misunderstanding something about Type I and II errors?


Generally the null hypothesis includes the condition of equality. So I imagine that the book set up its null and alternative hypotheses the opposite of how you did.