When two datasets are joined into one, we need formulas for the combined mean and combined variance. We also need to know how the mean and SD change when each observation undergoes a linear transformation.
Effect of a linear transformation y=a+bx
If yi=a+bxi for i=1,…,n, then:
Mean.yˉ=a+bxˉ.
Variance.σy2=b2σx2.
Standard deviation.σy=∣b∣σx.
In words: the mean shifts by a and scales by b; the SD only scales by ∣b∣ (it ignores the shift).
Combined mean
Suppose dataset 1 has n1 observations with mean xˉ1 and dataset 2 has n2 observations with mean xˉ2. The combined mean of all n1+n2 observations is the weighted average:
xˉ12=n1+n2n1xˉ1+n2xˉ2.
Combined variance
The combined variance is more involved. With di=xˉi−xˉ12:
σ122=n1+n2n1(σ12+d12)+n2(σ22+d22).
The terms di2 account for the deviation of each subgroup's mean from the combined mean. If both subgroups have the same mean, the formula reduces to a straightforward weighted average of variances.
Why combined variance contains di2 terms
In each subgroup, σi2 measures spread around xˉi , not around the combined mean. To get spread around the combined mean, we add the "between-group" contribution di2.
Worked examples
Example 1. Mean of 20 items is 50, SD is 5. Each is multiplied by 3 and then 4 is added (so yi=4+3xi). Find new mean and SD.
yˉ=4+3⋅50=154. σy=3⋅5=15.
Example 2. Group A: 50 items, mean 20, SD 4. Group B: 40 items, mean 30, SD 5. Find combined mean and SD.
Example 4. If y=(x−50)/4 and yˉ=2,σy=3, find xˉ and σx.
x=50+4y. xˉ=50+4⋅2=58. σx=4⋅3=12.
Example 5. The mean and SD of 10 observations are 30 and 5. By mistake one observation was recorded as 20 instead of 40. Find the corrected mean and SD.
Original ∑x=300. Corrected ∑x=300−20+40=320. Corrected mean =32.
Original σ2=25⇒∑x2/10−900=25⇒∑x2=9250.
Corrected ∑x2=9250−400+1600=10450.
New σ2=10450/10−322=1045−1024=21. σ=21≈4.58.
Try it yourself
Mean of 50 items is 30, SD is 4. Find the new mean and SD if each is multiplied by 2.
Mean of 25 items is 20, SD 4. A new item 80 is added. Find new mean and SD.
Two groups: n1=100,xˉ1=50,σ1=5; n2=200,xˉ2=55,σ2=6. Combined mean and SD.
SD of n observations is k. What is the SD of these observations plus 7?
If xˉ=35,σ=8, and y=5(x−30), find yˉ,σy.
The SD of 5 numbers 4,5,6,7,8 is , compute. If each is multiplied by 3, find new SD.
Combined mean of two sets is 50. First set: 20 items mean 45. If second set has 30 items, find its mean.
The mean of 20 items is 40. After deleting one item the new mean of 19 items becomes 42. Find the deleted item.
Mean and SD of 100 observations were 50 and 8. Two items recorded 30 and 70 should be 35 and 75. Find corrected mean and SD.
For n1=60,xˉ1=25,n2=40,xˉ2=30, find combined mean.
If σy is the SD when yi=a+bxi, prove σy=∣b∣σx.
SD of a,b,c is σ. Find SD of 5a,5b,5c.
Pitfalls / Tricks
Always use the weighted-average formula for combined means.
For combined variance, do not just average σ12 and σ22 , add the between-group d2 terms.
Shifts (+a) don't affect SD; scales (×b) do, by ∣b∣.
Insight. Variance decomposes into within-group and between-group parts , a foundational idea in statistics that returns in Class XII probability and beyond.