An open API service indexing awesome lists of open source software.

https://github.com/pmocz/mcmc-python

Create Your Own Metropolis-Hastings Markov Chain Monte Carlo Algorithm for Bayesian Inference (With Python)
https://github.com/pmocz/mcmc-python

astrophysics bayesian-statistics markov-chain mcmc parameter-estimation radial-velocities scientific-computing stochastic-optimization tutorial

Last synced: 10 days ago
JSON representation

Create Your Own Metropolis-Hastings Markov Chain Monte Carlo Algorithm for Bayesian Inference (With Python)

Awesome Lists containing this project

README

        

# mcmc-python
MCMC Parameter Fitting

## Create Your Own Metropolis-Hastings Markov Chain Monte Carlo Algorithm for Bayesian Inference (With Python)

### Philip Mocz (2023) [@PMocz](https://twitter.com/PMocz)

### [📝 Read the Algorithm Write-up on Medium](https://levelup.gitconnected.com/create-your-own-metropolis-hastings-markov-chain-monte-carlo-algorithm-for-bayesian-inference-with-fbabc3f01baa)

Apply Markov Chain Monte Carlo to fit exoplanet radial velocity data and
estimate the posterior distribution of the model parameters

```
python mcmc.py
```

![Simulation](./mcmc.png)

![Posteriors](./mcmc2.png)