Healthy Algorithms
Skip to content
  • Home
  • About
← MCMC in Python: How to set a custom prior with joint distribution on two parameters in PyMC
MCMC in Python: Estimating failure rates from observed data →
May 15, 2014 · 8:00 am

MCMC in Python: How to make a custom sampler in PyMC

The PyMC documentation is a little slim on the topic of defining a custom sampler, and I had to figure it out for some DisMod work over the years. Here is a minimal example of how I did it, in answer to a CrossValidated question.

Share this:

  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on X (Opens in new window) X
Like Loading...

Related

Comments Off on MCMC in Python: How to make a custom sampler in PyMC

Filed under MCMC

Tagged as MCMC, pymc, python

← MCMC in Python: How to set a custom prior with joint distribution on two parameters in PyMC
MCMC in Python: Estimating failure rates from observed data →

Comments are closed.

  • Posts

    • New year’s eve edition of JPC
    • AI for Interview Prep
    • AI in Epi 554 (parts 4 and 5 of 5)
  • aco ai ai4hm algorithms baby animals Bayesian books conference contest costs dataviz data viz disease modeling dismod diversity diversity club free/open source funding gaussian processes gbd global health health inequality health metrics health records idv IDV4GH ihme infoviz ipython iraq journal club machine learning malaria matching algorithms matchings MCMC media microsimulation mortality mpld3 my research Mysteries networks networkx optimization orms pandas privacy probability public health pymc pymc3 python random effects reading list reproducible research reproductive health research jobs seminar sklearn software carpentry spanning trees sparql statistics stats survey talks TCS teaching Theory Blogs travel tutorial va verbal autopsy vital registration
  • Theory Blogs

    • 0xDE (David Eppstein)
    • Computational Complexity (Lance Fortnow/Bill Gasarch)
    • In Theory (Luca Trevisan)
    • Luis von Blog (Luis von Ahn)
    • Machine Learning (Theory) (John Langford & others)
    • Micael Trick’s Operations Research Blog
    • My Slice of Pizza (Muthu)
    • Punk Rock Operations Research (Laura McLay)
    • Shtetl-Optimized (Scott Aaronson)
    • Structure and Strangeness (Aaron Clauset)
  • some rights reserved

    This material is released under the Creative Commons Noncommercial Attribution Share-Alike 3.0 License
  • Pages

    • About
  • May 2014
    M T W T F S S
     1234
    567891011
    12131415161718
    19202122232425
    262728293031  
    « Apr   Jun »
  • Archives

  • Meta

    • Create account
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.com
Healthy Algorithms · A blog about algorithms, combinatorics, and optimization applications in global health informatics.
Blog at WordPress.com.
  • Reblog
  • Subscribe Subscribed
    • Healthy Algorithms
    • Join 181 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Healthy Algorithms
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • View post in Reader
    • Manage subscriptions
    • Collapse this bar
%d