Bayesian games

Interactive examples for seeing Bayesian inference in action.

DNA test

A suspect has a prior probability \(P(G)\) of being guilty. A DNA test can return a match or no match, with different conditional probabilities depending on whether the suspect is guilty. After observing one or more independent test outcomes, Bayes' rule updates the probability of guilt.

Outcome Guilty \(G\) Not guilty \(G^c\)
Match \(M\)
No match \(M^c\)
Posterior probability of guilt
0.909
After observing 1 match and 0 no matches.

Modeling

Solution

Prior
1.0%
Posterior
90.9%