https://medium.com/@monocosmo77/use-of-the-beta-binomial-model-in-machine-learning-research-part3-af0c33839293