Seven-sided dice from five-sided dice: Difference between revisions
Content added Content deleted
m (→{{header|jq}}: ce) |
(→{{header|jq}}: seven) |
||
Line 1,255: | Line 1,255: | ||
["DEBUG:",[19,14,6,18,7,5,1]] |
["DEBUG:",[19,14,6,18,7,5,1]] |
||
The χ2 statistic for a trial of 70 virtual tosses is 29.2. |
The χ2 statistic for a trial of 70 virtual tosses is 29.2. |
||
Using a two-sided χ2-test with |
Using a two-sided χ2-test with seven degrees of freedom (1.69, 16.013), it is reasonable to conclude that |
||
this is higher than would be expected for a fair die. |
this is higher than would be expected for a fair die. |
||
Line 1,261: | Line 1,261: | ||
["DEBUG:",[9,11,9,10,15,11,5]] |
["DEBUG:",[9,11,9,10,15,11,5]] |
||
The χ2 statistic for a trial of 70 virtual tosses is 5.4. |
The χ2 statistic for a trial of 70 virtual tosses is 5.4. |
||
Using a two-sided χ2-test with |
Using a two-sided χ2-test with seven degrees of freedom (1.69, 16.013), it is reasonable to conclude that |
||
this is consistent with the die being fair. |
this is consistent with the die being fair. |
||
</pre> |
</pre> |
||
Line 1,269: | Line 1,269: | ||
["DEBUG:",[41440,57949,15946,44821,117168,339337,383339]] |
["DEBUG:",[41440,57949,15946,44821,117168,339337,383339]] |
||
The χ2 statistic for a trial of 1000000 virtual tosses is 982157.0011039999. |
The χ2 statistic for a trial of 1000000 virtual tosses is 982157.0011039999. |
||
Using a two-sided χ2-test with |
Using a two-sided χ2-test with seven degrees of freedom (1.69, 16.013), it is reasonable to conclude that |
||
this is higher than would be expected for a fair die. |
this is higher than would be expected for a fair die. |
||
Line 1,275: | Line 1,275: | ||
["DEBUG:",[142860,143087,142213,142065,143359,143494,142922]] |
["DEBUG:",[142860,143087,142213,142065,143359,143494,142922]] |
||
The χ2 statistic for a trial of 1000000 virtual tosses is 12.298347999999999. |
The χ2 statistic for a trial of 1000000 virtual tosses is 12.298347999999999. |
||
Using a two-sided χ2-test with |
Using a two-sided χ2-test with seven degrees of freedom (1.69, 16.013), it is reasonable to conclude that |
||
this is consistent with the die being fair. |
this is consistent with the die being fair. |
||
</pre> |
</pre> |