Probability and Statistics
Rolling the dice…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Probability and Statistics
Rolling the dice…
One roll tells you little. The average of thousands settles on the expected value — inside a band that narrows like 1/√n, which is why more data helps, and why it helps slowly.
Share of each value in the first run so far (white ticks: the true probabilities)
Five people each roll a fair die, again and again, and keep track of their average so far. After one roll, the average is just that roll — anywhere from 1 to 6.