Bayesian Posterior for a Biased Die
Problem statement
A biased die has an unknown probability $\theta = P(\text{roll} = 6)$. You place a $\text{Beta}(2, 8)$ prior on $\theta$ -- reflecting a prior belief that sixes are rare (prior mean $= 0.2$).
You roll the die $n = 20$ times and observe $k = 6$ sixes.
- Derive the posterior distribution of $\theta$ given the data.
- Compute $P(\theta > 0.30 \mid \text{data})$ and express it in terms of the regularized incomplete beta function $I_x(a, b)$. No numeric integration required.
Show hint
Which prior family combines with a success-count likelihood to give a posterior in the same family?
Relevant roles: Data Scientist, Applied Scientist and ML Engineer.