Central Limit Theorem Simulator

Choose or draw a population, take thousands of samples of size n and watch the distribution of sample means grow, with the standard error and normal fit.

ทำงานในเบราว์เซอร์ของคุณ ไฟล์ไม่ออกจากอุปกรณ์ ดูวิธีตรวจสอบ

…

วิธีทำ

  1. 1
    Choose a population

    Pick a shape from the list, draw one with the sliders, or paste your own data.

  2. 2
    Set the sample size

    Move the n slider; the theoretical standard error updates at once.

  3. 3
    Take samples

    Press 1 sample to see a single draw, +10 to +1,000 for many, or Run to animate.

  4. 4
    Read the statistics

    Compare the observed SD of x̄ with σ/√n and watch the skewness fall.

  5. 5
    Compare sizes

    Open Compare sample sizes to see six values of n side by side.

  6. 6
    Practise

    Use Practice for standard error and P(x̄ > a) questions with worked steps.

เกี่ยวกับเครื่องมือนี้

The central limit theorem is the reason so much of statistics uses the normal distribution, yet it is hard to believe until you see it. Take repeated samples of size n from almost any population, record the mean of each, and those means pile up in a bell shape centred on the population mean, with a spread of σ/√n. This simulator lets you watch that happen. Pick a population (flat, a fair die, skewed either way, bimodal, U-shaped, a shape you draw with sliders or your own data), set the sample size, then add samples one at a time or let it run. The histogram of means grows with the theoretical normal curve on top, and live statistics compare the observed spread with σ/√n. A compare tab shows six sample sizes side by side, and a practice mode drills standard error and normal probabilities for x̄.

Who it is for

Students in AP Statistics, A-level and IB maths, first-year university statistics and research methods courses, and teachers who want a live demonstration on a projector.

How the simulation works

The population is a discrete distribution on a set of values. Its mean μ and standard deviation σ are computed exactly. Each sample draws n values with replacement using a seeded random number generator, so a given seed always gives the same run, which helps when a class follows along. Every sample mean is added to the histogram, which uses the full range of the population on its axis so you see the means squeeze together as n grows. The red curve is the normal distribution with mean μ and standard deviation σ/√n, scaled to the number of samples.

What to look for

With n = 1 the histogram simply copies the population. With n = 5 even a strongly skewed population gives a hump. By n = 30 most shapes look normal. The skewness figure falls towards zero, the mean of the means stays at μ, and the observed standard deviation of the means tracks σ/√n. Draw a strange shape with the sliders to test the theorem yourself.

Comparing sample sizes

The compare tab runs 3,000 samples for n = 1, 2, 5, 10, 30 and 50 and lists the standard deviation of the means beside σ/√n with a small histogram for each. Quadrupling n halves the spread, which is why bigger samples give more precise estimates but with diminishing returns.

Worked example

A fair die has μ = 3.5 and σ = 1.708. For samples of n = 25 rolls, the standard error is 1.708 ÷ 5 = 0.342. The probability that a sample mean is above 4 is about P(Z > (4 − 3.5) ÷ 0.342) = P(Z > 1.46) ≈ 0.072.

Limits

The theorem describes what happens as n grows; for small samples from very skewed or heavy-tailed populations the normal approximation can still be poor. The simulator samples with replacement from a finite list of values, which matches an infinite population, so the finite population correction is not applied. Results are simulations and vary slightly between runs unless the seed is fixed. This is a teaching tool, not statistical software for research.

ตัวอย่างพร้อมวิธีทำ

Die, n = 25: SE = 1.708 ÷ 5 = 0.342; P(x̄ > 4) ≈ P(Z > 1.46) ≈ 0.072.

สรุปสั้น ๆ

คำถามที่พบบ่อย

What does the central limit theorem say?

For a population with mean μ and finite standard deviation σ, the distribution of sample means of size n approaches a normal distribution with mean μ and standard deviation σ/√n as n grows.

What is the standard error?

The standard deviation of the sampling distribution of the mean, σ/√n. It measures how far a typical sample mean lands from μ.

Is n = 30 always enough?

It is a common rule of thumb, not a guarantee. Symmetric populations need far fewer; very skewed ones may need more. The simulator lets you check for a given shape.

Why does the histogram get narrower but not move?

The mean of the sample means always equals μ, so the centre stays put, while the spread shrinks in proportion to 1/√n.

Can I use my own data as the population?

Yes. Choose Your data and paste values; each value is treated as a member of the population and samples are drawn from them with replacement, like a bootstrap.

Why use a seed?

The seed makes the random draws repeatable, so a teacher and a class with the same seed see the same histogram.

ฟรีทั้งหมดไม่มีค่าใช้จ่าย ไม่ต้องสมัคร
ไฟล์เป็นส่วนตัวทุกอย่างทำงานในเบราว์เซอร์ของคุณ
ใช้ง่ายในภาษาของคุณมีหลายภาษา