Math probability combination explanation A group of four components is known to contain two defectives. An inspector tests the components one at a time until the two defectives are located. once she locates the two defectives, she stops testing, but the second defective is tested to ensure accuracy. let Y denote the number of the test on which the second defective is found. Find the probability distribution for Y. 
I know the answers are 
P[2] = 2/4 1/3 = 1/6 
P[3] = 2c1(2/4 *2/3) * 1/2 = 1/3 
P[4] = 3c2*(2/4 * 1/3 * 2/2) *1/1 = 1/2 
But could someone please explain where those fractions came from?

The numbers are small, so we do not need general theory to do the calculation.
The random variable $Y$ can take on values $2$, $3$, or $4$.
$\Pr(Y=2)$:  We need to have the first defective, and the second. The probability the first is defective is $\frac{2}{4}$. Given the first was defective, there are $3$ items left, of which $1$ is defective. So the probability the second is defective given the first was is $\frac{1}{3}$, and therefore $\Pr(Y=2)=\frac{2}{4}\cdot\frac{1}{3}$. 
$\Pr(Y=3)$: This can happen in $2$ ways: (i) BGB (bad, good, bad) or GBB. By the same reasoning as above, the probability of BG is $\frac{2}{4}\cdot\frac{2}{3}$. If we started with BG, the probability the next is B is $\frac{1}{2}$. So the probability of BGB is $\frac{2}{4}\cdot\frac{2}{3}\cdot\frac{1}{2}$. Similar reasoning shows the probability of GBB is $\frac{2}{4}\cdot\frac{2}{3}\cdot\frac{1}{2}$, the same. So we need to multiply $\frac{2}{4}\cdot\frac{2}{3}\cdot\frac{1}{2}$ by $2$.
$\Pr(Y=4)$: This happens with the patterns GGBB, GBGB, and BGGB. It turns out that each has probability $\frac{2}{4}\cdot \frac{1}{3}$, giving probability $3\cdot\frac{2}{4}\cdot\frac{1}{3}$. 
Remark: The probabilities must add up to $1$, so when we have found two of them, the other can be found by arithmetic. In this case, the probabilities simplify to $\frac{1}{6}$, $\frac{1}{3}$, and $\frac{1}{2}$. 
There is a nice formula for the general case, where we have $b$ bad and $g$ good, and want to find the probability that the $m$-th bad is found on the $n$-th trial. However, since we only had three cases, direct calculation is easier. 
