emceeEasy Examples

Affine-invariant MCMC ensemble sampler for Bayesian analysis

Getting started with emcee

Installation and basic usage of emcee.

python
# Install: pip install emcee
import emcee

# Basic emcee usage
print(f"Using emcee")
# See documentation for detailed examples
Expected Output
# Expected output shown below
# (Run locally with: emcee)

emcee is a third-party package. Affine-invariant MCMC ensemble sampler for Bayesian analysis. Install with: pip install emcee

Common emcee operations

Frequently used features of emcee.

python
# Install: pip install emcee
import emcee

# Common emcee patterns
print(f"emcee version: {emcee.__version__}")

These are the most commonly used features of emcee in everyday development.

Want to try these examples interactively?

Open Easy Playground