Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I saw an equation as like that:

$$P(W) = P(W\mid R,S)+P(W\mid !R,S) + P(W\mid !R,S) + P(W\mid R,!S) + P(W\mid !R,!S)$$

Which of these two statements are true?

$$P(W) = P(W\mid R,S)P(R,S)+P(W\mid !R,S)\,P(!R,S) + P(W\mid !R,S)\,P(!R,S) + P(W\mid R,!S)\,P(R,!S) + P(W\,!R,!S)\,P(!R,!S)$$ or $$P(R,S) = P(R\mid S)\,P(S) = P(S\mid R)\,P(R).$$

Is there any document for it?

share|cite|improve this question
There are $5$ terms in the expressions on the right side of $P(W)$? – Dilip Sarwate May 24 '13 at 18:40
up vote 1 down vote accepted

More specifically, you saw that equation in my flawed answer to this question of yours, which I've now corrected. Your second version is correct.

You could have asked that question as a comment under my answer, or at least linked to that answer. In case you didn't do that so as not to offend me by implying that I made a mistake, there's no need for such restraint – errare humanum est :-)

share|cite|improve this answer
... perseverare diabolicum. :-) – Did Nov 11 '12 at 16:44
@joriki I asked this as a separate question because I wanted to learn underlying equation for it. On the other hand I accepted your answer as correct because I don't know anything about that equations, I didn't want to show your mistake :) – kamaci Nov 11 '12 at 18:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.