The problem is an example from the book Introduction to The Theory of Statistics by Mood. It´s the example 28, page 39:
"Suppose an urn contains $M$ balls of which K are black and $M-K$ are white. A sample of size n is drawn. Fiund the probability that the jth ball drawn is black given that the sample contains k black balls. (We intuitively expect the answer to be k/n.) We have to consider sampling (i) with replacement and (ii) without replacement. [...]
SOLUTION
Let $A_k$ denote the event that the sample contains exactly $k$ black balls and $B_j$ denote the event that the $jth$ ball drawn is black. We seek $P[B_j|A_k]$
For case (ii),
$P[A_k] = \frac{\binom{K}{k} \binom{M-K}{n-k}}{ \binom{M}{n}}$ and $P[A_k|B_j] = \frac{\binom{K-1}{k-1} \binom{M -K}{n-k}}{ \binom{M-1}{n-1}}$
$$P[B_j] = \sum_{i=0}^{j-1} P[B_j|C_i]P[C_i]$$, where $C_i$ denotes the event of exactly $i$ black balls in the first $j-1$ draws. Note that
$$P[C_i] = \frac{ \binom{K}{i} \binom{M-K}{j-1-i} }{\binom{M}{j-1}} $$
and $$ P[B_j|C_i] = \frac{K-i}{M-j+1} $$ and so
$$ P[B_j] = \sum_{i=0}^{j-1}\frac{K-i}{M-j+1}\frac{\binom{K}{i} \binom{M-K}{j-1-i} }{\binom{M}{j-1}}=\frac{K}{M} $$
Finally $$P[B_j|A_k] = \frac{P[A_k|B_j]P[B_j]}{P[A_k]}= \frac{ \frac{ \binom{K-1}{k-1} \binom{M-K}{n-k} }{ \binom{M-1}{n-1} } \frac{K}{M} }{\frac{\binom{K}{k} \binom{M-K}{n-k}}{ \binom{M}{n}}} = \frac{k}{n}$$"
I understand the problem and the answer, I just cannot understand one of the steps, which is the next sum of binomial coefficients: $$ P[B_j] = \sum_{i=0}^{j-1}\frac{K-i}{M-j+1}\frac{\binom{K}{i} \binom{M-K}{j-1-i} }{\binom{M}{j-1}}=\frac{K}{M} $$
I have tried but I have not got the answer yet, could anyone provide a hint or an explination of how to get that answer?
Thanks in advance!
I think there is a typo, specifically it should be $M-j+1$ instead of $M-j+i$. Indeed, the equality as written fails at $i=0$ and $j=1$.
After making this change, the problem follows by simple manipulation :
$P[B_j] = \sum_{i=0}^{j-1} \dfrac{K}{M} \dfrac{{K-1 \choose i} {M-K \choose j-1-i}}{{M-1 \choose j-1}} = \dfrac{K}{M}$
since the sum of the numerator counts the number of ways of choosing arbitrary $j-1$ people out of a crowd of $K-1$ girls and $M-K$ boys.