In: Statistics and Probability
John and Jack found a coin on the sidewalk. They argued about the fairness of the coin. John claimed 40% to have Heads according to his careful observation of the coin. Jack doubted and in order to infer the fairness of the coin, he tossed the coin for 50 times and got the results as shown below with 1 representing as heads and 0 as tails:
## [1] 0 0 0 1 1 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
## [36] 0 1 0 0 0 0 0 1 1 0 0 0 0 0 0
Let p∗ as the true probability to have heads for the coin. Note that p∗ is a characteristic of the coin, and we want to make some inference about this unknown parameter. And denote X as the random variable which takes 0 if tails show up or 1 if heads show up for tossing the coin.
If John kept guessing with different proportions, we could repeat the above simulation procedure to reject or accept the guesses: reject the guess if the corresponding p-value is less than 5%. Please try out the sequence of guesses: {0, 0.01, 0.02, · · · , 0.99, 1} to get the maximum and minimum guesses in this sequence which are acceptable.