Tricks with Bayes

TagsCS 228

Reversing parenthood

So say we had this graph with p(cb),p(ba),p(a)p(c | b), p(b | a), p(a). Can we find p(BA,C)p(B | A, C)?

Actually, it’s pretty straightforward. You want to go with the flow, meaning that you want to find P(C,BA)P(C, B | A) first. Then, to flip it, just divide by P(CA)P(C | A) because according to bayes rule, it gets you P(BC,A)P(B | C, A).

Let’s start with P(C,BA)P(C, B | A). Due to conditional independence, it’s just P(BA)P(CB)P(B | A)P(C | B), which you have.

Now, to get P(CA)P(C | A), just marginalize the BB!