Created
December 30, 2015 21:04
-
-
Save akanik/1f86e2f45223c1ae403a to your computer and use it in GitHub Desktop.
coral_beta_binomial_model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def beta_binomial_model(y, n, alpha, beta, quantile): | |
alpha_ = y + alpha | |
beta_ = n - y + beta | |
return stats.beta.ppf(quantile, alpha_, beta_) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment