Probability: Conditional expectation

In summary, the expected number of flips of a biased coin with probability of heads 'p', until two consecutive flips are heads, can be calculated using the law of total expectation, resulting in a final answer of (1+p)/p^2.
  • #1
IniquiTrance
190
0

Homework Statement


What is the expected number of flips of a biased coin with probability of heads 'p', until two consecutive flips are heads?

Homework Equations


The Attempt at a Solution



Let T_1 = first flip is tails, H_1 = first flip is heads. and T_2, H_2 for second flip.

[itex] \mathbb{E}[X] = \mathbb{E}[X|T_1]\mathbb{P}[T_1] + \mathbb{E}[X|H_1]\mathbb{P}[H_1] [/itex]

[itex] = \mathbb{E}[X|T_1]\mathbb{P}[T_1] + \mathbb{P}[H_1]\left(\mathbb{E}[X|H_1H_2]\mathbb{P}[H_2]+\mathbb{E}[X|H_1T_2]\mathbb{P}[T_2]\right)[/itex]

[itex] = (1-p)(1+ \mathbb{E}[X]) + p(2p+(2+\mathbb{E}[X])(1-p))[/itex]

[itex] = \frac{1+p}{p^2} [/itex]

I know that the final answer is correct.

My question is whether I am allowed to condition on the 2nd flip the way I did.

Thanks!
 
Physics news on Phys.org
  • #2


Yes, it is acceptable to condition on the second flip in this way. This approach is known as the law of total expectation or the tower property, which states that the expected value of a random variable can be calculated by taking the weighted average of its conditional expected values, where the weights are the probabilities of the corresponding events. In this case, you are conditioning on the outcome of the second flip, which is a valid approach for calculating the expected number of flips until two consecutive heads.
 

FAQ: Probability: Conditional expectation

1. What is conditional expectation in probability?

Conditional expectation is the expected value of a random variable, given that certain conditions or events have already occurred. It is a way to measure the average value of a random variable, taking into account specific conditions that may affect the outcome.

2. How is conditional expectation calculated?

Conditional expectation is calculated by multiplying the probability of each possible outcome by its corresponding value, and then adding all of these products together. This can be represented mathematically as E(X|Y) = ∑x P(X=x|Y) * x, where X is the random variable and Y is the condition.

3. What is the difference between conditional and unconditional expectation?

Unconditional expectation, also known as the expected value, is the average value of a random variable without considering any specific conditions. Conditional expectation takes into account certain conditions or events that may impact the outcome, and calculates the average value accordingly.

4. How is conditional expectation used in real life?

Conditional expectation is used in various fields such as statistics, economics, and finance to make predictions and decisions based on specific conditions or events. For example, in insurance, conditional expectation can be used to calculate the expected payout for a certain policy given specific factors such as age, location, and health status.

5. What is the relationship between conditional expectation and conditional probability?

Conditional expectation and conditional probability are closely related, as they both involve calculating the likelihood of an event occurring given certain conditions. However, conditional expectation focuses on the expected value of a random variable, while conditional probability calculates the likelihood of an event occurring. They can be used together to make more accurate predictions and decisions.

Back
Top