Bayesian updating, one coin toss at a time

Every toss updates the distribution: today's posterior is tomorrow's prior. Toss the coin step by step, choose a prior, and watch how the data take over.

Prior:
or enter a result by hand:
Tosses
Prior
Posterior
prior + data
Posterior mean
95 % HDI
highest density interval
Prior, previous posterior and current posterior of the probability of heads

For a Beta(α, β) prior and h heads and t tails the posterior is Beta(α + h, β + t). Each toss just adds 1 to α (heads) or β (tails).

Only the number of heads and tails matters, not their order (data-order invariance). Switch the prior while the data stay: the posteriors of all priors move towards the same region as the number of tosses grows.