Mathematics (JEE)Moderate
A fair coin is tossed repeatedly until the pattern HTH appears for the first time. What is the expected number of tosses?
- A. 8
- B. 10
- C. 6
- D. 12
Correct answer: B. 10
With the pattern HTH, the overlap of the pattern with itself is 'H' (the suffix H equals the prefix H). The expected waiting time for a pattern is 2ⁿ + 2^k where k is the overlap length in binary terms: 2³ + 2¹ = 10.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- A fair die is rolled repeatedly until a 1 is immediately followed by a 2 for the first time. What is the expected number of rolls?
- A gambler starts with ₹3 and bets ₹1 per round, winning the round with probability 2/3 and losing it with probability 1/3. The gambler…
- A fair coin is tossed repeatedly. Player A starts with ₹2 and wins or loses ₹1 each toss; play stops when A has ₹0 or ₹6. What is the…
- A particle starts at position 2 on the integers 0, 1, 2, 3, 4. At each step it moves one unit left or right with equal probability…
- A random walker sits on the vertices of a cycle with 5 vertices and moves to one of its two neighbours with probability 1/2 each. Starting…
- A weather chain has two states, sunny (S) and rainy (R). From sunny, the next day is sunny with probability 3/5 and rainy with probability…