I got a few questions about this topic, specifically the hypergeometric distribution and moment generating function from the text book by H.
- A bag contains 144 ping-pong balls. More than half of the balls are painted orange and the rest are painted blue. Two balls are drawn at random without replacement. The probability of drawing two balls of the same color is the same as the probability of drawing two balls of different colors. How many orange balls are in the bag?
To find the variance of a hypergeometric random variable in Example 2.3-4 we used the fact that $$\ E[X(X − 1)] = \frac {N_1(N_1 − 1)(n)(n − 1)} {N(N − 1)}$$
Prove this result by making the change of variables $\ k = x − 2$ and noting that
$$\binom{N}{n}=\frac{N(N − 1)}{n(n − 1)}\binom{N-2}{n-2} $$
For the first one, I tried several ways, knowing that$$\binom{N_1}{1}\binom{N_2}{1}=\binom{N_1}{2}\binom{N_2}{0}=\binom{N_1}{0}\binom{N_2}{2}$$ But this doesn't give the correct result which is 78
For number two, I couldn't follow the answer given in the manual.
We have $\ N=N_1+N_2$. Thus
$$\ E[X(X-1)]=\sum_{x=0}^n x(x-1)f(x)$$
$$\ =\frac{\sum_{x=2}^n x(x-1)\frac{N_1!}{x!(N_1-x)!}*\frac{N_2!}{(n-x)!(N_2+n-x)!}}{\binom{N}{n}}$$
$$\ =N_1(N_1-1)\frac{\sum_{x=2}^n \frac{(N_1-2)!}{(x-2)!(N_1-x)!}*\frac{N_2!}{(n-x)!(N_2+n-x)!}}{\binom{N}{n}}$$
I don't get these two long steps. How did $\ x(x-1)$ disappear and why is $\ (x-2)!$ there instead?
Thanks for the help!
Reference:http://www.scribd.com/doc/240051455/SM-Sample-Probability-and-Statistical-Inference#scribd (Q 2.3-10)