225k views
3 votes
An urn contains n white balls andm black balls. (m and n are both positive numbers.) (a) If two balls are drawn without replacement, what is the probability that both balls are the same color? (b) If two balls are drawn with replacement (i.e., One ball is drawn and it’s color recorded and then put back. Then the second ball is drawn.) What is the probability that both balls are the same color. (c) Show that the probability in part (b) is always larger than the one in part (a).

User Jammycakes
by
5.4k points

1 Answer

3 votes

DISCLAIMER: Please let me rename b and w the number of black and white balls, for the sake of readability. You can switch the variable names at any time and the ideas won't change a bit!

(a)

Case 1: both balls are white.

At the beginning we have
b+w balls. We want to pick a white one, so we have a probability of
(w)/(b+w) of picking a white one.

If this happens, we're left with
w-1 white balls and still
b black balls, for a total of
b+w-1 balls. So, now, the probability of picking a white ball is


(w-1)/(b+w-1)

The probability of the two events happening one after the other is the product of the probabilities, so you pick two whites with probability


(w)/(b+w)\cdot (w-1)/(b+w-1)=(w(w-1))/((b+w)(b+w-1))

Case 2: both balls are black

The exact same logic leads to a probability of


(b)/(b+w)\cdot (b-1)/(b+w-1)=(b(b-1))/((b+w)(b+w-1))

These two events are mutually exclusive (we either pick two whites or two blacks!), so the total probability of picking two balls of the same colour is


(w(w-1))/((b+w)(b+w-1))+(b(b-1))/((b+w)(b+w-1))=(w(w-1)+b(b-1))/((b+w)(b+w-1))

(b)

Case 1: both balls are white.

In this case, nothing changes between the two picks. So, you have a probability of
(w)/(b+w) of picking a white ball with the first pick, and the same probability of picking a white ball with the second pick. Similarly, you have a probability
(b)/(b+w) of picking a black ball with both picks.

This leads to an overall probability of


\left((w)/(b+w)\right)^2+\left((b)/(b+w)\right)^2 = (w^2+b^2)/((b+w)^2)

Of picking two balls of the same colour.

(c)

We want to prove that


(w^2+b^2)/((b+w)^2)\geq (w(w-1)+b(b-1))/((b+w)(b+w-1))

Expading all squares and products, this translates to


(w^2+b^2)/(b^2+2bw+w^2)\geq (w^2+b^2-b-w)/(b^2+2bw+w^2-b-w)

As you can see, this inequality comes in the form


(x)/(y)\geq (x-k)/(y-k)

With x and y greater than k. This inequality is true whenever the numerator is smaller than the denominator:


(x)/(y)\geq (x-k)/(y-k) \iff xy-kx \geq xy-ky \iff -kx\geq -ky \iff x\leq y

And this is our case, because in our case we have


  1. x=b^2+w^2

  2. y=b^2+w^2+2bw so, y has an extra piece and it is larger

  3. k=b+w which ensures that k<x (and thus k<y), because b and w are integers, and so b<b^2 and w<w^2

User Mikke
by
6.0k points