library(bayesrules)
-library(tidyverse)
Beta-Binomial Bayesian Model Example
+Introduction
+In this short article I will try to put together a set of notes to go over the Beta-Binomial Bayesian Model. The example used here is pretty trivial but so is this model so :shrug:
+When to use the Beta-Binomial?
+The situations it makes sense to use the Beta-Binomial Model (BBM) are cases where we have some conditional dependence between a random variable Y and a continuous parameter \pi \in [0, 1]. Where Y is the number of successes in n independent trials, each with a probability of success \pi.
+For the sake of these notes, let us start by setting up an example that will allow us to illustrate the implementation of this model. Suppose there is a slot machine manufacturer who recently was accused of embedding software into the hardware that would cause more losses than usual to players. To be allowed to continue selling machines to casinos, they must go through a series of inspections. The body governing the sale of these machines has tasked us to determine whether or not the software has been completely removed or if, instead, the company refined the bias to make it less noticeable.
+