Skip to content

Instantly share code, notes, and snippets.

@akanik
Created December 30, 2015 20:59
Show Gist options
  • Save akanik/d0175d8ab418f3729d26 to your computer and use it in GitHub Desktop.
Save akanik/d0175d8ab418f3729d26 to your computer and use it in GitHub Desktop.
coral_gamma_poission_model
def gamma_poission_model(X, n, k, theta, quantile):
k = np.sum(X) + k
t = theta/(theta*n + 1)
return stats.gamma.ppf(quantile, k, scale=t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment