Lambdia

One White Marble, Alone in a Jar, Is Worth 74/99

Fifty white marbles, fifty black, two jars, and a fair coin choosing which jar gets drawn from. The even split gives exactly one half, and so does every other split where the jars are the same size. Isolating a single white marble reaches 74/99, an exchange argument proves nothing beats it, and three quarters turns out to be a ceiling no arrangement ever touches.

You have 5050 white marbles and 5050 black ones, and two empty jars. Distribute all hundred marbles between the jars however you like, with neither jar left empty. Someone then picks a jar by a fair coin toss and draws one marble from it, uniformly at random. Arrange the marbles to make white as likely as you can.

The colours are perfectly balanced and the jar is chosen by a fair coin, so the answer feels pinned at 1/21/2. It is not. The best arrangement reaches

7499  =  0.7474\frac{74}{99} \;=\; 0.7474\ldots
(1)

and the arrangement that gets there is grotesquely lopsided: a single white marble alone in one jar, and the other ninety-nine marbles piled into the second.

Why the even split gives exactly one half

The reflex arrangement is 2525 white and 2525 black in each jar. Both jars are then half white, the coin cannot help or hurt, and the law of total probability returns

122550+122550  =  12\tfrac{1}{2}\cdot\tfrac{25}{50} + \tfrac{1}{2}\cdot\tfrac{25}{50} \;=\; \tfrac{1}{2}
(2)

Equation (2) is correct. That is worth stressing, because the trap here is not an arithmetic slip. The candidate computes an honest 1/21/2 and then makes a second, silent claim: that no arrangement can do better. The arithmetic is right and the conclusion drawn from it is wrong.

A much larger set of arrangements gives exactly one half

Before improving on 1/21/2, it is worth seeing how much company the even split has. Write (w1,n1)(w_1, n_1) for the white count and total in jar one, and (w2,n2)(w_2, n_2) for jar two, so that w1+w2=50w_1 + w_2 = 50 and n1+n2=100n_1 + n_2 = 100. The quantity you are maximising is

P(white)  =  12w1n1  +  12w2n2P(\text{white}) \;=\; \frac{1}{2}\cdot\frac{w_1}{n_1} \;+\; \frac{1}{2}\cdot\frac{w_2}{n_2}
(3)

Now suppose the two jars merely have the same size, so n1=n2=50n_1 = n_2 = 50, and colour them however you please. Equation (3) collapses:

12w150+12w250  =  w1+w2100  =  12\frac{1}{2}\cdot\frac{w_1}{50} + \frac{1}{2}\cdot\frac{w_2}{50} \;=\; \frac{w_1 + w_2}{100} \;=\; \frac{1}{2}
(4)

Every equal-size split gives exactly one half, including the wildest ones. Fifty white in one jar and fifty black in the other is worth exactly as much as 2525 and 2525. So the answer is completely insensitive to colour and completely sensitive to size, which is the opposite of where attention naturally goes.

Buy one branch outright

The coin decides which jar you draw from and you cannot touch it. What you can do is decide what each of its two outcomes is worth. One of them can be made worth exactly 11, and the price of doing that is one white marble.

Put a single white marble alone in jar one. That jar now returns white with certainty. The remaining 4949 white and 5050 black marbles go into jar two, which returns white with probability 49/9949/99, barely below a half. Average the two branches:

121  +  124999  =  7499    74.75%\frac{1}{2}\cdot 1 \;+\; \frac{1}{2}\cdot\frac{49}{99} \;=\; \frac{74}{99} \;\approx\; 74.75\%
(5)
Fig. 1 — One marble buys a certainty. The other jar barely notices it is gone.

The gain over the even split is

749912  =  49198    0.2475\frac{74}{99} - \frac{1}{2} \;=\; \frac{49}{198} \;\approx\; 0.2475
(6)

which is almost a quarter of probability created out of nothing but rearrangement. Note also what (5) is not. It is 0.74740.7474\ldots, and

347499  =  1396\frac{3}{4} - \frac{74}{99} \;=\; \frac{1}{396}
(7)

so the honest headline is nearly three quarters and never three quarters. The gap is tiny and it is real, and equation (13) below explains why it can never be closed.

Why nothing beats it

Finding a good arrangement is easy. Proving that none is better takes an argument, and the argument is short enough to give in an interview.

Claim

Over all arrangements of WW white and BB black marbles into two non-empty jars, the maximum of (3) is attained by one white marble alone in one jar.

Label the jars so that n1n2n_1 \le n_2. If n1=n2n_1 = n_2 then equation (4) already tells us the value is W/(W+B)W/(W+B), which for W=BW = B is exactly 1/21/2, so assume n1<n2n_1 < n_2 from here.

