A Python package for easy manipulation and calculation with Gaussian and Binomial distributions.
Project description
QuantGaussBinomial
Description
QuantGaussBinomial is a Python package designed for quantitative developers and data analysts. It provides easy-to-use classes for working with Gaussian and Binomial distributions, allowing for efficient calculations and visualizations. This package is particularly useful in fields like finance, economics, and scientific research where these distributions are commonly applied.
Features
- Gaussian Distribution: Class for calculating and visualizing Gaussian distributions. Features include calculation of mean, standard deviation, and probability density functions (PDF), as well as generating histograms and PDF plots.
- Binomial Distribution: Class for working with Binomial distributions, including functionalities for calculating mean, standard deviation, PDF, and generating histograms and PDF plots.
Usage
Gaussian Distribution
from QuantGaussBinomial import Gaussian
# Create a Gaussian distribution
gaussian = Gaussian(mu=0, sigma=1)
gaussian.read_data_file('data_file.txt')
gaussian.calculate_mean()
gaussian.calculate_stdev()
# Plotting
gaussian.plot_histogram()
gaussian.plot_histogram_pdf()
from QuantGaussBinomial import Binomial
# Create a Binomial distribution
binomial = Binomial(p=0.5, size=20)
binomial.read_data_file('data_file.txt')
binomial.calculate_mean()
binomial.calculate_stdev()
# Plotting
binomial.plot_bar()
binomial.plot_histogram_pdf()
#Adding Distributions
gaussian_one = Gaussian(25, 3)
gaussian_two = Gaussian(30, 4)
gaussian_sum = gaussian_one + gaussian_two
Dependencies
Python 3.x
Matplotlib
Contributing
Contributions to QuantGaussBinomial are welcome! Please read our contributing guidelines for more details.
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
Authors
Richie Sater - Initial work
Andrew Pastor and Udacity Team - Initial work and project set up
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file QuantGaussBinomial-1.9.tar.gz.
File metadata
- Download URL: QuantGaussBinomial-1.9.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddfb80ccb56bae770881b3d8b718d0e1a08e5a78c527af89d08acfea6b636618
|
|
| MD5 |
177e540f4d0e05deedf1cf6b3937347e
|
|
| BLAKE2b-256 |
716c3c912659abb3b678d47b1450325f6b33581d2e60e3ba39b288e3d1cc7e1f
|
File details
Details for the file QuantGaussBinomial-1.9-py3-none-any.whl.
File metadata
- Download URL: QuantGaussBinomial-1.9-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3645fd310606e216723848d3298844a7188bff8fa5f6ae870d5baf4453bcdfa
|
|
| MD5 |
31e41d7b12407f2dbe309e8e8d70bfc5
|
|
| BLAKE2b-256 |
59cd5be56fbae92e8364d7320b70100e05b88736eae1815a013429c989e25b65
|