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.5.1.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.5.1-py3-none-any.whl (77.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: probabilistic_functions-0.5.1.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.5.1.tar.gz
Algorithm Hash digest
SHA256 b2801dedf7c2654ef446986a2fd43404e87dd3b797e8b9c9342baee07963ea5d
MD5 d6869cfc02509d8388735b043f2571dc
BLAKE2b-256 d55e46da9e40998ea5142486c90aee902d5fc2b46c05e90205fd5420019b7534

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for probabilistic_functions-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 10d1f5d5347dfcb62cf826d591d39d32d60376b2d02281d8a83b74498f7dacca
MD5 6763863c3cded70b4b89e8476f07a5f1
BLAKE2b-256 1d4a8206d88034647df22da2e5541fa7a6a3d733307d6820cb241f8c8b1fa989

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