Currently I am trying to understand hypothesis testing, but I have a problem with the following question:
A casino owner is concerned based on past experience that his dice show 6 too often. He makes his employees roll a die 18,000 times and they observe 3,123 sixes. Is the die biased?
So from this text I used the following test: $$ h0 := p = \frac{1}{6} = unbiased $$ $$ h1 := p \ne \frac{1}{6} = biased $$ The problem is that I don't how to calculate it. First I tried this formula: $$ \frac{\hat x - \mu}{SE} $$ $$ SE= \frac{\sigma}{\sqrt{n}} $$
$$ \frac{3123-3000}{\frac{\sqrt{18000\cdot\frac{3123}{18000}\cdot\frac{14874}{18000}}}{\sqrt{18000}}} = 0.018478$$
Also I tried the following formula:
$$ \frac{\frac{3123}{18000} - \frac{3000}{18000}}{\sqrt{\frac{\frac{1}{6}\cdot \frac{5}{6}}{18000}}} =2.46$$ And if I look at the z value. It is different than the answer of my textbook.
Did I use the wrong formula?
According to the book, the answer is .0081
When doing this test what we're interesting in is the distribution of our test statistic when the null hypothesis is true, which is binomial$(n = 18,000, p = 1/6)$. So the standard error need not be estimated from the data, it's known to be exactly $\sqrt{18,000 \times 1/6 \times 5/6}$, and this should be the value you use in your calculation. More importantly, the formula you use for the standard error is for the proportion of sixes, but you're apparently using the total number as a test statistic, so your standard error is off by a fairly large factor.
Also, the number of sixes go from being 3,123 in the problem to 3,126 in your answer.