x=(0,1,2,3,4,5)
observed frequencies:
f=(5,17,12,15,8,3)
relative frequencies are rx=fx/60
the sample mean is
μ=∑xrx=6017+24+45+32+15=2.22
binomial mean:
μ=np , where n=6 is the number of independent trials,
p is the success probability.
p=2.22/6=0.37
The chi-squared goodness-of-fit test:
the null hypothesis is that the distribution Binom(6,0.37) is an appropriate model for the number of successes.
test statistic is:
χ2=∑Ex(fx−Ex)2
where expected frequencies are Ex=60px
px=Cnxpx(1−p)n−x
p0=0.0625,p1=0.2203,p2=0.3234,p3=0.2533
p4=0.1116,p5=0.0262
E0=3.75,E1=13.22,E2=19.40,E3=15.20
E4=6.70,E5=1.57
χ2=3.75(5−3.75)2+13.22(17−13.22)2+19.4(12−19.4)2+15.2(15−15.2)2+6.7(8−6.7)2+1.57(3−1.57)2=5.8775
df=n−2=4
critical value:
χcrit2=13.277
Since χ2<χcrit2 we accept the null hypothesis. Data can be considered to follow a binomial distribution.
Comments