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?