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.
Run the following to install:
pip install DemystiPy
- Numpy
- Scipy
- Matplotlib
from DemystiPy.pdistributions import Binomial, Gaussian
b = Binomial() g = Gaussian()
b.pmf(8,15,0.35)
b.cdf(6,15,0.35)
b.cdf(9,15,0.35,upper=True)
b.cdf2([5,9],15,0.35)
Calculate cumulative density function and percentile point function for a gaussian/normal distribution
g.cdf(40,30,4)
g.cdf(21,30,4,upper=True)
g.cdf2([30,35],30,4)