Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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

Let X1,...be independent random variables with the common distribution functionF, and suppose they are independent of N, a geometric random variable with a parameter p. Let M=max(X1,...,XN).

(a) FindP{Mx}by conditioning onN.

(b) FindP{Mx|N=1}.

(c) FindP{Mx|N>1}

(d) Use (b) and (c) to rederive the probability you found in (a)

For a group of 100 people, compute

(a) the expected number of days of the year that are birthdays of exactly 3 people;

(b) the expected number of distinct birthdays.

A deck of n cards numbered 1 through n is thoroughly shuffled so that all possible n! orderings can be assumed to be equally likely. Suppose you are to make n guesses sequentially, where the ith one is a guess of the card in position i. Let N denote the number of correct guesses.

(a) If you are not given any information about your earlier guesses, show that for any strategy, E[N]=1.

(b) Suppose that after each guess you are shown the card that was in the position in question. What do you think is the best strategy? Show that under this strategy

E[N]=1n+1n1++11n1xdx=logn

(c) Supposethatyouaretoldaftereachguesswhetheryou are right or wrong. In this case, it can be shown that the strategy that maximizes E[N] is one that keeps on guessing the same card until you are told you are correct and then changes to a new card. For this strategy, show that

E[N]=1+12!+13!++1n!e1

Hint: For all parts, express N as the sum of indicator (that is, Bernoulli) random variables.

A fair die is rolled 10times. Calculate the expected sum of the10 rolls.

A coin having probability p of coming up heads is continually flipped until both heads and tails have appeared. Find

(a) the expected number of flips,

(b) the probability that the last flip lands on heads.

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