See with pictures and motion the shape of the spread when many small chance events add up, and how averages cluster together.
Draw the shapes of the binomial, Poisson, Gaussian, Cauchy (Lorentz form), Gamma, Beta, Student’s t, and Weibull distributions, and obtain the probability of an interval from the cumulative distribution function. Check that some distributions have no mean or variance, and that even with the same full width at half maximum the Gaussian and Cauchy distributions have completely different tails. In ②, you will see that as the sample grows, the sample mean of the Gaussian distribution settles down while that of the Cauchy distribution does not (the median does settle).
Each time a ball hits a pin, it goes right or left. If you drop many balls, what shape will they pile up into in the bins?
These are synthetic data for teaching purposes (the path of each ball is decided by random numbers; this is not footage of a real board).
Roll several dice and take the average of the faces; repeat this many times and see how the averages are scattered.
These are synthetic data for teaching purposes (the dice faces are decided by random numbers).
A lamp shines on a wall in a random direction. See how the average and the middle value of the spots it hits change.
These are synthetic data for teaching purposes (the direction of the light is decided by random numbers).
Probability density function (probability mass function for a discrete distribution) and interval probability
The shaded area is the probability P(x1 ≤ x ≤ x2) that the variable falls in the interval. The value is obtained from the difference of the cumulative distribution function below, F(x2) − F(x1).
Cumulative distribution function F(x) = P(X ≤ x). The length of the vertical arrow is F(x2) − F(x1), that is, the shaded area in the figure above. For a discrete distribution F is a staircase, and the interval includes its end integers.
Trend of the sample mean x̄n as the sample size n increases
Add i.i.d. samples one at a time and draw the sample mean (or median) at each step. The horizontal axis is logarithmic. The left panel is the Gaussian distribution and the right panel is the Cauchy distribution (or the t distribution), with the same settings and the same seed.
The description of this simulator (procedure, formulas, conditions, questions) is on the explanation page “Explanation of the Probability Distribution Simulator”.
Back to Machine Learning — From Probability to GPT (Contents) | Text: Chapter 3, Section 3.5, Section 3.7 | Equations and explanation (explanation page) | Equations are typeset with the browser’s built-in MathML (no external library).