A fair coin is tossed repeatedly and independently until two consecutive heads or two consecutive tails appear. Find the PMF, the expected value, and the variance of the number of tosses.

Adrianna Macias

Adrianna Macias

Answered question

2022-07-17

Geometric Random Variable Problem
A fair coin is tossed repeatedly and independently until two consecutive heads or two consecutive tails appear. Find the PMF, the expected value, and the variance of the number of tosses.

Answer & Explanation

yermarvg

yermarvg

Beginner2022-07-18Added 19 answers

Step 1
Let our random variable, the count of tosses until termination, be denoted as N.
If the termination is the first occurance of two consecutive tosses of the same result, then you must toss a pattern like …THTHTHTT or …HTHTHTHH . Ie: Always alternating until the very end. Obviously.
Step 2
So, to stop on toss # 2k, for any k { 1 , 2 , }, you must toss either: k 1 consecutive TH pairs then a TT pair, or k 1 consecutive HT pairs then a HH pair. So what is P ( N = 2 k )?
Step 2
Likewise to stop on toss # 2 k + 1, for any k { 1 , 2 , }, you must toss either: k consecutive TH pairs then a single H, or k consecutive HT pairs then a single T. So what is P ( N = 2 k + 1 )?
Then you have a piecewise function for your probability depending on whether the count you seek is even or odd.
P ( N = n )   =   { _ : n 2 N + _ : n 2 N + + 1

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?