--- id: preliz version: "0.27.1" license: unclear license_treatment: permissive maintenance: active --- # preliz — Exploring and eliciting probability distributions. License: permissive · Maintenance: active · Downloads: 397.5K/mo ## What it is and what it does PreliZ is a toolkit for prior elicitation in Bayesian statistics—the process of translating domain knowledge into well-defined probability distributions. It provides interactive, human-centered tools for specifying priors across multiple methods: direct parameter-space elicitation, predictive elicitation on observed data, and visualization in multiple formats (kernel density estimates, quantile dotplots, histograms). The package is designed to remain agnostic of the underlying probabilistic programming language, making it a companion tool for frameworks in the Python ecosystem. The package depends on numpy, scipy, matplotlib, numba, arviz_stats, and pytensor_distributions for numerical computation and visualization. It emphasizes keeping humans in the loop rather than fully automating prior selection, helping practitioners avoid overconfidence in their own assumptions while automating tedious or error-prone numerical tasks. It is currently in Alpha status and actively maintained. Use it for: - Interactively specify and visualize prior distributions for Bayesian regression or classification models before fitting. - Conduct predictive elicitation by examining how different priors affect predictions on your observed data. - Explore and compare multiple prior specifications using quantile dotplots or kernel density estimates. - Integrate prior elicitation workflows into probabilistic programming pipelines without being locked into a single language. - Build domain-informed priors by transforming expert knowledge into probability distributions via guided tools. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PreliZ helps you specify prior distributions for Bayesian models by providing interactive tools for prior elicitation, from parameter-space methods to predictive elicitation, designed to work with probabilistic programming languages like PyMC. Yes, if you are actively doing Bayesian modeling and want structured guidance on prior specification. The low install friction, active maintenance, permissive license, and focus on human-centered elicitation make it a solid choice for practitioners. The Alpha status warrants checking that your probabilistic programming language of choice is well-supported, but the package has no known security vulnerabilities and receives regular updates. ## Install pip install preliz uv add preliz poetry add preliz ## Installing preliz Before you install: Low friction: pure Python wheel, six common scientific dependencies (numpy, scipy, matplotlib, numba, arviz_stats, pytensor_distributions). Active maintenance with a release 38 days ago; repository is not archived and has recent commits. License in practice: Permissive license allows commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you include the license notice. Quickstart: pip install preliz import preliz as pz # Create and visualize a prior distribution prior = pz.Normal(mu=0, sigma=1) pz.plot_prior(prior) Requires Python 3.12 or later. Interactive visualization features require optional dependencies (jupyterlab or jupyter notebook). Verify before relying: - Whether the package's integration with PyMC and PyStan is production-ready or still experimental given its Alpha status. - Performance characteristics when working with high-dimensional prior elicitation tasks. - Whether arviz_stats and pytensor_distributions are stable, maintained dependencies. ## Package facts - License: not declared (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 397.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags prior elicitation bayesian, probability distribution specification, prior distribution tools, bayesian prior selection, interactive prior visualization, predictive elicitation, prior database integration, bayesian-inference, prior-elicitation, interactive-visualization [View on SkillFed](https://skillfed.io/packages/preliz) · [View on PyPI](https://pypi.org/project/preliz/)