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", {"lambda": [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.5.0.tar.gz (16.5 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.5.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: probabilistic_functions-0.5.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for probabilistic_functions-0.5.0.tar.gz
Algorithm Hash digest
SHA256 905d4caa65345445f0cc5d669ad2302b495fe86cbfb338f5c82f64a5f370b962
MD5 fbc5f2f41872998d984f96c06ca19b6c
BLAKE2b-256 3ff969671bac84055eff1b03bb5ee81f460351d3acd069d70e9e306284084450

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for probabilistic_functions-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af5248a3e0d6130402057127d8ffc65bb154a4361a5a87df693858bbf8025b02
MD5 f03e035ddfe657491fb79c738ad182d3
BLAKE2b-256 66df6d3c168ff966e8a6a3a94c528be4344aa807b7cc567c5d37a265ab172999

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