/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q.7.26 A coin that comes up heads with ... [FREE SOLUTION] | 91影视

91影视

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 91影视!

One App. One Place for Learning.

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

Get started for free

Study anywhere. Anytime. Across all devices.