I have X, Y, and Z all as binary variables, values either 0 or 1. Y and Z are and got values of P(Y = 1), P(Z = 1), P(X = 1|Y = 1, Z = 1) , P(X = 1|Y = 1, Z = 0) and P(X = 1|Y = 0). here I need to compute P(X = 1)
I learned here I need to apply the concepts of law of total probability, conditional probability, and joint probability.
By reading through below link, I get to know how to calculate P(A| B, C, D)-
How can I calculate the conditional probability of several events?
I also got to know, this would be the formula - P(X = 1) = P(X = 1|Y = 1, Z = 1)P(Y = 1)P(Z = 1) + P(X = 1|Y = 1, Z = 0)P(Y = 1)P(Z = 0) + P(X = 1|Y = 0)P(Y = 0)
however, I haven't got any reference for this formula, do anyone has any reference for this or would be able to derive this?