🎲

Probability & Statistics

From Galton boards to Monte Carlo methods — watch randomness give rise to order through the law of large numbers and the Central Limit Theorem.

6 simulations Canvas 2D · Three.js LLN · CLT · Brownian

Probability Simulations

Click any card to open the simulation in your browser

🎈
Popular ★☆☆ Easy
Galton Board
Balls fall through a triangular peg array. Each peg is a Bernoulli trial — watch the binomial distribution converge to a Gaussian as ball count grows.
Binomial CLT Canvas 2D
🎱
★☆☆ Easy
Monte Carlo Pi
Scatter random points in a unit square. Points inside the inscribed circle: π ≈ 4 × hits / total. Live convergence plot shows √N error decay.
Monte Carlo Estimation Canvas 2D
🦠
★★☆ Moderate
SIR Epidemic Model
Stochastic SIR: each contact is a Bernoulli trial with transmission probability β. Realise different epidemic curves from the same parameters — variance in action.
Stochastic Bernoulli Three.js
🐇
★★☆ Moderate
Random Walk & Diffusion
2D random walk: mean squared displacement grows as ⟨r²⟩ = 4Dt. Toggle correlated (Lévy) walk to see anomalous diffusion with fatter tails.
Brownian Diffusion Lévy Walk
🧬
★★☆ Moderate
Genetic Drift
Wright–Fisher sampling: each generation chooses N alleles at random from the parent pool. Watch small populations fix alleles by chance, not selection.
Sampling Gene Frequency Canvas 2D
🎛️
★★★ Advanced
Percolation
Open each site with probability p. Near the critical threshold p_c ≈ 0.5927, spanning clusters fractal geometry and power-law cluster-size distributions emerge.
Phase Transition Fractal Critical
🎯
★☆☆ Beginner
Monte Carlo π
Estimate π by throwing random darts at a unit square with an inscribed circle. Watch the ratio converge to π/4 on a live convergence chart.
Monte Carlo Random Sampling Canvas 2D
📊
★★☆ Moderate New
Probability Distributions
Explore Normal, Binomial, Poisson, Exponential, and Uniform distributions interactively. Toggle between PDF and CDF, overlay two distributions, and read off P(x ≤ cursor) as you hover.
PDF / CDF Statistics Canvas 2D
📊
New ★★☆ Moderate
Central Limit Theorem
Draw repeated samples from Uniform, Exponential, Bimodal or Poisson distributions and watch the histogram of sample means converge to a normal bell curve.
Statistics Sampling Normal Distribution
⚖️
New ★★★ Advanced
Bayesian Inference
Watch a Beta-Binomial posterior update in real time as you add observations. Choose from four scenarios (biased coin, medical test, rate estimation, custom), adjust the prior and see the 95% credible interval shift with each new data point.
Bayes Theorem Beta Distribution Posterior
🔗
★★☆ Moderate New
Markov Chains
Animated state transition diagram with random walk. Compare empirical visit frequencies against the theoretical stationary distribution. Presets: weather, PageRank, gambler's ruin.
Transition Matrix Stationary Distribution Canvas 2D
📈
New ★☆☆ Beginner
Linear Regression — OLS
Click to add data points, watch the least-squares line update live. Explore slope, intercept, R² and residuals.
OLS R Squared Statistics
📊
★★☆ Moderate
Student's t-Test
Interactive one-sample, two-sample and paired t-tests with live scatter plots and t-distribution visualisation. p-value, Cohen's d, confidence intervals and statistical power computed live.
Hypothesis Testing p-value Effect Size Canvas 2D
🦅
★★☆ Moderate New
Lévy Flight
Anomalous diffusion simulator using the Mantegna algorithm for symmetric α-stable distributions. Tune the stability index α from Brownian (α=2) to Cauchy (α→1). Live log-log step histogram reveals the characteristic power-law tail.
Stable Distribution Power Law Mantegna Canvas 2D
🎯
New ★☆☆ Beginner
Galton Board
Balls cascade through a triangular peg array — each peg is a Bernoulli trial. Watch the binomial histogram converge to the normal bell curve as ball count grows.
Binomial Distribution CLT Canvas 2D

Key Concepts

Probabilistic ideas that appear across many simulations

📊
Law of Large Numbers
As N → ∞, sample mean converges to population mean. The fundamental justification for why simulation results are trustworthy statistics.
🔔
Central Limit Theorem
Sum of N independent random variables (finite variance) tends to a Gaussian regardless of individual distributions. Explains ubiquity of the bell curve.
🌊
Brownian Motion
Continuous-time limit of a random walk. Mean squared displacement ⟨r²⟩ = 2dDt in d dimensions. Underpins diffusion and stochastic calculus.
🎯
Monte Carlo Methods
Approximate integrals and probabilities by random sampling. Error scales as 1/√N independent of dimension — invaluable for high-dimensional integration.

Distributions in These Simulations

Approximate prevalence by simulation count

Gaussian / Normal
85%
Uniform
60%
Binomial
45%
Poisson
30%
Power-law / Pareto
20%

Learning Resources

Articles and tutorials about the algorithms in this category

About Probability & Statistics Simulations

Random walks, Monte Carlo, distributions, and sampling — made visible

Probability and statistics simulations make randomness concrete and measurable. Random-walk simulations plot thousands of independent Brownian-motion paths and watch the average displacement grow as √t, directly verifying Einstein's diffusion equation. Monte Carlo circle-area estimators converge toward π with each random point dropped, demonstrating the law of large numbers in real time.

Central-limit-theorem visualisers show how the sum of any bounded independent random variables converges to a Gaussian distribution as sample size grows. Dice-roll and coin-toss simulators compute empirical distributions across millions of trials in seconds. These interactive experiments build statistical intuition for concepts that underlie every branch of science, engineering, and data analysis — from hypothesis testing to Bayesian inference.

Each simulation in this category is built with accuracy and interactivity in mind. The underlying mathematical models are the same ones used in academic research and professional engineering — just made accessible through a web browser. Changing parameters in real time and observing the results is one of the most effective ways to build intuition for complex scientific and engineering concepts.

Frequently Asked Questions

Common questions about this simulation category

Do these simulations require installation?
No. Every simulation runs entirely in your web browser using WebGL and Canvas 2D. Nothing to install or download — open the page and the simulation starts immediately.
Can I use these simulations for teaching?
Yes — all simulations are designed to be educational and run without an account or login. They are widely used in university lectures, high-school science classes, and self-directed learning. Embed them via iframe or link directly.
What devices do the simulations support?
All simulations work on desktop browsers (Chrome, Firefox, Edge, Safari). Many work on mobile and tablets too, though some physics-heavy simulations benefit from the GPU performance of a desktop or laptop.

Explore Other Categories