An unbiased coin is tossed 5 times. Suppose that a variable is assigned the value when consecutive heads are obtained for , otherwise takes the value . Then the expected value of , is
- Option A:
- Option B:
- Option C:
- Option D:
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 taking the values with probabilities is
Picture the situation. Five tosses give 32 equally likely sequences. equals the length of the longest run of heads when that length is 3, 4 or 5, and 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.
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 . Weighting each value by its count,
Answer. (B)
Sanity check. The counts add to 32, all the sequences.
Why the other options are wrong
- (A) The value is , which would need a weighted sum of 6; it is .
- (C) The value is negative, but the positive values outweigh the 24 sequences that give .
- (D) The value has the wrong sign: 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.
More on Random Variables & Distribution
- The probability distribution of a random variable X is given below: X: 4k, 30/7k, 32/7k, 34/7k; P(X): 2/15…
- From a lot containing 10 defective and 90 non-defective bulbs, 8 bulbs are selected one by one with…
- If a random variable x has the probability distribution x: 0, 1, 2, 3; P(x): 0, 2k, k, 3k; x: 4, 5, 6, 7…
- All 33 on Random Variables & Distribution ›