Bayes' theorem step by step: prior, data, posterior

A physiotherapist wants to know how likely it is that a new therapy helps a patient with chronic back pain (θ = probability of improvement). She guesses θ = 0.30, her colleagues think θ = 0.40, and we trust both equally. Then a trial with 50 patients is run. How does our belief change?

Prior, data, likelihood and posterior for the two candidate values of theta Two bars show how strongly we believe theta is 0.30 or 0.40. A grid of patient circles shows the trial data. A bar chart shows how probable the observed number of improvements is under each theta. After the last step, the bars show the posterior.
Change the numbers
Table view