Why can this question be treated as a question with geometric random variable without any modifications? In an infinite sequence of flipping a fair coin - 0.5 probability to get heads/tails. (every flip is independent from the others). What is the expected value of number of flips until we get Heads then Tails?

Juan Lowe

Juan Lowe

Answered question

2022-11-05

Why can this question be treated as a question with geometric random variable without any modifications?
In an infinite sequence of flipping a fair coin - 0.5 probability to get heads/tails. (every flip is independent from the others).What is the expected value of number of flips until we get Heads then Tails?

Answer & Explanation

Zoey Benitez

Zoey Benitez

Beginner2022-11-06Added 18 answers

Step 1
Let ξ i be the result of the i-th coin toss, and let X = min n { n > 0 : ξ n = T , ξ n 1 H }. You can use the law of total probability, then you have
E ( X ) = E ( X | ξ 1 = H ) P ( ξ 1 = H ) + E ( X | ξ 1 = T ) P ( ξ 1 = T )
Step 2
We can calculate the conditional expectations.
X | ξ 1 = H 1 + G e o ( 1 / 2 ) E ( X | ξ 1 = H ) = 1 + 2 = 3
E ( X | ξ 1 = T ) = 1 + E ( X )
If we substitute the results in the above equation, we get:
E ( X ) = 3 1 2 + ( E ( X ) + 1 ) 1 2
E ( X ) = 4
szklanovqq

szklanovqq

Beginner2022-11-07Added 5 answers

Step 1
Say X is the event of getting H,T in a row. Based on the first flip, we have two cases
i) The first flip is H - Then we are seeking the next flip to be a T. If we get T, we are done but if we get H, we are again looking for a T and so on.
ii) The first flip is T - We spent a flip and we are again back to where we started, that is seeking H,T.
Step 2
So, E ( X ) = 1 + 1 2 E ( X ) + 1 2 E ( T )
Now we know E ( T ) = 2
So, E ( X ) = 4

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?