21. The Beta and the Binomial#
Connections between the beta and binomial families have acquired fundamental importance in machine learning. In the previous chapter, you began to see some of these connections. In this chapter we will generalize those observations.
The experiment that we will study has two stages.
Pick a value of
according to a beta distributionToss a coin that lands heads with the chosen probability
We will see how the posterior distribution of the chance of heads is affected by the prior and by the data. After observing the results of
In labs, you will apply this theory to study a model for clustering when the number of possible clusters is not known in advance.