Worked example

Data: 1 2 2 3 4
Σx = 1 + 2 + 2 + 3 + 4 = 12
μ = 12/5
σ² = (49 + 4 + 4 + 9 + 64)/(25 × 5) = 26/25

→ n=5; μ=2.4; median=2; mode=2; σ²=1.04

Method and scope

Paste up to 10,000 values. Welford’s recurrence computes variance without subtracting large squared sums. s² and s require at least two values. ∅ indicates no repeated mode; ties list all modes.

σ² = Σ(x−μ)²/n; s² = Σ(x−μ)²/(n−1)

Sources