A python package that implements an easytouse interface for random variables, statistical distributions, and their algebra.
Project description
distributionalgebra
A python package that implements an easytouse interface for random variables, statistical distributions, and their algebra.
This Python package is brought to you by Vaibhav Karve.
distributionalgebra
recognizes Normal, Lognormal, Beta and Poisson
distributions. The package implements an interface to easily construct
userdefined Univariate distributions as well Vectorized distributions.
Additional features include:
 A
plot
function for probability density/mass function plotting.  A
draw
function for drawing random samples of specified size from a given distribution.  Addition and multiplication operations defined directly on distributions:
 For example, the sum of two Normal (Poisson) distributions is Normal (Poisson).
 The product of two Lognormal distributions is Lognormal.
 The sum of two arbitrary univariate distributions is expressed as a Vectorized distribution.
This package is written in Python v3.10, and is publicly available under the GNUGPLv3.0 license.
Installation and usage
To get started on using this package,

Install Python 3.10 or higher.

python3.10 m pip install distributionalgebra

Use it in a python script (or interactive REPL)
from distribution_algebra import Beta, Lognormal, Normal, Poisson x: Normal = Normal(mean=1.0, var=9.0) y: Normal = Normal(mean=1.0, var=16.0) assert x + y == Normal(mean=2.0, var=25.0)
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
Hashes for distribution_algebra0.1.26.tar.gz
Algorithm  Hash digest  

SHA256  6da9a9d2a345f3ce02715e8d40523ebe4ed79a489485e14c4d2662cc7cc540bc 

MD5  1747b352efae8dfaa1c477c8e64a514d 

BLAKE2b256  6b1fd244612128bb26eb8c01d6c9626df828ed0d3de8414724ffb0d1fdcef863 
Hashes for distribution_algebra0.1.26py3noneany.whl
Algorithm  Hash digest  

SHA256  26d7a34742fc3b8323131de23a27349a0d57287bf026735b3ebf6c0fa595e958 

MD5  9f8783818c8adecb6318c994e648289f 

BLAKE2b256  e1e5f971066ef293f7ea8d3842762d602e15f3b69a482975c5b6e2980eab99cc 