AI Grounds

Open AI Grounds on a desktop

These interactive lessons need a larger screen. Please continue on a desktop or laptop computer.

Guided discovery

Sampling Distributions & Standard Error

Repeat samples. Measure how their means vary.

Independent, equal-chance draws with replacement from a known fixed population. Records can repeat. Current source values: 2, 4, 6, 8; population mean = 5. This is an ideal model illustrated by reproducible samples.

Number of observations inside each mean. Extend or shorten the same prepared samples. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Highlight another of the same 200 sample means, without changing the batch. Use arrow keys on the slider. Press Enter or leave the number field to apply an exact edit.

Selected sample 1 of 200. Each sample contains 1 observation from Bounded values. The repetition count 200 is different from sample size n = 1.

200 sample means

A sampling distribution describes a statistic over possible repeated samples. These bars count a finite batch of 200 sample means, not individual observations or an exact probability law. Orange dashed line: population mean 5. Indigo solid line: selected mean 6.00000.

Count010020002.557.510Sample mean · fixed 0–10 scale

Observed means range from 2.00000 to 8.00000. Each bin has width 0.25 and includes its lower endpoint, excluding its upper endpoint; the last includes 10. Count axis remains 0–200 as size changes.

Population SD

Spread of individual source values.

2.2361

σ = √mean[(value − 5)²]

Theoretical SE

SD of the model’s sample-mean distribution.

2.2361

σ / √n = 2.2361 / √1

Batch SD

Descriptive spread of these 200 means.

2.1821

√[Σ(mean − batch average)² / 200]

Sample 1: total 6 / size 1 = mean 6.00000. Signed gap from population mean 5 = 1.00000; absolute error = 1.00000. Theoretical SE = 2.236068.

Batch average of 200 means = 4.720000. Batch SD = 2.182109, computed around this batch average with denominator 200; it need not equal theoretical SE. Recent individual observations in the selected sample: 6.

Exact means of the 200 samples
Each sample has 1 observations. Selecting a sample changes its marker only.
SampleTotalMean
1 · selected66.00000
222.00000
344.00000
488.00000
588.00000
666.00000
788.00000
822.00000
944.00000
1044.00000
1144.00000
1266.00000
1366.00000
1422.00000
1588.00000
1644.00000
1744.00000
1888.00000
1988.00000
2044.00000
2188.00000
2222.00000
2388.00000
2422.00000
2522.00000
2644.00000
2788.00000
2866.00000
2988.00000
3044.00000
3188.00000
3222.00000
3366.00000
3444.00000
3544.00000
3666.00000
3766.00000
3844.00000
3922.00000
4022.00000
4122.00000
4244.00000
4388.00000
4466.00000
4544.00000
4688.00000
4766.00000
4844.00000
4944.00000
5022.00000
5122.00000
5266.00000
5388.00000
5444.00000
5566.00000
5688.00000
5766.00000
5844.00000
5922.00000
6066.00000
6166.00000
6266.00000
6322.00000
6422.00000
6522.00000
6644.00000
6744.00000
6822.00000
6966.00000
7022.00000
7122.00000
7244.00000
7366.00000
7422.00000
7588.00000
7644.00000
7788.00000
7844.00000
7966.00000
8066.00000
8188.00000
8288.00000
8344.00000
8466.00000
8566.00000
8688.00000
8722.00000
8844.00000
8944.00000
9044.00000
9144.00000
9222.00000
9366.00000
9466.00000
9566.00000
9622.00000
9744.00000
9822.00000
9966.00000
10044.00000
10144.00000
10222.00000
10322.00000
10466.00000
10522.00000
10688.00000
10766.00000
10822.00000
10988.00000
11066.00000
11166.00000
11244.00000
11344.00000
11444.00000
11522.00000
11688.00000
11722.00000
11822.00000
11922.00000
12088.00000
12188.00000
12288.00000
12366.00000
12444.00000
12522.00000
12622.00000
12744.00000
12822.00000
12922.00000
13022.00000
13188.00000
13244.00000
13344.00000
13422.00000
13566.00000
13622.00000
13744.00000
13866.00000
13988.00000
14088.00000
14166.00000
14266.00000
14366.00000
14488.00000
14588.00000
14644.00000
14722.00000
14822.00000
14922.00000
15066.00000
15122.00000
15222.00000
15366.00000
15444.00000
15566.00000
15644.00000
15788.00000
15844.00000
15944.00000
16022.00000
16166.00000
16266.00000
16322.00000
16422.00000
16522.00000
16666.00000
16744.00000
16866.00000
16944.00000
17066.00000
17122.00000
17244.00000
17388.00000
17488.00000
17544.00000
17622.00000
17744.00000
17822.00000
17966.00000
18044.00000
18122.00000
18288.00000
18344.00000
18444.00000
18522.00000
18644.00000
18766.00000
18822.00000
18922.00000
19088.00000
19166.00000
19288.00000
19388.00000
19444.00000
19544.00000
19666.00000
19722.00000
19888.00000
19988.00000
20044.00000
Exact histogram counts
40 bins of width 0.25. Counts sum to 200; empty bins included.
Mean intervalCount
[0, 0.25)0
[0.25, 0.5)0
[0.5, 0.75)0
[0.75, 1)0
[1, 1.25)0
[1.25, 1.5)0
[1.5, 1.75)0
[1.75, 2)0
[2, 2.25)56
[2.25, 2.5)0
[2.5, 2.75)0
[2.75, 3)0
[3, 3.25)0
[3.25, 3.5)0
[3.5, 3.75)0
[3.75, 4)0
[4, 4.25)56
[4.25, 4.5)0
[4.5, 4.75)0
[4.75, 5)0
[5, 5.25)0
[5.25, 5.5)0
[5.5, 5.75)0
[5.75, 6)0
[6, 6.25)48
[6.25, 6.5)0
[6.5, 6.75)0
[6.75, 7)0
[7, 7.25)0
[7.25, 7.5)0
[7.5, 7.75)0
[7.75, 8)0
[8, 8.25)40
[8.25, 8.5)0
[8.5, 8.75)0
[8.75, 9)0
[9, 9.25)0
[9.25, 9.5)0
[9.5, 9.75)0
[9.75, 10]0
Assumptions and reproducible sampling

For independent draws with replacement from a fixed finite-variance source, Var(sample mean) = population variance / n and SE = σ / √n. These known-source identities require no normal shape. We use population SD, not an estimated sample SD; dependent or without-replacement designs require other formulas.

Seed 1309 creates 200 nonoverlapping blocks of 400 uniform draw positions using a 32-bit generator. Size reveals each block’s prefix; source changes map the same positions to new values. Sample number highlights one existing mean without resampling. Finite pseudorandom illustrations do not prove independence or convergence.

Theoretical SE describes all possible means under the model. The histogram and descriptive Batch SD summarize only 200 realized means; denominator 200 treats that batch as the complete displayed list. Neither quantity bounds one sample’s error or guarantees that every larger prefix improves. More repeated samples refine a distribution illustration; they do not change n or theoretical SE. Normal approximation, estimated SE, confidence intervals, dependence and bias correction are outside this lesson.

Berkeley SticiGui · Standard error and the square-root rule