Quick Reference
A cheat sheet for conjugate model pairs to help you quickly find the right functions for your use case.
How to Use This Table
- Find your likelihood (the distribution of your data)
- Look up the corresponding model function from
conjugate.models - Check the Functions column for:
- Helper functions to extract sufficient statistics from raw data
- Predictive functions for posterior predictive distributions
- See examples for practical usage patterns
Note: Not all models have closed-form predictive distributions. When available, predictive functions follow the pattern <model>_predictive.
Coverage
This reference includes 26 conjugate model pairs with:
- ✅ Model functions for all 26 pairs (posterior updates)
- ✅ Helper functions for 25 pairs (raw data → sufficient statistics)
- ✅ Predictive functions for 18 pairs (posterior predictive distributions)
Predictive functions are available for the most commonly used models, particularly those based on Beta, Gamma, and Normal priors.
Note: For models without closed-form predictive distributions, see Unsupported Distributions for a guide on generating posterior predictive samples using sampling techniques.
Discrete Likelihoods
Continuous Likelihoods
Multivariate
| Likelihood | Prior / Posterior | Model | Functions | Examples |
|---|---|---|---|---|
| Multivariate Normal (known cov) | MultivariateNormal | multivariate_normal_known_covariance |
Helper: multivariate_normal_known_covariance_inputsPredictive: multivariate_normal_known_covariance_predictive |
- |
| Multivariate Normal (known precision) | MultivariateNormal | multivariate_normal_known_precision |
Helper: multivariate_normal_known_precision_inputsPredictive: multivariate_normal_known_precision_predictive |
- |
| Multivariate Normal (known mean) | InverseWishart | multivariate_normal_known_mean |
Helper: multivariate_normal_known_mean_inputsPredictive: - |
- |
| Multivariate Normal | NormalInverseWishart | multivariate_normal |
Helper: multivariate_normal_inputsPredictive: multivariate_normal_predictive |
- |
See Also
- Models API Reference - Full documentation for all model functions
- Distributions API Reference - Full documentation for all distribution classes
- Helpers API Reference - Full documentation for all helper functions
- Raw Data Workflow - Complete examples from raw data to posterior