Skip to main content

A Python package for working with probabilistic functions and distributions.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

probabilistic_functions-0.6.0.tar.gz (47.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

probabilistic_functions-0.6.0-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

Details for the file probabilistic_functions-0.6.0.tar.gz.

File metadata

  • Download URL: probabilistic_functions-0.6.0.tar.gz
  • Upload date:
  • Size: 47.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for probabilistic_functions-0.6.0.tar.gz
Algorithm Hash digest
SHA256 ab5af5d48a6861d45bf2eadf7aaf63371f1a64beb0d8b45f1065a9db12a1cee2
MD5 9cb8a8ac61c45a21b7d1da5527a5a359
BLAKE2b-256 7d75b11403c09e549fd8eeb42c4dd3c1862f2bc224193fabd805f1bfcf5643e6

See more details on using hashes here.

File details

Details for the file probabilistic_functions-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for probabilistic_functions-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e40e11a62b5c87d48da5a142dfab83e298160138c1a4858ea4e5615cc6b5319b
MD5 f3022f830e0c4f6ef303c9e7f8fc06c2
BLAKE2b-256 c93dc0a7a733c80e2e1a1a6e5dab5d2a017004e33bfea9932c33c9b74abffbc5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page