Finds the required alpha and beta to give a desired mean and variance of the beta binomal function
find_prior_alpha_beta(n, mean, var)
| n | the number of trials |
|---|---|
| mean | desired mean |
| var | desired variance |
alpha and beta for the beta binomial
find_prior_alpha_beta(n=100,mean=25,var=5)#> a b #> -34 -102