Bayes' Theorem

#Math

$\displaystyle P(B|A)=\frac{P(A|B)P(B)}{P(A)}=\frac{P(A\cap B)}{P(B)}$

$\displaystyle P(D+|T+)=\frac{P(T+|D+)P(D+)}{P(T+|D+)P(D+)+P(T+|D-)P(D-)}$

$\displaystyle P(\theta|x)= \frac{P(x|\theta)P(\theta)}{P(x)}$

  • $\displaystyle P(\theta|x)$ is the posterior
  • $\displaystyle P(x|\theta)$ is the likelihood
  • $\displaystyle P(\theta)$ is the prior
  • $\displaystyle P(x)$ is the marginal