šŸŽ² Dice & Probability

Roll n dice with s sides. The exact distribution of the sum is found by convolution; as n grows it approaches a Gaussian (the central limit theorem), and the empirical mean and variance converge to the theoretical values (the law of large numbers).

–
Theoretical mean
–
Empirical mean
–
Theoretical variance
–
Empirical variance
–
Most likely sum
0
Total rolls
The maths. For n dice of s sides, each die has mean (s+1)/2 and variance (sĀ²āˆ’1)/12. By linearity the sum has E[Ī£] = nĀ·(s+1)/2 and Var[Ī£] = nĀ·(sĀ²āˆ’1)/12. The exact distribution is the n-fold convolution of the uniform single-die distribution — computed here as polynomial coefficient counting — and converges to a normal curve as n increases.
Casino games (two d6).
BetWin prob.PayoutExpected value