Skip to main content

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

DemystiPy-1.0.6.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DemystiPy-1.0.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file DemystiPy-1.0.6.tar.gz.

File metadata

  • Download URL: DemystiPy-1.0.6.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/1.6.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for DemystiPy-1.0.6.tar.gz
Algorithm Hash digest
SHA256 f5e7c9cd80eb3db16a6b369d97658821fe31810c51bac78997915fe2131323d8
MD5 3e95e98ed358e50af536ad5c09efce82
BLAKE2b-256 6e3b324596d32b6b21191c1aa57c91891c186506ac25ed37acd95eb2584d8677

See more details on using hashes here.

File details

Details for the file DemystiPy-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: DemystiPy-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/1.6.0 pkginfo/1.5.0.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.3

File hashes

Hashes for DemystiPy-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 75c7e52c9cc7b0054613d8154ccf759471d9d5e5aafdadf86eb4f1333ecac947
MD5 c888140150b6598f5ef4cf9d605b7dbf
BLAKE2b-256 dd792da45db437fdf5e78d6f887bf1f48f81fe343546a7303e3fed0a8b661099

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