Dulranga's Notes
Semester 3Artificial Intelligence

Bayesian Networks

Joint Probability

P(A,B)P(A,B) - Probability of Both A and B are true

Only if AA and BB are independent events, then P(A,B)=P(A)P(B)P(A,B) = P(A)P(B)

Conditional Probability

Probability of A given B is true,

P(A∣B)=P(A,B)P(B)\boxed{P(A \mid B) = \frac{P(A, B)}{P(B)}}

Rearranging terms give,

P(A,B)=P(A∣B) P(B)P(A, B) = P(A \mid B)\,P(B)

Read this as, "Probability of A happening given B happened ×\times B has already happened"

Since P(A,B)=P(B,A)P(A,B) = P(B,A),

P(A∣B)=P(B∣A) P(A)P(B)\boxed{ P(A \mid B) = \frac{P(B \mid A)\,P(A)}{P(B)} }

We can find the probability of A happening given B happened by checking the probability of B happening given A already happened. Which is a reverse.

XX is independent of YY given nothing

X⊥ ⁣ ⁣ ⁣⊥YX \perp\!\!\!\perp Y

XX is independent of YY given ZZ and WW

X⊥ ⁣ ⁣ ⁣⊥Y  ∣  {Z,W}X \perp\!\!\!\perp Y \;|\; \{Z,W\}

On this page