Graduate · Beta–Bernoulli updating
Beta–Bernoulli updating: A broad symmetric prior
Beta–Bernoulli updating: investigate a broad symmetric prior with prior shape α = 2; prior shape β = 2.
Predict what will happen, press Play, then pause and explain what changed. Every control also works without playback.
Watch the relationship
PausedHD animation studio
From experiment to screen.
Present a crisp Canvas scene, save a full-HD image, or capture your model as a silent video.
Understand what you are seeing
The idea behind the motion.
A Beta prior describes uncertainty about an unknown Bernoulli probability. Multiplying by a conditionally independent Bernoulli likelihood adds success and failure counts to the two shape parameters. The posterior mean predicts one additional outcome but is not the probability mass at that one exact parameter value. This investigation starts with Prior shape α = 2; Prior shape β = 2. Predict the result before playing, then change one parameter while keeping the other fixed to test the reason for the change.
A relationship to keep
p|data ~ Beta(α+s,β+n−s); predictive P(success)=(α+s)/(α+β+n)
Read the symbols alongside the explanation. A diagram shows the relationship; the assumptions tell you when it applies.
- STEP 1
Set up the mathematical model
Choose prior shape parameters and inspect their initial density on the probability interval from zero to one. The starting case is “A broad symmetric prior.”
- STEP 2
Follow the changing quantity
Reveal the fixed illustrative sequence 1,1,0,1,0,0,1,1,0,1 one outcome at a time. Track posterior shapes after each update.
- STEP 3
Explain and test the result
Compare priors after the same six successes and four failures. Distinguish the posterior density's height from the predictive probability computed by integrating p against that density.
Your turn to explain
Make a prediction. Test your reasoning.
Keep Prior shape α = 2; Prior shape β = 2. Pause the timeline at 40%. Given observations included = 4, calculate posterior α, posterior β, predictive success probability. Show the substitution into the displayed formula.
Use the values specified in the question. Reset restores the initial values for this investigation.
Compare your explanation
Among n=4 observations there are 3 successes and 1 failures. Add these to prior shapes (2,2) to obtain Beta(5,3); the predictive probability is 5/(5+3)=0.625. Results: Posterior α: 5; Posterior β: 3; Predictive success probability: 0.625. Decimal values are rounded; retain the original parameters when checking.
Work through a full lesson
Connect the animation to a worked example and practice questions.