Lu Tells You He Ipped A Coin N Times And Recorded The Number Of Heads He Observe

We wish to test if Lu is telling the truth about how this data was collected (did the data really come from flipping a coin?).

(a) Find the MLEs of n and p under H0. Be sure to write out the hypotheses that you are testing. Using R to get numerical approximations is okay.

(b) Calculate the expected counts.

(c) Calculate the appropriate test statistic and state its distribution under H0.

(d) Calculate the p−value of this test and make you conclusions.