Sie sind auf Seite 1von 1

So I have a coin that I tossed for 1000 times and I get 560 heads.

Is my coin a fair
coin?

Answer:
H0: Number of heads = Number of tails
Ha: Number of heads Number of tails
At a 10% significance level (=0.1),
> qbinom(.05,1000,.5)
[1] 474
> qbinom(.95,1000,.5)
[1] 526

At a 5% significance level (=0.05),


> qbinom(.025,1000,.5)
[1] 469
> qbinom(.975,1000,.5)
[1] 531

At a 1% significance level (=0.01),


> qbinom(.005,1000,.5)
[1] 459
> qbinom(.995,1000,.5)
[1] 541

Using normal approximation to the binomial distribution,


= 500
= 15.8113883008
= 0.05
Z = (560-500)/15.8113883008= 3.79473319

Das könnte Ihnen auch gefallen