Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

If I have given a complete table for the joint probability $$P(A,B,C,D,E)$$ how can I compute an arbitrary conditional probability out of it, for instance: $$P(A|B)$$

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

$$\mathbb{P}(A=a \vert B=b) = \frac{\mathbb{P}(A=a, B=b)}{\mathbb{P}(B=b)} = \frac{\displaystyle \sum_{c,d,e} \mathbb{P}(A=a, B=b, C=c, D=d, E=e)}{\displaystyle \sum_{a,c,d,e} \mathbb{P}(A=a, B=b, C=c, D=d, E=e)}$$

share|improve this answer
add comment

The short answer for your example is that you can compute $P(A,B)$ and $P(B)$ from the table (you have to sum out all the other variables for fixed A and B). Using these values you can compute $P(A|B)$.

share|improve this answer
    
For instance for $A = a$ and $B = b$ it would be: $$P(A = a, B = b) = \sum_{C,D,E} P(A = a, B = b, C, D ,E)$$? –  Mahoni May 21 '12 at 18:49
1  
@Mahoni Exactly. –  svenkatr May 21 '12 at 18:50
add comment

Your Answer

 
discard

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.