An approach towards explainable statistics and machine learning
Project description
DemystiPy
This is a python module created for the purpose of visualizing and demystifying the statistical and machine learning concepts and algorithms used in the day to day life. For internalizing what is happening behind the scenes in these tools it is important to visualize them. The current version of the DemystiPy module offers the evaluation and visualization of the probability distribution functions which runs on top of the scipy python module to evaluate and visualize the Binomial and Gaussian probability distributions.
Installation
Run the following to install:
''' pip install DemystiPy '''
Requirements
- Numpy
- Scipy
- Matplotlib
Usage
from DemystiPy.pdistributions import Binomial, Gaussian
b = Binomial() g = Gaussian()
Calculate probability mass function and cumulative density function for a binomial distribution
e.g. P( X = 8) where no. of trials n = 15 and probability p = 0.35
b.pmf(8,15,0.35)
e.g. P( X < 7) where no. of trials n = 15 and probability p = 0.35
b.cdf(6,15,0.35)
e.g. P( X > 9) where no. of trials n = 15 and probability p = 0.35
b.cdf(9,15,0.35,upper=True)
e.g. P( 5 < X < 10) where no. of trials n = 15 and probability p = 0.35
b.cdf2([5,9],15,0.35)
Calculate cumulative density function and percentile point function for a gaussian/normal distribution
e.g. P( X = 40 ) mean = 30 std_dev = 4
g.cdf(40,30,4)
e.g. P( X > 21 ) mean = 30 std_dev = 4
g.cdf(21,30,4,upper=True)
e.g. P( 30 < X < 35 ) mean = 30 std_dev = 4
g.cdf2([30,35],30,4)
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
Built Distribution
Hashes for DemystiPy-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3739b3e9a2bb98a45c450b9366ca92ca7a20ab592831dff473892732ec435fa6 |
|
MD5 | 20d7ade416f2551cb10f6b2be0a2c34f |
|
BLAKE2b-256 | cf1853e6566086ca999910f547bb0ec657ae9d010d8e6c2f4bb9078201fe780c |