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\) |
Modeling
Solution
Polling with a Dirichlet prior
Enter party counts from a poll and prior Dirichlet parameters. The posterior is another Dirichlet distribution.
| Party | Poll count \(y_i\) | Prior \(\alpha_i\) |
|---|
Modeling
Solution
Baggage delivery
You are waiting for one checked-in bag. Other passengers may have checked in random numbers of bags, and each checked-in bag may be forgotten by the airline. You have seen \(k\) bags come out, but yours has not appeared.
Modeling
Solution
Ocean crash
Pieces of a crashed plane are found at different times. The mean wind drift is known, but random variation grows with time. Use the debris locations to infer the unknown crash location.
| Piece | Time \(t_i\) | \(x_i\) | \(y_i\) |
|---|