Engineering MathematicsVery hardGATE CS (PYQ pattern)
A fair coin is tossed until either H T H or H H T appears as three consecutive tosses. Player A wins if H T H appears first. What is the probability that A wins?
- A. 1/2
- B. 2/3
- C. 1/3
- D. 3/8
Correct answer: C. 1/3
Once the sequence reaches HH, HHT is certain to come first (any T completes it). From H, the next toss gives HH (B is then sure to win) or HT; from HT, H wins for A and T resets. Solving p_H = ½·0 + ½·p_HT, p_HT = ½ + ½·p_start, p_start = p_H gives p = 1/3. (Equal expected waiting times, 10 vs 8, do not make it 1/2.)
Practise more Engineering Mathematics (GATE) questionsEngineering Mathematics (GATE): notes and key points
More Engineering Mathematics (GATE) questions
- A fair coin is tossed repeatedly. What is the expected number of tosses until the pattern H T H H first appears?
- A fair coin is tossed 10 times. What is the probability that no two consecutive tosses are both heads?
- 10 balls are thrown independently and uniformly into 5 bins. What is the variance of the number of empty bins, to two decimals?
- Each cereal pack contains one of 3 different cards, uniformly at random. Let N be the number of packs bought until all 3 cards are…
- Gambler's ruin: a player starts with ₹3, wins ₹1 with probability 2/3 and loses ₹1 with probability 1/3 on each play, and stops at ₹0 or…
- X is the number of tosses of a coin with P(head) = 1/3 up to and including the first head. What is E[X | X is even]?