Samplers#
This submodule contains functions for MCMC and forward sampling.
|
Draw samples from the posterior using the given step methods. |
|
Generate samples from the prior predictive distribution. |
|
Generate forward samples for var_names, conditioned on the posterior samples of variables found in the trace. |
|
Draw samples for one variable or a list of variables |
|
Compute model deterministics given a dataset with values for model variables. |
|
Set up the mass matrix initialization for NUTS. |
|
|
|
Step methods#
HMC family#
|
A sampler for continuous variables based on Hamiltonian mechanics. |
|
A sampler for continuous variables based on Hamiltonian mechanics. |
Metropolis family#
|
A Metropolis-within-Gibbs step method optimized for binary variables |
|
Metropolis-Hastings optimized for binary variables |
|
A Metropolis-within-Gibbs step method optimized for categorical variables. |
|
Differential Evolution Metropolis sampling step. |
|
Adaptive Differential Evolution Metropolis sampling step that uses the past to inform jumps. |
|
Metropolis-Hastings sampling step |
Other step methods#
|
Step method composed of a list of several other step methods applied in sequence. |
|
Univariate slice sampler step method. |