Hi everyone,
I am looking for a sound method to test whether a distribution is significantly different from a discrete uniform one. Basically I have a small sample of the outcomes of an unfair die roll and I need to "prove" that the die is unfair.
I tried two methods. The first was
which gave
while the second one was
which gave
So basically it seems that the result depends on the method. Do you have any ideas about why this happens and/or better solutions?
Thank you
I am looking for a sound method to test whether a distribution is significantly different from a discrete uniform one. Basically I have a small sample of the outcomes of an unfair die roll and I need to "prove" that the die is unfair.
I tried two methods. The first was
Code:
ksmirnov mydata = runiformint(1, 6)
Code:
One-sample Kolmogorov-Smirnov test against theoretical distribution runiformint(1, 6) Smaller group D P-value ----------------------------------- mydata: -0.3500 0.007 Cumulative: -5.8000 0.000 Combined K-S: 5.8000 0.000
Code:
chitest mydata, count sep(0)
Code:
observed frequencies of mydata; expected frequencies equal Pearson chi2(5) = 2.2000 Pr = 0.821 likelihood-ratio chi2(5) = 2.2530 Pr = 0.813 +-------------------------------------------------------------+ | mydata observed expected notes obs - exp Pearson | |-------------------------------------------------------------| | 1 4 3.333 * 0.667 0.365 | | 2 2 3.333 * -1.333 -0.730 | | 3 2 3.333 * -1.333 -0.730 | | 4 3 3.333 * -0.333 -0.183 | | 5 5 3.333 * 1.667 0.913 | | 6 4 3.333 * 0.667 0.365 | +-------------------------------------------------------------+ * 1 <= expected < 5
Thank you
Comment