pytensor-distributions
PyTensor powered distributions.
Decision gist · record as of 2026-08-14
Yes, if you are working with PyMC or building probabilistic models that benefit from PyTensor's symbolic computation. The low install friction, permissive license, and active maintenance make it a reasonable choice. However, the alpha status means the API and feature coverage may change; verify that the distributions and expressions you need are already implemented before committing to a production dependency.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.12 or later; pytensor must be installed and functional.
- Low install friction; the package is a pure Python wheel with only numpy and pytensor as runtime dependencies.
- Actively maintained with a recent release, though still in alpha development status.
License · maintenance · safety
permissive license (permissive) — Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.
last release 2026-06-08 (67 days) · last repo commit 2026-06-08 · 5 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 248,129 downloads/mo, #8,675 on PyPI
Alternatives
Verify before relying
pip install pytensor-distributions
import pytensor_distributions as ptd
import numpy as np
# Example: compute pdf of a distribution
pdf_value = ptd.normal.pdf(x=0.0, mu=0.0, sigma=1.0)- Which specific distributions are currently implemented and which core expressions each supports
- Performance characteristics compared to scipy or other probability libraries
- API stability guarantees given the alpha development status
What it is and what it does
PyTensor-distributions is a library of probability distribution functions and statistical properties implemented as PyTensor symbolic expressions. It provides a unified, tested source for core probability operations—pdf, cdf, ppf, logpdf, mean, variance, entropy, and others—designed to reduce redundancy across the PyMC ecosystem and allow other libraries to build specialized APIs on top of these expressions.
The package takes a minimal, function-based design approach: one file per distribution, no classes, and a focus on simplicity. It depends only on numpy and pytensor, making it lightweight to install. It is currently in active development (alpha status) and welcomes community contributions.
Use it for
- Building probabilistic models in PyMC or other Bayesian inference frameworks that need standardized distribution expressions
- Computing probability density, cumulative distribution, and inverse functions for statistical analysis workflows
- Implementing custom probabilistic algorithms that require symbolic distribution operations via PyTensor
- Reducing code duplication by using a shared, tested library of distribution implementations across multiple projects
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are working with PyMC or building probabilistic models that benefit from PyTensor's symbolic computation.
The low install friction, permissive license, and active maintenance make it a reasonable choice. However, the alpha status means the API and feature coverage may change; verify that the distributions and expressions you need are already implemented before committing to a production dependency.
Install
pytensor-distributions on PyPI
Before you install
Low install friction; the package is a pure Python wheel with only numpy and pytensor as runtime dependencies. Actively maintained with a recent release, though still in alpha development status.
Requires Python 3.12 or later; pytensor must be installed and functional.
License in practice
Licensed under Apache Software License (permissive), allowing commercial and private use with minimal restrictions.
Quickstart
pip install pytensor-distributions
import pytensor_distributions as ptd
import numpy as np
# Example: compute pdf of a distribution
pdf_value = ptd.normal.pdf(x=0.0, mu=0.0, sigma=1.0)
Verify before relying
- Which specific distributions are currently implemented and which core expressions each supports
- Performance characteristics compared to scipy or other probability libraries
- API stability guarantees given the alpha development status
Package facts
| License | permissive license permissive |
| Python support | Supports the current Python release >=3.12 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesnumpypytensor |
| Maintenance | Actively maintained 67 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 248,129 / month, #8,675 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14 |
Evidence: pytensor_distributions-0.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “probability distributions pytensor”
- pytensor-distributionsPyTensor-distributions provides a collection of probability…
- pymc-extrasExtends PyMC with specialized distributions, alternative inference…
- distraxDistrax provides JAX-native probability distributions and bijectors…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also cody-special · momentchi2 · pytensor · reliability · tensorflow-probability · tfp-nightly · pymc-extras · pyro-ppl · statistics · lifelines