Compute and plot PMFs for Binomial, Geometric, Negative Binomial and Poisson distributions.
Reason this release was yanked:
Installation issues
Project description
Discrete_pmf — A Python module for plotting PMFs of discrete distributions
This module provides simple, customizable utilities for computing and visualizing Probability Mass Functions (PMFs) for commonly used discrete distributions:
Binomial
Geometric
Negative Binomial
Poisson
Each function supports plotting using matplotlib, and returns the computed PMF values for programmatic access.
Requirements Python ≥ 3.6
matplotlib
Standard Library: math
Available Functions binom_pmf(x_values, n, p_list, plot=True) Compute and plot the Binomial Probability Mass Function.
Parameters: x_values (List[int]): List of x-values at which to evaluate the PMF.
n (int): Number of trials.
p_list (List[float]): List of success probabilities to evaluate.
plot (bool, default=True): Whether to display a PMF plot.
Returns: Dict[float, List[float]]: Dictionary mapping each p to its corresponding PMF values (rounded to 5 decimal places).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file discrete_pmf-0.1.0.tar.gz.
File metadata
- Download URL: discrete_pmf-0.1.0.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.11.0-21-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f28f5a79f951d1549c44fc6fc8795fdb790d2e000c60cfc4767aac1dd31da8f9
|
|
| MD5 |
0daff6fa0dffc5b19d2ef16dcea4d7ee
|
|
| BLAKE2b-256 |
2fc73309590a2d6f3fa270054e6fc26bc9d3782a0bbb9afdc63119e9a512bf44
|
File details
Details for the file discrete_pmf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: discrete_pmf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/6.11.0-21-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e397e9511e4075bc5772221c6593bff3c9f91f447ef253423df7f3424d354709
|
|
| MD5 |
715f8dc81b3d37f5d544dc2f8eed5fa4
|
|
| BLAKE2b-256 |
3770b1047621f1e9ec28bea3e43e6a364b2ab3028aa019daecd3d01f6781af08
|