Mathematical distributions
Project description
MATHEMATICAL DISTRIBUTION ANALYSER
Analyse distributions inlcuding their mean, standard deviation and plots. The below distributions can be analysed in this package:
- Binomial distribution
- Gassian distribution
- General distribution
Installation
Run the following code in your terminal
pip install deoga_distribtions
Understanding the package
Generaldistribution.py - Initiates distribution class and contains the formulas(mu,sigma) for general distributions and reads file data using the read_data_file method.
Gaussiandistribution.py - Inherits distribution class and contains the following methods
calculate_mean- Calculate the mean of a Gaussian distributioncalculate_stdev- Calculate the standard deviation of a Gaussian distributionplot_histogram- Plot the Gaussian distribution.pdf- Calculate the probablility density function of the Gaussian distribution.plot_histogram_pdf- Plot a histogram of the probability density function of the gaussian distribution.__add__- Add two Gaussians together.__repr__- Print characteristics of Gaussian distribution
Binomialdistribution.py- Inherits distribution class and contains the following methods:calculate_mean- Calculate the mean of a Binomial distribution.calculate_stdev- Calculate the standard deviation of a Binomial distribution.replace_stats_with_data- replace hardcoded statistics with binomial data.plot_bar- Plot bar graph of the Binomial distribution.pdf- Calculate the probablility density function of the Binomial distribution.plot_bar_pdf- Plot a bar of the probability density function of the Binomail distribution.__add__- Add two Binomials together.__repr__- Print characteristics of Binomial distribution.
Usage
Run scripts in a python compiler.
Quick Tests
Some tests to check if package is working is to run the following in a python code executer:
from deoga_distributions import Gaussian, Binomial
Gaussian(10, 7)
Binomial(0.4, 16)
You should get a returned string describing the distribution characteristics with no errors.
Extending this
If you want to extend this work, here are a few places to start:
- Add new models to the distribution
- Add new plots to the models
- Add new statisticals analytical methods to the distributions
Credits
Lead Developer - Deoga Kofi
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
File details
Details for the file deoga_distributions-0.5.tar.gz.
File metadata
- Download URL: deoga_distributions-0.5.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91b711bf9e22497a6e9c49199682b6b8d5a839a0530f2d926e18a5583a60abcf
|
|
| MD5 |
b067a7c16041d98a8d3dae01fbe49892
|
|
| BLAKE2b-256 |
0030689a5cfa5d2183d3c7aee55fe5bc20c55b067154a76f93ae47dcc7520202
|