I am following the Stanford ai-class online, and using this post for keeping track of progress/notes/links etc. These notes are very rough, mostly a personal log of progress…
. + Conditional Probability :: P(A | B) = P(A ∩ B) / P(B)
\begin{equation} \begin{align*} &P(A | B) = \frac{P(B | A).P(A)}{P(B)} \\ &P'(A|B) = P(B|A).P(A) ; P'(~A|B) = P(B|~A).P(~A) \\ &\eta = [P'(A|B) + P'(~A|B)] ^{-1} \\ &P(A|B) = \eta P'(A|B) ; P(A|B) = \eta P'(~A|B) \\ \end{align*} \end{equation}
| Hidden | Priori | + | + | Normalized | Ans. |
|---|---|---|---|---|---|
| C | 0.01 | 0.9 | 0.9 | .0081 | .0081/.0477 = 0.16981132 |
| ~C | 0.99 | 0.2 | 0.2 | .0396 | .0396/.0477 = 0.83018868 |
| 0.0477 |
\begin{equation} \begin{align*} P(+_1 \big| +_2) &= P(+_2 \big| +_1,C)P(C \big| +_1) + P(+_2 \big| +_1, \neg C).P(\neg C \big| +_1) \\ &=P(+_2 \big| C). P(C \big| +_1) + P(+_2 \big| \neg C).P( \neg C \big| +_1) \end{align*} \end{equation}
\begin{equation} A \perp B \implies A \perp B \big| C ? False \end{equation} \begin{equation} A \perp B \big| C \implies A \perp B ? False \end{equation}
Two hidden (Sunny, Raise) -> one observable(Happy) P(R|S) = P(R) { Raise and sunny are independant!}
Explain Away: P(R|HS) = Now, being happy (effect) can be explained by it being sunny), hence the probabilty of P(R|HS) < P(R | H)!