Amazon interview question

How to test a fair coin?

Interview Answers

Anonymous

21 Dec 2018

You should perform a hypothesis testing, in this case the null hypothesis is p(head) = p(tail) which is 0.5 each. Then you run experiment to collect results, calculate the p value if null hypothesis is true. If p value is smaller than 5 (in most cases), you can't reject hypothesis. If p value is bigger than 5, then the null hypothesis is False, then it's a unfair coin

1

Anonymous

21 Dec 2018

Correct the answer i gave above, if p value is smaller than 5 then you can reject the null hypothesis and vice versa

Anonymous

21 Jul 2017

throw the coin for say 100 times. it should land 50/50 overall