# Short Runs from an Urn

Here is a problem by Neetu Badhoniya, K. S. Bhanu, and M. N. Deshpande (Institute of Science, Nagpur, India) from *The American Mathematical Monthly* (119, March 2012, pp 249-250) with the solution by Bob Tomper (Mathematics Department, University of North Dakota).

An urn contains $a$ white balls and $b$ black balls, and $a \ge 2b + 3$. Balls are drawn at random from the urn and placed in a row as they are drawn. Drawing halts when three white balls are drawn in succession. Let $X$ be the number of isolated pairs of white balls in the lineup produced during play, and let $Y$ be the number of isolated white balls. Show that

$E[X]=\frac{b}{a+1}$ and $E[Y]=\frac{b(a+b+1)}{(a+1)(a+2)}$.

- What Is Probability?
- Intuitive Probability
- Probability Problems
- Sample Spaces and Random Variables
- Probabilities
- Conditional Probability
- Dependent and Independent Events
- Algebra of Random Variables
- Expectation
- Probability Generating Functions
- Probability of Two Integers Being Coprime
- Random Walks
- Probabilistic Method
- Probability Paradoxes
- Symmetry Principle in Probability
- Non-transitive Dice

|Contact| |Front page| |Contents| |Induction| |Up| |Store|

Copyright © 1996-2007 Alexander Bogomolny

An urn contains $a$ white balls and $b$ black balls, and $a \ge 2b + 3$. Balls are drawn at random from the urn and placed in a row as they are drawn. Drawing halts when three white balls are drawn in succession. Let $X$ be the number of isolated pairs of white balls in the lineup produced during play, and let $Y$ be the number of isolated white balls. Show that

$E[X]=\frac{b}{a+1}$ and $E[Y]=\frac{b(a+b+1)}{(a+1)(a+2)}$.

### Solution

Solution is by Bob Tomper (Mathematics Department, University of North Dakota).

Let $E[X_{a,b}]$ and $E[Y_{a,b}]$ be the expected values of $X$ and $Y$ respectively when starting with an urn containing $a$ white balls and $b$ black balls, where $a \ge 2b + 3$.

For $a \ge 3$, we have $E[X_{a,0}=E[Y_a,0]=0$, which agrees with the given formulae. We use induction on $b$, the number of black balls. Assume the formulae are correct up to $b - 1$, where $b \ge 1$ (and all appropriate $a$ values), and consider the case of $a$ white balls and $b$ black balls with $a \ge 2b + 3$.

The lineup begins with B, WB, WWB, or WWW, where W and B indicate drawing a white or a black ball, respectively. The last also ends the lineup; after each of the others, the number of white balls remaining in the urn is at least three more than twice the number of black balls, so the conditions for the induction hypothesis apply. Accounting for the isolated W in WB and the paired WW in WWB,

which gives an expression for $E[X_{a,b}]$:

This simplifies to $\frac{b}{a+1}$. Similarly,

and this simplifies to $\frac{b(a+b+1)}{(a+1)(a+2)}$.

|Contact| |Front page| |Contents| |Induction| |Up| |Store|

Copyright © 1996-2017 Alexander Bogomolny

62315541 |