AI Engineer Path

Concept Lab · Week 5 · Prerequisites

Central Limit Theorem

Sample from a skewed distribution and watch the means form a bell curve.

The idea: Sampling and the Central Limit Theorem

Take many samples of size n from almost any distribution and compute each sample's mean. The Central Limit Theorem says those means form an approximately normal distribution centred on the true mean, with spread σ/n\sigma/\sqrt{n}, the standard error.

That n\sqrt{n} is why precision is expensive: to halve your uncertainty you need four times the data.

It is also why most statistical tests work at all: we can reason about the sampling distribution of a mean even when the raw data is skewed. Watch the histogram of means turn into a bell curve in the simulation, even from a lopsided source.

Open the full lesson in week 5

Next simulation: Is prompt B really better?