In an urn there are 10 balls. Each ball can be white or black with the same probability. We will draw balls repeatedly with return. Find:
(a) The expected value and variance of black balls in the urn;
(b) The probability that there are only white balls in the urn, if we didn't draw any black ball in the four first draws;
(c) The probability that there are at least two black balls in the urn, if we drew one black ball in the first four draws.
My solution:
(a) There is not defined how many times we will draw balls from the urn and it seems to me as binomial distribution, so EX and varX should be:
$EX=np=\frac{n}{2}$
$varX=np(1-p)=\frac{n}{4}$
(b) Conditional probability
B ... I will not draw black ball = $(\frac{1}{2})^4$
$A \cap B = (\frac{1}{2})^n$
$P(A | B)=\frac{P(A \cap B)}{P(B)}=\frac{(\frac{1}{2})^n}{(\frac{1}{2})^4}$
(c)
B ... if we draw only one black ball in first four moves = $\binom{4}{1}(\frac{1}{2})(\frac{1}{2})^3$
A ... at least two black balls are in the urn = $\sum_{k=2}^{\infty}\binom{n}{k}(\frac{1}{2})^{k}(\frac{1}{2})^{n-k}$
and then I use conditional probability, right?
Someone told me that this example is on Bayes' theorem, but I cannot see how can I use it here. But also something is wrong in my solution ... could someone give me an advice?