Σ
SDCalc

Weighted standard deviation calculator

Sample SD, reliability weights
10.780994
Weighted mean
78.25
Weighted standard deviation (÷ Σw)
8.488963
Weighted standard deviation, frequency weights (÷ (Σw − 1))
8.531729
Sum of weights
100
Count (n)
3

Formula

x̄w = Σ(w × x) / Σw

σw = √( Σ w × (x − x̄w)² / Σw )

sᵣ = √(Σw(x − x̄w)² / (Σw − Σw²/Σw))

sw = √( Σ w × (x − x̄w)² / (Σw − 1) )

Population SD divides by Σw. Reliability sample SD divides by Σw−Σw²/Σw. Frequency sample SD requires integer counts and Σw>1.

Reference checks use frozen SciPy/NumPy constants and R datasets; they do not certify every input.

Measure weighted spread; choose reliability weights or integer frequency counts for sample SD. (xᵢ, wᵢ ≥ 0) → x̄w, σw; sw: wᵢ ∈ ℕ₀, Σw > 1.

How it is calculated

x̄w = Σ(w × x) / Σw

σw = √( Σ w × (x − x̄w)² / Σw )

sᵣ = √(Σw(x − x̄w)² / (Σw − Σw²/Σw))

sw = √( Σ w × (x − x̄w)² / (Σw − 1) )

When to use and assumptions

  • Population SD divides by Σw. Reliability sample SD divides by Σw−Σw²/Σw. Frequency sample SD requires integer counts and Σw>1.
  • wᵢ ≥ 0; Σw > 0; sᵣ: Σw−Σw²/Σw > 0; sw: wᵢ ∈ ℕ₀, Σw > 1

Demonstration inputs; results are computed at build time (UTC):

Worked example

(xᵢ, wᵢ)
(2, 1); (3, 2); (5, 3); (7, 4)
Sample SD, reliability weights
2.167948
Weighted standard deviation, frequency weights (÷ (Σw − 1))
1.911951
Weighted mean
5.1
Weighted standard deviation (÷ Σw)
1.813836
xᵢ, wᵢ
One pair per line: value, weight
σw
Weighted standard deviation (÷ Σw)
sᵣ
Sample SD, reliability weights
sw
Weighted standard deviation, frequency weights (÷ (Σw − 1))
  1. 1. Σw = 1+2+3+4 = 10; Σw² = 1+4+9+16 = 30
  2. 2. Σwx = 2+6+15+28 = 51; x̄w = 51/10 = 5.1
  3. 3. SS = Σw(x−5.1)² = 32.9
  4. 4. σw = √(32.9/10) = 1.813836
  5. 5. sᵣ = √[32.9/(10−30/10)] = 2.167948
  6. 6. sw = √[32.9/(10−1)] = 1.911951

References: numpy.average · numpy.cov (fweights / aweights, ddof). Reference versions: SciPy 1.17.1; NumPy 2.4.2. Checked: 2026-11-26.

Related calculators: Weighted mean calculator · Pooled standard deviation calculator