Bayesian inference is a method of statistical inference in which Bayes' theorem is used to update the probability for a hypothesis as more evidence or information becomes available.
1. The Interactive Simulation
Let's visualize how our beliefs about a "biased coin" update with every toss. Suppose we are trying to find the true probability $p$ that a coin lands heads.
Select your initial belief (Prior): Do you think the coin is fair, are you unsure, or are you a skeptic?
2. Python Implementation
In computational Bayesian stats, we often use grid approximation to represent continuous distributions as discrete points. This allows us to perform integration by summation.
2
3
4
5
6
7
8
9
10
11
12
13
14
Concept Check
Test your understanding of posterior convergence.
What happens to the Posterior distribution as the sample size approaches infinity?