Skip to content
NCERT Exemplar · Q7

Q.The mean and standard deviation of a set of n1n_1 observations are x‾1\overline{x}_1 and s1s_1, respectively while the mean and standard deviation of another set of n2n_2 observations are x‾2\overline{x}_2 and s2s_2, respectively. Show that the standard deviation of the combined set of (n1+n2)(n_1 + n_2) observations is given by
[!FORMULA] S.D.=n1(s1)2+n2(s2)2n1+n2+n1n2(x‾1−x‾2)2(n1+n2)2\text{S.D.} = \sqrt{\frac{n_1(s_1)^2 + n_2(s_2)^2}{n_1 + n_2} + \frac{n_1 n_2 (\overline{x}_1 - \overline{x}_2)^2}{(n_1 + n_2)^2}}

Sikkim CbseShort· 5mImportance★★★★★est
57% · 51/90 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

When combining two datasets, the pooled variance splits into two parts: the weighted average of individual variances plus a correction term that accounts for the separation between the two group means. The combined standard deviation is n1s12+n2s22n1+n2+n1n2(x‾1−x‾2)2(n1+n2)2\sqrt{\frac{n_1 s_1^2 + n_2 s_2^2}{n_1 + n_2} + \frac{n_1 n_2 (\overline{x}_1 - \overline{x}_2)^2}{(n_1 + n_2)^2}}.

Why combining datasets isn't straightforward

When you merge two groups of observations, you can't simply average their standard deviations. The combined variance depends not only on how spread out each group is internally, but also on how far apart the two group means are from each other. If the groups have very different means, the combined dataset will show additional spread beyond what either group had individually.

The key insight: variance measures the average squared distance from the mean. When we pool data, we need a new combined mean, and every observation's distance must be recalculated from this new center.

Derivation

Let the first set have observations x1,x2,…,xn1x_1, x_2, \ldots, x_{n_1} and the second set have y1,y2,…,yn2y_1, y_2, \ldots, y_{n_2}.

1. Find the combined mean

The combined mean x‾\overline{x} of all (n1+n2)(n_1 + n_2) observations is the weighted average:

x‾=n1x‾1+n2x‾2n1+n2\overline{x} = \frac{n_1 \overline{x}_1 + n_2 \overline{x}_2}{n_1 + n_2}

This follows because the sum of all observations equals n1x‾1+n2x‾2n_1 \overline{x}_1 + n_2 \overline{x}_2.

2. Express the combined variance

The variance of the combined set is:

σ2=1n1+n2[∑i=1n1(xi−x‾)2+∑j=1n2(yj−x‾)2]\sigma^2 = \frac{1}{n_1 + n_2} \left[ \sum_{i=1}^{n_1} (x_i - \overline{x})^2 + \sum_{j=1}^{n_2} (y_j - \overline{x})^2 \right]

We need to relate each term to the known quantities s12s_1^2, s22s_2^2, x‾1\overline{x}_1, and x‾2\overline{x}_2.

3. Rewrite the first sum using a clever algebraic trick

For any observation xix_i from the first group:

xi−x‾=(xi−x‾1)+(x‾1−x‾)x_i - \overline{x} = (x_i - \overline{x}_1) + (\overline{x}_1 - \overline{x})

Squaring both sides:

(xi−x‾)2=(xi−x‾1)2+2(xi−x‾1)(x‾1−x‾)+(x‾1−x‾)2(x_i - \overline{x})^2 = (x_i - \overline{x}_1)^2 + 2(x_i - \overline{x}_1)(\overline{x}_1 - \overline{x}) + (\overline{x}_1 - \overline{x})^2

Summing over all n1n_1 observations:

∑i=1n1(xi−x‾)2=∑i=1n1(xi−x‾1)2+2(x‾1−x‾)∑i=1n1(xi−x‾1)+n1(x‾1−x‾)2\sum_{i=1}^{n_1} (x_i - \overline{x})^2 = \sum_{i=1}^{n_1} (x_i - \overline{x}_1)^2 + 2(\overline{x}_1 - \overline{x}) \sum_{i=1}^{n_1} (x_i - \overline{x}_1) + n_1 (\overline{x}_1 - \overline{x})^2

Tip

The middle term vanishes! Since ∑i=1n1(xi−x‾1)=0\sum_{i=1}^{n_1} (x_i - \overline{x}_1) = 0 (deviations from the mean always sum to zero), we get:

∑i=1n1(xi−x‾)2=n1s12+n1(x‾1−x‾)2\sum_{i=1}^{n_1} (x_i - \overline{x})^2 = n_1 s_1^2 + n_1 (\overline{x}_1 - \overline{x})^2

where we used s12=1n1∑i=1n1(xi−x‾1)2s_1^2 = \frac{1}{n_1} \sum_{i=1}^{n_1} (x_i - \overline{x}_1)^2.

4. Apply the same logic to the second group

By identical reasoning:

∑j=1n2(yj−x‾)2=n2s22+n2(x‾2−x‾)2\sum_{j=1}^{n_2} (y_j - \overline{x})^2 = n_2 s_2^2 + n_2 (\overline{x}_2 - \overline{x})^2

5. Combine and simplify

The combined variance becomes:

σ2=1n1+n2[n1s12+n1(x‾1−x‾)2+n2s22+n2(x‾2−x‾)2]\sigma^2 = \frac{1}{n_1 + n_2} \left[ n_1 s_1^2 + n_1 (\overline{x}_1 - \overline{x})^2 + n_2 s_2^2 + n_2 (\overline{x}_2 - \overline{x})^2 \right]

=n1s12+n2s22n1+n2+n1(x‾1−x‾)2+n2(x‾2−x‾)2n1+n2= \frac{n_1 s_1^2 + n_2 s_2^2}{n_1 + n_2} + \frac{n_1 (\overline{x}_1 - \overline{x})^2 + n_2 (\overline{x}_2 - \overline{x})^2}{n_1 + n_2}

6. Simplify the second term

Substitute x‾=n1x‾1+n2x‾2n1+n2\overline{x} = \frac{n_1 \overline{x}_1 + n_2 \overline{x}_2}{n_1 + n_2}: …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.