Mathematics · Simulator 047
Choose a probability distribution (normal, binomial, Poisson, exponential, uniform), set its parameters, and draw random samples. Watch the histogram fill in and settle onto the theoretical shape as the sample grows.
The histogram is scaled to a density (or probability for discrete distributions), so it can be compared directly with the theoretical curve. Sample statistics wander for small samples and converge as the sample grows (the law of large numbers). Samples use a seeded generator, so a run can be reproduced exactly.
Normal samples use the Box–Muller method; binomial and Poisson use direct simulation for modest parameters.
A call centre gets on average 3 calls per minute. What is the probability of no calls in a given minute, and what is the average gap between calls?
Calls per minute are Poisson(3): P(0) = e⁻³ ≈ 4.98%. The gaps are exponential with λ = 3 per minute, so the mean gap is 1/3 minute, 20 seconds. Check both with the Poisson and exponential settings.