Mathematics (JEE)HardGATE CS · ICPC
A fair coin decides each round of a gambling game: a player with 2 units wins or loses 1 unit with probability 1/2 each round, and the game ends when the player holds 0 or 7 units. What is the expected number of rounds played?
- A. 10
- B. 5
- C. 4
- D. 14
Correct answer: A. 10
For a fair walk on {0, ..., N} started at i, the expected duration is i(N - i). With i = 2 and N = 7 this is 2 x 5 = 10.
Practise more Permutations, Combinations and Probability questionsPermutations, Combinations and Probability: notes and key points
More Permutations, Combinations and Probability questions
- A simple symmetric random walk starts at 0 and takes steps of +1 or -1 with probability 1/2 each. What is the probability that it first…
- The 6 letters of the word BANANA are arranged in all distinct orders, each equally likely. What is the probability that the three letters…
- Two cards are drawn one after the other without replacement from a standard 52-card deck. What is the probability that the second card has…
- Two fair dice are rolled. What is the probability that the two faces differ by exactly 2?
- A fair die is rolled repeatedly. What is the expected number of rolls until three 6s appear in a row?
- Three cards are dealt one after another from a standard 52-card deck without replacement. Given that the first two cards are both…