Skip to content

Instantly share code, notes, and snippets.

@akanik
Created December 30, 2015 21:04
Show Gist options
  • Save akanik/1f86e2f45223c1ae403a to your computer and use it in GitHub Desktop.
Save akanik/1f86e2f45223c1ae403a to your computer and use it in GitHub Desktop.
coral_beta_binomial_model
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