Weak Law of Large Numbers Simulator


Update speed

× 

Help

What is this chart for?

The weak law of large numbers is best visualized with line chart.

This website, as one example, simulates rolling a dice several times, and calculating its relative frequency to the total of rolls. Along the x-axis, you'll see the amount of rolls that have already gone. The y-axis represents the relative frequency of the dice faces. Each line on the graph represents a dice face, 6 in total. Every roll is random, however, after enough amount of rolls, every time, the relative frequency converges to 1/6 of the total rolls, or 0.166666...

We have also plotted a black line corresponding to that ideal amount.

How do I use this site?

This website is very simple. There are four main things you can change to see the effect of the theorem. Since we are simulating dice and coin throws, the first input is the dropdown, right next to the Help button, called "Coin/Dice". Click and choose which one you'd like to simulate.

The second input is the amount of rolls the computer should do. Lower this to stop the graph earlier, or leave it at a large number to see the effect even more.

The third input is the "Start from". It starts the graph at that number. If you're playing with large numbers at the "Amount of rolls", increment this number so that it'll already start at a big amount of rolls/throws already done.