Suppose the small jar still contains a black marble. Two cases. If the large jar contains a white marble, swap the two. Jar sizes do not change, w1w_1 rises by one and w2w_2 falls by one, so (3) changes by

12(1n11n2)  >  0\frac{1}{2}\left(\frac{1}{n_1} - \frac{1}{n_2}\right) \;>\; 0
(8)

because n1<n2n_1 < n_2. Strictly better. If instead the large jar holds no white marble at all, then every white marble is already in the small jar; move a black marble across, which raises w1/n1w_1/n_1 and leaves w2/n2=0w_2/n_2 = 0 alone. Strictly better again.

Each step removes a black marble from the small jar without ever making things worse, so after finitely many steps the small jar is pure white. Say it holds kk white marbles. The value is then

f(k)  =  12+12WkW+Bk  =  12+50k2(100k)f(k) \;=\; \frac{1}{2} + \frac{1}{2}\cdot\frac{W-k}{W+B-k} \;=\; \frac{1}{2} + \frac{50-k}{2(100-k)}
(9)

for W=B=50W = B = 50, and differentiating the closed form f(k)=(1502k)/(2(100k))f(k) = (150-2k)/(2(100-k)) gives

f(k)  =  25(k100)2  <  0f'(k) \;=\; \frac{-25}{(k-100)^2} \;<\; 0
(10)

so ff is strictly decreasing and k=1k = 1 wins. That closes the proof, and an exhaustive sweep of all 25992599 legal arrangements confirms it: the maximum is 74/9974/99 and it is attained by exactly one arrangement.

One marble, not a handful

Equation (10) is the piece most people get wrong on their second guess. Having seen that isolating white marbles helps, the instinct is to isolate a few of them, which feels safer. It is worse:

f(1)=7499=0.74747,f(2)=7398=0.74490,f(10)=130180=0.72222f(1) = \frac{74}{99} = 0.74747, \qquad f(2) = \frac{73}{98} = 0.74490, \qquad f(10) = \frac{130}{180} = 0.72222
(11)

Each extra white marble you move into the certain jar is wasted there, since that jar was already returning white with probability one, and it is missed in the other jar, where it was the only thing fighting the fifty black marbles.

Fig. 2 — The whole family in one picture. Every step away from a single marble costs you, and the last step lands back on the even split.

Follow the curve to its right end and something pleasing happens. At k=50k = 50 the arrangement is all white in one jar and all black in the other, and f(50)=1/2f(50) = 1/2. The most aggressive colour separation imaginable is worth exactly as much as the even split, which is equation (4) turning up again from the other direction.

The general urn, and the ceiling at three quarters

Redo (9) with WW white and BB black marbles and k=1k = 1:

P(W,B)  =  12+12W1W+B1P^{*}(W, B) \;=\; \frac{1}{2} + \frac{1}{2}\cdot\frac{W-1}{W+B-1}
(12)

With equal counts W=B=mW = B = m this is (3m2)/(2(2m1))(3m-2)/(2(2m-1)), and the sequence climbs slowly:

m=1: 12,m=2: 23,m=5: 1318,m=50: 7499,m: 34m=1:\ \tfrac{1}{2}, \quad m=2:\ \tfrac{2}{3}, \quad m=5:\ \tfrac{13}{18}, \quad m=50:\ \tfrac{74}{99}, \quad m\to\infty:\ \tfrac{3}{4}
(13)

Three quarters is the supremum and it is never attained, for a reason you can read off (12): the second jar is always short exactly one white marble, the one you spent. As mm grows that single missing marble matters less, and (m1)/(2m1)(m-1)/(2m-1) creeps up on 1/21/2 from below without arriving. At m=1m = 1 the effect vanishes entirely, since spending your only white marble leaves the other jar all black.

One more variant is worth a line, because it changes the answer completely. If the person drawing gets to pick the jar rather than tossing a coin for it, the second jar becomes irrelevant and the whole problem collapses: put one white marble alone, they pick that jar, and the answer is 11. The coin toss is the entire source of difficulty, and the arrangement in Fig. 1 is best understood as buying one of its two branches outright at the lowest possible price.

Sources and further reading

Every number above was checked before publication in exact rational arithmetic, by an exhaustive sweep of all 25992599 legal arrangements, and by a seeded simulation of 400,000400{,}000 draws per arrangement, which measured 0.747940.74794 for the winner against the exact 0.7474750.747475.

Commentaires · 0

Sois le premier à commenter.