- A bag contains one marble which is either green or blue, with equal probabilities. A green marble is put in the bag (so there are $2$ marbles now), and then a random marble is taken out. The marble taken out is green. What is the probability that the remaining marble is also green?
Solution:
Let $A$ be the event that the initial marble is green, $B$ be the event that the removed marble is green, and $C$ be the event that the remaining marble is green. We need to find $P(C|B)$. There are several ways to find this; one natural way is to condition on whether the initial marble is green:
$$P(C|B)=P(C|B,A)P(A|B)+P(C|B,A^c)P(A^c|B)=1P(A|B)+0P(A^c|B)$$
Blitzstein, Introduction to Probability (2019 2 edn), Chapter 2, Exercise 22, p 87. Then the author uses Bayes' Rule to find $P(A|B)=\frac{2}{3}$.
The main question I have is where $P(C|B,A)P(A|B)+P(C|B,A^c)P(A^c|B)$ comes from. It looks like the law of total probability but I'm not quite sure how it's derived. Could anyone point me in the right direction or link me to a derivation?
Furthermore, why do we condition on $B$ here: $P(C|B,A)P(A|B)+P(C|B,A^c)P(A^c|B)$ ?
Instead of just $P(C|B,A)P(A)+P(C|B,A^c)P(A^c)$ ?