2

My textbook claims the following probability derivation, but I am still having trouble understanding where the formula came from. The derivation is as follows:

P(A|B) = P(C|B)*P(A|C) + [1-P(C|B)] * P(A|C')

Can anyone explain how this formula was derived?

user67275
  • 871
  • 1
  • 8
  • 27
Meghan
  • 39
  • 2

1 Answers1

2

It's not true in general, but correct if $A$ is independent of $B$ given $C$, i.e. $P(A|B,C)=P(A|B)$ and $P(A|B,C')=P(A|C')$. The original equation derives from total probability law:

$$P(A|B)=P(C|B)P(A|B,C)+P(C'|B)P(A|B,C')$$

If above conditions are assumed, you obtain the same equation. Note that $P(C'|B)=1-P(C|B)$.

gunes
  • 49,700
  • 3
  • 39
  • 75