Skip to content
Official PYQ · 2016

GATE CS 2016 Set 1 Q29 — Probability: Random Variables and Distributions

Explain with AI

Consider the following experiment.

Step 1. Flip a fair coin twice.

Step 2. If the outcomes are (TAILS, HEADS) then output YY and stop.

Step 3. If the outcomes are either (HEADS, HEADS) or (HEADS, TAILS), then output NN and stop.

Step 4. If the outcomes are (TAILS, TAILS), then go to Step 1.1.

The probability that the output of the experiment is YY is (up to two decimal places)

View worked solution

Answer: 0.33 : 0.34

When we flip a fair coin twice in Step 1, there are four equally likely outcomes, each with a probability of 14\frac{1}{4}:

  • (HEADS, HEADS)\text{(HEADS, HEADS)} with probability 14\frac{1}{4}
  • (HEADS, TAILS)\text{(HEADS, TAILS)} with probability 14\frac{1}{4}
  • (TAILS, HEADS)\text{(TAILS, HEADS)} with probability 14\frac{1}{4}
  • (TAILS, TAILS)\text{(TAILS, TAILS)} with probability 14\frac{1}{4}

Let P(Y)P(Y) be the probability that the final output of the experiment is YY.

Based on the steps of the experiment:

  1. If the outcome is (TAILS, HEADS)\text{(TAILS, HEADS)}, we output YY and stop. This occurs with probability 14\frac{1}{4}.
  2. If the outcome is (HEADS, HEADS)\text{(HEADS, HEADS)} or (HEADS, TAILS)\text{(HEADS, TAILS)}, we output NN and stop. This occurs with probability 14+14=12\frac{1}{4} + \frac{1}{4} = \frac{1}{2}.
  3. If the outcome is (TAILS, TAILS)\text{(TAILS, TAILS)}, the experiment restarts from Step 1. This occurs with probability 14\frac{1}{4}.

We can write the recurrence relation for P(Y)P(Y) as follows:

P(Y)=14+14P(Y)P(Y) = \frac{1}{4} + \frac{1}{4} P(Y)

Solving for P(Y)P(Y):

P(Y)(1−14)=14P(Y) \left(1 - \frac{1}{4}\right) = \frac{1}{4} P(Y)(34)=14P(Y) \left(\frac{3}{4}\right) = \frac{1}{4} P(Y)=13≈0.3333P(Y) = \frac{1}{3} \approx 0.3333

Rounding to two decimal places, the probability that the output of the experiment is YY is 0.33.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Probability: Random Variables and Distributions questions