Skip to main content

Probabilistic Functions

A comprehensive Python library for working with probability distributions and statistical functions. This library provides tools for symbolic and numeric manipulation of probability distributions, along with visualization capabilities.

⚠️ Requirements

Warning This library is designed to work primarily in Jupyter environments with LaTeX support. Some functionality may not work correctly outside of this environment.

  • Python 3.13+
  • Jupyter Notebook/Lab
  • LaTeX installation for proper equation rendering

Installation

Install the library using pip:

pip install probabilistic-functions

Features

  • Symbolic representation of probability distributions
  • Calculation of probability mass/density functions (PMF/PDF)
  • Calculation of cumulative distribution functions (CDF)
  • Statistical properties (mean, variance, etc.)
  • Visualization of distributions with customizable parameters
  • Support for both discrete and continuous distributions

Supported Distributions

Discrete Distributions

  • Bernoulli
  • Binomial
  • Geometric
  • Hypergeometric
  • Poisson

Continuous Distributions

  • Normal (Gaussian)
  • Exponential
  • Uniform
  • Weibull
  • Gamma
  • Beta
  • LogNormal
  • Lindley

Experimental Distributions (Limited Support)

The following distributions are included in the library, but their functionality may be limited or unstable:

  • Burr
  • Pareto
  • Cauchy
  • Laplace
  • Gumbel

Note: Support for these distributions is under development. Some functions may not be fully implemented or may produce unexpected results.

Usage Examples

from probabilistic_functions.core import Binomial, Normal
from probabilistic_functions.plots import plot_function

# Plot a binomial distribution
binomial = Binomial()
plot_function(binomial, "pmf", {"n": 10, "p": 0.5})

# Plot multiple normal distributions
normal = Normal()
plot_function(normal, "pdf", {"m": [0, 1], "v": [1, 2]})

Working with Multiple Parameters

You can plot multiple parameter combinations by passing lists:

# Plot multiple Poisson distributions with different lambda values
from probabilistic_functions.core import Poisson
poisson = Poisson()
plot_function(poisson, "pmf", {"l": [1, 5, 10]})

Changelog

For a detailed list of changes between versions, please see the Changelog.

License

Apache License 2.0

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Metadata

Release files for probabilistic-functions 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for probabilistic-functions 0.6.0
File Size Uploaded Provenance
probabilistic_functions-0.6.0.tar.gz 47.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for probabilistic-functions 0.6.0
File Interpreter ABI Platform
probabilistic_functions-0.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 124.6 kB

Release files / probabilistic_functions-0.6.0.tar.gz

Download URL probabilistic_functions-0.6.0.tar.gz
Size 47.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ab5af5d48a6861d45bf2eadf7aaf63371f1a64beb0d8b45f1065a9db12a1cee2
BLAKE2b-256 checksum
How to use checksums
7d75b11403c09e549fd8eeb42c4dd3c1862f2bc224193fabd805f1bfcf5643e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / probabilistic_functions-0.6.0-py3-none-any.whl

Download URL probabilistic_functions-0.6.0-py3-none-any.whl
Size 77.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e40e11a62b5c87d48da5a142dfab83e298160138c1a4858ea4e5615cc6b5319b
BLAKE2b-256 checksum
How to use checksums
c93dc0a7a733c80e2e1a1a6e5dab5d2a017004e33bfea9932c33c9b74abffbc5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for probabilistic-functions 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page