All Projects → tpapp → DynamicHMCExamples.jl

tpapp / DynamicHMCExamples.jl

Licence: other
Examples for Bayesian inference using DynamicHMC.jl and related packages.

Programming Languages

Jupyter Notebook
11667 projects
julia
2034 projects

Projects that are alternatives of or similar to DynamicHMCExamples.jl

Bda r demos
Bayesian Data Analysis demos for R
Stars: ✭ 409 (+1139.39%)
Mutual labels:  bayesian, bayesian-inference, mcmc, bayesian-data-analysis
Bda py demos
Bayesian Data Analysis demos for Python
Stars: ✭ 781 (+2266.67%)
Mutual labels:  bayesian, bayesian-inference, mcmc, bayesian-data-analysis
Shinystan
shinystan R package and ShinyStan GUI
Stars: ✭ 172 (+421.21%)
Mutual labels:  bayesian, bayesian-inference, mcmc, bayesian-data-analysis
LogDensityProblems.jl
A common framework for implementing and using log densities for inference.
Stars: ✭ 26 (-21.21%)
Mutual labels:  bayesian, bayesian-inference, mcmc, bayesian-data-analysis
Bayadera
High-performance Bayesian Data Analysis on the GPU in Clojure
Stars: ✭ 342 (+936.36%)
Mutual labels:  bayesian, bayesian-inference, mcmc, bayesian-data-analysis
BayesHMM
Full Bayesian Inference for Hidden Markov Models
Stars: ✭ 35 (+6.06%)
Mutual labels:  bayesian, bayesian-inference, mcmc
Rstanarm
rstanarm R package for Bayesian applied regression modeling
Stars: ✭ 285 (+763.64%)
Mutual labels:  bayesian, bayesian-inference, bayesian-data-analysis
Bayesian Stats Modelling Tutorial
How to do Bayesian statistical modelling using numpy and PyMC3
Stars: ✭ 480 (+1354.55%)
Mutual labels:  bayesian, bayesian-inference, bayesian-data-analysis
Bayesian Analysis Recipes
A collection of Bayesian data analysis recipes using PyMC3
Stars: ✭ 479 (+1351.52%)
Mutual labels:  bayesian, bayesian-inference, bayesian-data-analysis
Rhat ess
Rank-normalization, folding, and localization: An improved R-hat for assessing convergence of MCMC
Stars: ✭ 19 (-42.42%)
Mutual labels:  bayesian, bayesian-inference, bayesian-data-analysis
MultiBUGS
Multi-core BUGS for fast Bayesian inference of large hierarchical models
Stars: ✭ 28 (-15.15%)
Mutual labels:  bayesian, bayesian-inference, mcmc
Rstan
RStan, the R interface to Stan
Stars: ✭ 760 (+2203.03%)
Mutual labels:  bayesian-inference, mcmc, bayesian-data-analysis
Dbda Python
Doing Bayesian Data Analysis, 2nd Edition (Kruschke, 2015): Python/PyMC3 code
Stars: ✭ 502 (+1421.21%)
Mutual labels:  bayesian-inference, mcmc, bayesian-data-analysis
Probabilistic Models
Collection of probabilistic models and inference algorithms
Stars: ✭ 217 (+557.58%)
Mutual labels:  bayesian, bayesian-inference, mcmc
Gpstuff
GPstuff - Gaussian process models for Bayesian analysis
Stars: ✭ 106 (+221.21%)
Mutual labels:  bayesian, bayesian-inference, mcmc
Stan
Stan development repository. The master branch contains the current release. The develop branch contains the latest stable development. See the Developer Process Wiki for details.
Stars: ✭ 2,177 (+6496.97%)
Mutual labels:  bayesian, bayesian-inference, bayesian-data-analysis
KissABC.jl
Pure julia implementation of Multiple Affine Invariant Sampling for efficient Approximate Bayesian Computation
Stars: ✭ 28 (-15.15%)
Mutual labels:  julia-language, bayesian-inference, bayesian-data-analysis
geostan
Bayesian spatial analysis
Stars: ✭ 40 (+21.21%)
Mutual labels:  bayesian, bayesian-inference
binary.com-interview-question
The sample question for Interview a job in Binary options
Stars: ✭ 52 (+57.58%)
Mutual labels:  bayesian, mcmc
blangSDK
Blang's software development kit
Stars: ✭ 21 (-36.36%)
Mutual labels:  bayesian-inference, mcmc

DynamicHMCExamples

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Build Status Coverage Status codecov.io Documentation

This repository contains examples for my the libraries related Bayesian inference I maintain. Install this with

pkg> add https://github.com/tpapp/DynamicHMCExamples.jl

which will download a working and tested set of versions. Optionally, you can pkg> up after this.

The examples are in the src/ directory as Julia source files, marked up for Literate.jl. This means that they can be executed directly, but they are also available as webpages.

Note that this is not an introduction to Bayesian inference, merely an implementation in Julia using a certain approach that I find advantageous. The focus is on coding the (log) posterior as a function, then passing this to a modern Hamiltonian Monte Carlo sampler (a variant of NUTS, as described in Betancourt (2017).

The advantage of this approach is that you can debug, benchmark, and optimize your posterior calculations directly using the tools in Julia, like any other Julia code. In contrast to other libraries,

  1. you don't need to use a DSL,
  2. you are not formulating your model as a directed acyclic graph,
  3. and you can calculate some are all derivatives manually.

The implicit requirement for this approach is of course that you need to understand how to translate your model to a posterior function and code it in Julia.

The examples show how to do transformations and automatic differentiation with related libraries that wrap a log posterior function. However, if you prefer, you can use other approaches, such as manually coding the transformations or symbolic differentiation.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].