Introduction
Sometimes two separate groups of observations are merged and you must find the combined standard deviation. The combined SD uses each group's size, mean and variance - it accounts for within-group spread and the shift between group means.
This pattern is important for problems that combine class scores, batch measurements, or sample results from two subgroups.
Pattern: Combined Standard Deviation (Two Data Sets)
Pattern
The key concept: Combined variance = weighted sum of (each group's variance + squared difference between group mean and combined mean), divided by total size. SD = square root of combined variance.
Let group 1 have size n₁, mean x̄₁, SD σ₁.
Let group 2 have size n₂, mean x̄₂, SD σ₂.
Combined mean:
x̄ = (n₁ × x̄₁ + n₂ × x̄₂) ÷ (n₁ + n₂)
Combined variance formula:
σ² = [ n₁ × (σ₁² + (x̄₁ - x̄)²) + n₂ × (σ₂² + (x̄₂ - x̄)²) ] ÷ (n₁ + n₂)
Combined standard deviation:
σ = √σ²
Step-by-Step Example
Question
Class A: n₁ = 10 students, mean = 50, SD = 4.
Class B: n₂ = 15 students, mean = 55, SD = 5.
Find the combined mean and combined standard deviation for all 25 students.
Solution
-
Step 1: Compute combined mean x̄
x̄ = (n₁ × x̄₁ + n₂ × x̄₂) ÷ (n₁ + n₂)
= (10 × 50 + 15 × 55) ÷ 25
= (500 + 825) ÷ 25 = 1,325 ÷ 25 = 53. -
Step 2: Compute squared deviations of group means from combined mean
(x̄₁ - x̄) = 50 - 53 = -3 → (x̄₁ - x̄)² = 9.
(x̄₂ - x̄) = 55 - 53 = 2 → (x̄₂ - x̄)² = 4. -
Step 3: Form n × (σ² + (x̄ - x̄)²) for each group
For group A: n₁ × (σ₁² + (x̄₁ - x̄)²) = 10 × (4² + 9) = 10 × (16 + 9) = 10 × 25 = 250.
For group B: n₂ × (σ₂² + (x̄₂ - x̄)²) = 15 × (5² + 4) = 15 × (25 + 4) = 15 × 29 = 435. -
Step 4: Sum and divide by total size to get combined variance
Total = 250 + 435 = 685.
Combined variance σ² = 685 ÷ (10 + 15) = 685 ÷ 25 = 27.4. -
Step 5: Take square root for combined SD
Combined SD σ = √27.4 ≈ 5.24.
-
Final Answer:
Combined Mean = 53
Combined SD ≈ 5.24 -
Quick Check:
Combined mean (53) lies between 50 and 55 - closer to Class B (more students).
Combined SD (≈5.24) lies between 4 and 5 - slightly higher due to mean difference ✅
Quick Variations
1. If group sizes are equal (n₁ = n₂), combined mean = simple average of means.
2. If group means are equal (x̄₁ = x̄₂), combined variance simplifies to [n₁σ₁² + n₂σ₂²] ÷ (n₁ + n₂).
3. For more than two groups, extend the formula by summing nᵢ(σᵢ² + (x̄ᵢ - x̄)²) for all groups and dividing by total N.
Trick to Always Use
- Step 1: Always calculate the combined mean first - it’s needed in the formula.
- Step 2: Remember each bracket includes two parts: within-group variance and between-group difference.
- Step 3: Larger groups (higher n) influence the combined SD more.
Summary
Summary
In the Combined Standard Deviation (Two Data Sets) pattern:
- Combined Mean: (n₁x̄₁ + n₂x̄₂) ÷ (n₁ + n₂)
- Combined Variance: [ n₁(σ₁² + (x̄₁ - x̄)²) + n₂(σ₂² + (x̄₂ - x̄)²) ] ÷ (n₁ + n₂)
- Combined SD = √(Combined Variance)
- Formula accounts for both within-group spread and between-group mean differences.
