# Question: A bottle initially contains m large pills and n small

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].

Define n + m indicator variables, one for each of the small pills initially present and one for each of the m 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 pill is chosen. Find E[Y].

What is the relationship between X and Y?

(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].

Define n + m indicator variables, one for each of the small pills initially present and one for each of the m 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 pill is chosen. Find E[Y].

What is the relationship between X and Y?

**View Solution:**## Answer to relevant Questions

Let X1, X2, . . . be a sequence of independent and identically distributed continuous random variables. Let N ≥ 2 be such that X1 ≥ X2 ≥ . . . ≥ XN−1 < XN That is, N is the point at which the sequence stops ...Gambles are independent, and each one results in the player being equally likely to win or lose 1 unit. Let W denote the net winnings of a gambler whose strategy is to stop gambling immediately after his first win. Find (a) ...Let X be the number of 1’s and Y the number of 2’s that occur in n rolls of a fair die. Compute Cov(X, Y). Let X1, X2, . . . ,Xn be independent random variables having an unknown continuous distribution function F, and let Y1,Y2, . . . ,Ym be independent random variables having an unknown continuous distribution function G. Now ...The joint density of X and Y is given by f(x, y) = e−y/y, 0 < x < y, 0 < y < ∞ Compute E[X3|Y = y].Post your question