Pergunta de entrevista da empresa Amazon

How to test a fair coin?

Respostas da entrevista

Sigiloso

21 de dez. de 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

Sigiloso

21 de jul. de 2017

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

Sigiloso

21 de dez. de 2018

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