Skip to content

Instantly share code, notes, and snippets.

@psinger
Created March 18, 2018 13:35
Show Gist options
  • Save psinger/57334a8292df84c4aade8404ef081bb3 to your computer and use it in GitHub Desktop.
Save psinger/57334a8292df84c4aade8404ef081bb3 to your computer and use it in GitHub Desktop.
def analyze(data, discrete=True, xmin=1.):
model = mc.MCMC(_model(data,discrete,xmin))
model.sample(5000)
print
print(model.stats()['alpha']['mean'])
mc.Matplot.plot(model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment