In: Statistics and Probability
Let p denote the probability of the coin landing on heads on a single toss.
We want to test if the coin is fair (null hypothesis) or has two heads (alternative hypothesis), i.e. we are testing:
H0 : Coin is fair or p = 1/2, vs
H1: Coin has two heads or p = 1.
Now, we will conclude that the coin is unfair (having 2 heads) if all the three tosses of the coin land on heads.
Now, the probability of committing type I error is given by:
Now, the probability of committing type II error is given by:
For any queries, feel free to comment and ask.
If the solution was helpful to you, don't forget to upvote it by clicking on the 'thumbs up' button.