A coin that comes up heads with probability p is flipped until either a total of n heads or of m tails is amassed. Find the expected number of flips. Hint: Imagine that one continues to flip even after the goal is attained. Let X denote the number of flips needed to obtain n heads, and let Y denote the number of flips needed to obtain m tails. Note that max(X, Y) + min(X, Y) = X + Y. Compute E[max(X, Y)] by conditioning on the number of heads in the first n + m − 1 flips.

Short Answer

Expert verified

The expected number of flips will beE[min(X,Y)]=np+m1pE[M].

Step by step solution

01

Given information 

A coin that comes up heads with probability p is flipped until either a total of n heads or of m tails is amassed.

02

Solution 

From the given information we need to calculate the results,

min(X,Y)+max(X,Y)=X+Y

min(X,Y)=X+Ymax(X,Y)

E[min(X,Y)]=E[X]+E[Y]E[max(X,Y)]

The expectation values of X and Y are given as follows:

E[X]=np

E[Y]=m1p

conditioning on N, E[M] is given below,

E[M]=E[MN=i]P{N=i}

03

Solution

If i<nthen n-iheads need to be obtained,

If i>nthen m(n+m1i)tails need to be obtained.

So,

E[M]=iE[MN=i]P{N=i}

=i=0n1E[MN=i]P{N=i}+i=nn+m1E[MN=i]P{N=i}

=i=0n1n+m1+nipP{N=i}+i=nn+m1n+m1+i+1n1pP{N=i}

Now simplify the equation we get,

E[M]=n+m1+i=0n1nipn+m1ipi(1p)n+m1i+i=nn+m1i+1n1ppi(1p)n+m1i

04

Solution 

now we need to solve by using the above results,

E[min(X,Y)]=E[X]+E[Y]E[max(X,Y)]

=np+m1pnm+1i=0n1nipn+m1ipi(1p)n+m1ii=nn+m1i+1n1ppi(1p)n+m1i

=np+m1pE[M]

Thus the result is

E[min(X,Y)]=np+m1pE[M]

05

Final answer

The expected number of flips will beE[min(X,Y)]=np+m1pE[M].

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

We say that Xis stochastically larger than Y, written XstY, if, for all t,

P{X>t}P{Y>t}

Show that if XstYthen E[X]E[Y]when

(a) Xand Yare nonnegative random variables;

(b) Xand Yare arbitrary random variables. Hint:

Write Xas

X=X+-X-

where

X+=X    ifX00    ifX<0,X=0ifX0XifX<0

Similarly, represent Y as Y+-Y-. Then make use of part (a).

Urn 1contains 5white and 6black balls, while urn 2contains 8white and 10black balls. Two balls are randomly selected from urn 1and are put into urn 2. If 3balls are then randomly selected from urn 2, compute the expected number of white balls in the trio.

Hint: LetXi = 1if the i th white ball initially in urn 1is one of the three selected, and let Xi = 0otherwise. Similarly, let Yi = 1if the i the white ball from urn 2is one of the three selected, and let Yi = 0otherwise. The number of white balls in the trio can now be written as15Xi+18Yi

Let X1,X2,be a sequence of independent random variables having the probability mass functionPXn=0=PXn=2=1/2,n1

The random variable X=n=1Xn/3nis said to have the Cantor distribution.

Find E[X]andVar(X).

AThere are n+1participants in a game. Each person independently is a winner with probability p. The winners share a total prize of 1 unit. (For instance, if 4people win, then each of them receives 14, whereas if there are no winners, then none of the participants receives anything.) Let A denote a specified one of the players, and let Xdenote the amount that is received by A.

(a) Compute the expected total prize shared by the players.

(b) Argue that role="math" localid="1647359898823" E[X]=1(1p)n+1n+1.

(c) Compute E[X] by conditioning on whether is a winner, and conclude that role="math" localid="1647360044853" E[(1+B)1]=1(1p)n+1(n+1)p when B is a binomial random variable with parameters n and p

Let Xbe a random variable having finite expectation μand variance σ2, and let g(*)be a twice differentiable function. Show that

E[g(X)]g(μ)+g''(μ)2σ2

Hint: Expand g(·)in a Taylor series about μ. Use the first

three terms and ignore the remainder.

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free