# Rolling Two Dice with Weighted History

Rolling Two Dice with Weighted History

This Demonstration simulates rolling two dice but speeds up convergence to the expected values. The first rolls simulate rolling two dice normally, while subsequent rolls are weighted according to the gambler's fallacy—numbers that have come up many times before are less likely to come up compared to the expected frequencies.

n

The "random seed" slider determines which sequence of dice rolls occurs, and the "rolls" slider determines which roll you see (expanding the slider and clicking + moves to the next roll). The default start is after 36 dice rolls, but you can reset the number of rolls back to zero. Adjusting any of the sliders other than "rolls" generates a new sequence of dice rolls.

The list of all rolls up to the current roll is shown, followed by the number of times each roll has occurred (in a list of the form , where is the number of times has occurred). For playing games, you can hide the data.

{{2,},{3,},…,{12,}}

f

2

f

3

f

12

f

i

i