Wrong mean calculation

Wrong mean calculation

Return to topic list

Tue Mar 5 22:36:02 2024   by   Rich
Ran this troll program

N:=3;
Roll := N#(accumulate x:=d6 while x < N);
sum largest N Roll

Which produced a range from 9-18, as expected. But the stats below it are wrong:
Average value =  9.48148148148
Spread = 6.3824175492
Mean deviation = 2.83290148859
 
Wed Mar 6 10:23:35 2024   by   Torben
When I try the same, I get

Average value =   13.4999237922
Spread =           1.93675182458
Mean deviation =   1.59374100325

which looks o.k.  Can you try again and see if you get the same?
 
Wed Mar 6 10:27:41 2024   by   Torben
I think I know what went wrong:  If I set the iteration bound to 2, I get the values you reported.  You should set it higher.  Even the default bound of 12 is a bit low for this sort of roll (where the reroll chance is relatively high).  30 is better, which gives me:

Average value =   13.5
Spread =           1.9364916731
Mean deviation =   1.59375

 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list