Skip to content

statsim/statsimpy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

statsim

StatSim — probabilistic programming and statistical computing for Python.

Install

# Basic installation
pip install statsim

# With PyMC backend
pip install statsim[pymc]

# With Stan backend
pip install statsim[stan]

# With all backends
pip install statsim[all]

Usage

from statsim import compile, run

# Compile .sm model
model = compile('''
  mu ~ Normal(0, 10)
  sigma ~ HalfNormal(5)
  y ~ Normal(mu, sigma)
''', target='pymc')

# Run inference
result = run(model, backend='pymc')

Backends

  • PyMC: Full Bayesian inference with MCMC and variational methods
  • Stan: High-performance HMC/NUTS sampling

Learn more

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages