# Bayes' Theorem - Mathematics
Data Science for Political and Social Phenomena
Author: Guillaume Redoulès

# Bayes' Theorem

Let A and B be two events such that P(A|B) denotes the probability of the occurrence of A given that B has occurred and denotes the probability of the occurrence B of given that A has occurred, then:

$$ P(A|B)=\frac{P(B|A)P(A)}{P(B)}$$
$$ P(A|B)=\frac{P(B|A)P(A)}{P(B|A)P(A)+P(B|A^c)P(A^c)}$$

### Find an error or bug? Have a suggestion?

Everything on this site is avaliable on GitHub. Head on over and submit an issue. You can also message me directly by email.