Coin 1 $(c1)$: 550 Heads of 1000 flips.
Coin 2 $(c2)$ 60 heads of 100 flips.
Let's test the follow hypothesis for each:
$$H_0: p = 1/2 \quad H_A: p \neq 1/2$$ We know that: $$\mu = np \quad \sigma = \sqrt{np(1-p)}$$
Let's compute the following for each and see which coin has a larger magnitude: $$\frac{np - \mu_{H_A}}{\sqrt{np(1-p)}}$$ Coin 1:
$$\sigma_{c1} = \sqrt{500 \cdot 1/2} = \sqrt{10}\sqrt{50 \cdot 1/2} = 5\sqrt{10}$$ $$Z_{c1} = \frac{550-500}{5\sqrt{10}} = \frac{10}{\sqrt{10}} = \sqrt{10} \approx 3.16$$
Coin 2: $$\sigma_{c2} = \sqrt{50 \cdot 1/2} = \sqrt{50 \cdot 1/2} = 5$$ $$Z_{c2} = \frac{10}{5} = 2$$
Since $|Z_{c2}| < |Z_{c1}|$ we are more confident that $c1$ is biased.
Follow up questions:
- is the above approach valid?
- When would I use $\hat{p} = \frac{\# Heads}{\# Heads + \# Tails}$ instead of $p = .5$? This is when the null is that $p = \hat{p}$?