QlarIITy

MathematicsJEE Main 2020 · 7 JanuarySingle correct

An unbiased coin is tossed 5 times. Suppose that a variable XX is assigned the value kk when kk consecutive heads are obtained for k=3,4,5k = 3, 4, 5, otherwise XX takes the value −1-1. Then the expected value of XX, is

  1. Option A: 316\frac{3}{16}
  2. Option B: 18\frac{1}{8}
  3. Option C: −316-\frac{3}{16}
  4. Option D: −18-\frac{1}{8}
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. An expected value is the sum of each value times the share of outcomes that give it.

Concept refresher. The mean of a random variable XX taking the values xix_i with probabilities pip_i is

E(X)=∑xipiE(X) = \sum x_i p_i

Picture the situation. Five tosses give 32 equally likely sequences. XX equals the length of the longest run of heads when that length is 3, 4 or 5, and −1-1 otherwise. Each sequence has exactly one longest run length, so the cases do not overlap.

Approach. Count the sequences for each run length and take the weighted average.

  1. Step 1: The counts

    A run of 5 heads occurs in 1 sequence. A longest run of 4 occurs in HHHHT and THHHH, which is 2. A longest run of 3 occurs in HHHTH, HHHTT, THHHT, HTHHH and TTHHH, which is 5. The other 24 sequences give −1-1. Weighting each value by its count,

    E(X)=5×1+4×2+3×5−2432=432=18\begin{aligned} E(X) &= \dfrac{5 \times 1 + 4 \times 2 + 3 \times 5 - 24}{32} \\[4pt] &= \dfrac{4}{32} = \dfrac{1}{8} \end{aligned}

Answer. (B) 18\dfrac{1}{8}

Sanity check. The counts 1+2+5+241 + 2 + 5 + 24 add to 32, all the sequences.

Why the other options are wrong

  • (A) The value 316\dfrac{3}{16} is 632\dfrac{6}{32}, which would need a weighted sum of 6; it is 28−24=428 - 24 = 4.
  • (C) The value −316-\dfrac{3}{16} is negative, but the positive values outweigh the 24 sequences that give −1-1.
  • (D) The value −18-\dfrac{1}{8} has the wrong sign: 28−2428 - 24 is positive.

Key takeaway

The trap. Each sequence is classified once, by its longest run.

How toppers think. They list the sequences for each run length by the position of the run.

Remember. E(X)=28−2432E(X) = \dfrac{28 - 24}{32}

More on Random Variables & Distribution