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

There are n items in a box labeled H and m in a box labeled T. A coin that comes up heads with probability p and tails with probability 1 − p is flipped. Each time it comes up heads, an item is removed from the H box, and each time it comes up tails, an item is removed from the T box. (If a box is empty and its outcome occurs, then no items are removed.) Find the expected number of coin flips needed for both boxes to become empty. Hint: Condition on the number of heads in the first n + m flips.

Short Answer

Expert verified

The expected number of coin flips needed for both boxes to become empty isE[X]=i=0nnipn+mCipi(1p)n+mi+i=n+1n+min1pn+mCipi(1p)n+mi.

Step by step solution

01

Given information

A coin that comes up heads with probability p and tails with probability 1 − p is flipped.

It comes up heads, an item is removed from the H box, and each time it comes up tails

Item is removed from the T box

02

Solution

The solution will be shown below,

E[X]=i=1n+mE[XY=i]P{Y=i}

=i=0n+mE[XY=i]n+mCipi(1p)n+mi

If the numeral of Heads in the first n+mflips is i,in, Then many more flips is the numeral of flips needed to receive additional (n-i) Heads. Similarly, if the number of Heads in the first n+mflips is i,j>n, then because there would keep existed a total of n+m-i<mtails, the numeral of more flips is the number required to receive an additional (i-n) Heads. Since the number of flips needed for j outcomes of a particular type is a negative Binomial Random variable whose mean is j divided by the probability of that outcome,

Therefore,

E[X]=i=0nnipn+mCipi(1p)n+mi+i=n+1n+min1pn+mCipi(1p)n+mi

03

Final answer 

The expected number of coin flips needed for both boxes to become empty is E[X]=i=0nnipn+mCipi(1p)n+mi+i=n+1n+min1pn+mCipi(1p)n+mi.

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

In Example 4f, we showed that the covariance of the multinomial random variables Niand Njis equal to -mPiPjby expressing Niand Njas the sum of indicator variables. We could also have obtained that result by using the formula VarNi+Nj=VarNi+VarNj+2CovNi,Nj

(a) What is the distribution of Ni+Nj?

(b) Use the preceding identity to show thatCovNi,Nj=-mPi,Pj

A group of 20 people consisting of 10 men and 10 women is randomly arranged into 10 pairs of 2 each. Compute the expectation and variance of the number of pairs that consist of a man and a woman. Now suppose the 20 people consist of 10 married couples. Compute the mean and variance of the number of married couples that are paired together.

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

Suppose that X1and X2 are independent random variables having a common mean μ. Suppose also that VarX1=σ12 and VarX2=σ22. The value of μ is unknown, and it is proposed that μ be estimated by a weighted average of X1 and X2. That is, λX1+(1-λ)X2 will be used as an estimate of μ for some appropriate value of λ. Which value of λ yields the estimate having the lowest possible variance? Explain why it is desirable to use this value ofλ.

A bottle initially contains m large pills and n small pills. Each day, a patient randomly chooses one of the pills. If a small pill is chosen, then that pill is eaten. If a large pill is chosen, then the pill is broken in two; one part is returned to the bottle (and is now considered a small pill) and the other part is then eaten.

(a) Let X denote the number of small pills in the bottle after the last large pill has been chosen and its smaller half returned. Find E[X].

Hint: Define n + m indicator variables, one for each of the small pills initially present and one for each of the small pills created when a large one is split in two. Now use the argument of Example 2m.

(b) Let Y denote the day on which the last large pills chosen. Find E[Y].

Hint: What is the relationship between X and Y?

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