Posts in Biology

  • Faster Mixture Models in PyMC3

    Thumbnail for Faster Mixture Models in PyMC3

    In a previous post about clustering the palmer penguins using PyMC3, the mixture model was implemented in the model itself. Though this is great for understanding what is going on, it isn’t very efficient when sampling the model. Furthermore, observations (here penguins) were assigned to groups (here the species of...

  • Capture-Mark-Recapture model in PyMC3

    Thumbnail for Capture-Mark-Recapture model in PyMC3

    Imagine you wish to know how many fish are in a rather large pond… The water is murky so forget about counting them easily… In ecology this is a common problem! The population size of a species often needs to be known, but it is either impractical or simply impossible...

  • Clustering the Palmer Station penguin data, using PyMC3

    Thumbnail for Clustering the Palmer Station penguin data, using PyMC3

    This post will be all about trying to infer the species various observations originated from, without actually having access to the labels. This might sound like a far-fetched example, but it happens more often than you might expect in biology! When studying large animals you can usually find clear differences...