QlarIITy

MathematicsJEE Main 2021 · 16 MarchInteger

Consider the statistics of two sets of observations as follows:
Observation I: size 10, mean 2, variance 2
Observation II: size nn, mean 3, variance 1
If the variance of the combined set of these two observations is 179\frac{17}{9}, then the value of nn is equal to ______.

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A combined variance includes the gap between the group means.

Concept refresher. For two groups of sizes n1n_1, n2n_2 with variances v1v_1, v2v_2, whose means lie at distances d1d_1, d2d_2 from the combined mean, the combined variance is

V=n1(v1+d12)+n2(v2+d22)n1+n2V = \dfrac{n_1(v_1 + d_1^2) + n_2(v_2 + d_2^2)}{n_1 + n_2}

Picture the situation. Two sets of observations with different means are pooled. The combined mean lies between the two means, closer to the mean of the larger set. The combined variance has two parts: the weighted average of the two variances, and a part that comes from the gap between the two means.

Approach. Express the combined variance in terms of the unknown size and solve.

  1. Step 1: The combined mean

    The combined set has 10+n10 + n observations. The means 2 and 3 differ by 1, and the combined mean divides this gap in the ratio of the sizes: it is n10+n\dfrac{n}{10 + n} above 2 and 1010+n\dfrac{10}{10 + n} below 3.

  2. Step 2: The combined variance

    The combined variance is the weighted average of the variances plus the weighted average of the squared distances, which simplifies to 20+n10+n+10n(10+n)2\dfrac{20 + n}{10 + n} + \dfrac{10n}{(10 + n)^2}.

  3. Step 3: Solve

    Setting this equal to 179\dfrac{17}{9} and multiplying by 9(10+n)29(10 + n)^2 gives

    9n2+360n+1800=17n2+340n+1700\begin{aligned} &9n^2 + 360n + 1800 \\[4pt] &= 17n^2 + 340n + 1700 \end{aligned}

    so 2n2−5n−25=02n^2 - 5n - 25 = 0, that is (2n+5)(n−5)=0(2n + 5)(n - 5) = 0. The positive root is n=5n = 5.

Answer. 5

Sanity check. For this value the combined variance is 2515+50225=53+29=179\dfrac{25}{15} + \dfrac{50}{225} = \dfrac{5}{3} + \dfrac{2}{9} = \dfrac{17}{9}.

Common wrong answers

  • 1: Leaving out the gap term gives 20+n10+n=179\dfrac{20 + n}{10 + n} = \dfrac{17}{9} and n=1.25n = 1.25, which rounds to 1 but is not a whole number of observations.

Key takeaway

The trap. The gap term depends on both sizes, not just on the difference of the means.

How toppers think. They substitute the answer back to confirm the given variance.

Remember. V=n1(v1+d12)+n2(v2+d22)n1+n2V = \dfrac{n_1(v_1 + d_1^2) + n_2(v_2 + d_2^2)}{n_1 + n_2}

More on Variance & Standard Deviation