Skip to content

StatsPykage is an open source Python package for analysing standard statistical distributions: Gaussian, Binomial, Poisson etc. distributions; hosted on PyPi.org

License

Notifications You must be signed in to change notification settings

VaasuCodez/statspykage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

StatsPykage is an open source Python package for analysing standard statistical distributions: Gaussian, Binomial, Poisson etc. distributions; hosted on PyPi.org.

Data can be read from .txt files to instances of the distribution models. The package can be used to:

  1. Compute the properties of a distribution, such as the mean and standard deviation.
  2. Compute a distribution's probability density function for given values and intervals.
  3. Plot the distribution and probability density functions visually .

Table of Contents

Installation

Use the package manager pip to install StatsPykage.

pip install statspykage

Dependencies

The package should run with no issues using Python version 3.

To run the package, users also need to have the following packages installed:

Usage

import statspykage

# initialize two gaussian distributions
gaussian_one = Gaussian(25, 3)
gaussian_two = Gaussian(30, 2)

# initialize a third gaussian distribution reading in a data file
gaussian_three = Gaussian()
gaussian_three.read_data_file('filepath/filename.txt')
gaussian_three.calculate_mean()
gaussian_three.calculate_stdev()

# print out the mean and standard deviations
print(gaussian_one.mean) # PRINTS: 25
print(gaussian_two.mean) # PRINTS: 30

print(gaussian_one.stdev) # PRINTS: 3
print(gaussian_two.stdev) # PRINTS: 2

print(gaussian_three.mean)
print(gaussian_three.stdev)

# plot histogram of gaussian three
gaussian_three.plot_histogram_pdf()

# add gaussian_one and gaussian_two together
gaussian_one + gaussian_two

Contribute

Contributions are welcomed. For major changes, kindly open an issue first to discuss the same before creating a pull request.

License

MIT

Footer

Leave a star in the GitHub repository if you found this project helpful!

(Back to top)

About

StatsPykage is an open source Python package for analysing standard statistical distributions: Gaussian, Binomial, Poisson etc. distributions; hosted on PyPi.org

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages