Question
Consider the following experiment.
Step 1. Flip a fair coin twice.
Step 2. If the outcomes are (TAILS, HEADS) then output Y and stop.
Step 3. If the outcomes are either (HEADS, HEADS) or (HEADS, TAILS), then output N and stop.
Step 4. If the outcomes are (TAILS, TAILS), then go to Step 1.
The probability that the output of the experiment is Y is (up to two decimal places) _____.
Official answer and solution
- Accepted answers
- 0.33 to 0.34
- From
- Official GATE 2016 answer key
Solution
Set up the recursive probability equation based on coin toss outcomes in the first round.
Let be the probability that the experiment ultimately terminates with output .
In Step 1, a fair coin is tossed twice. The sample space consists of 4 equally likely outcomes, each with probability :
- : Outputs and stops immediately (probability ).
- or : Outputs and stops immediately (probability ).
- : Returns to Step 1, restarting the experiment (probability ).
By the law of total probability:
Solve for :
Rounded to two decimal places, the probability is 0.33.
0.33
Omitting the restart on and simply taking .
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2016 Computer Science and Information Technology (CS) Session 1
- Question
- 39 of 65, printed as CS Q.29
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.