Skip to main content

gauss-binomial-mp99 package

The package contains methods for performing computations pertaining to Guassian and Binomial distributions.

Installation

>>> pip install gauss-binomial-mp99

Files

Generaldistribution.py The parent class, contains __init__ and read_data_file methods.

Import:

>>> from gauss_binomial_mp99 import Gaussian, Binomial
>>> gauss = Gaussian()
>>> gauss.read_data_file('sample.txt') 

Gaussiandistribution.py

Gaussian distribution class for calculating and visualizing a Gaussian distribution. Methods to compute Gaussian distribution features include-

  • calculate_mean(): Function to calculate the mean of the data set.
  • calculate_stdev(): Function to calculate the standard deviation of the data set.
  • plot_histogram(): Function to output a histogram of the instance variable data using matplotlib pyplot library.
  • pdf(x): Probability density function calculator for the gaussian distribution.
  • plot_histogram_pdf: Function to plot the normalized histogram of the data and a plot of the probability density function along the same range

Default: mu= 0 and sigma=1

Form: guass(mu, sigma)

Example:

>>> gauss.calculate_mean()
78.0909090909091
>>> gauss.calculate_stdev()
92.87459776004906

Provides the functionality of adding two Gaussian distribution objects.

Binomialdistribution.py

Binomial distribution class for calculating and visualizing a Binomial distribution. Methods to compute Gaussian distribution features include-

  • calculate_mean(): Function to calculate the mean from p= probability and n= size
  • calculate_stdev(): Function to calculate the standard deviation from p and n.
  • plot_bar(): Function to output a histogram of the instance variable data using matplotlib pyplot library.
  • pdf(x): Probability density function calculator for the gaussian distribution.
  • plot_bar_pdf: Function to plot the pdf of the binomial distribution.

Default: p= 0.5 and n=20

Form: bin(p, n)

>>> bin= Binomial(.45, 78)
>>> bin.pdf(34)
0.08798942891783665

Provides the functionality of adding two Binomial distribution objects with the same probablity.

Metadata

Release files for gauss-binomial-mp99 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gauss-binomial-mp99 0.1.3
File Size Uploaded Provenance Actions
gauss_binomial_mp99-0.1.3.tar.gz 4.1 kB Without provenance Details for gauss_binomial_mp99-0.1.3.tar.gz

Release files / gauss_binomial_mp99-0.1.3.tar.gz

Download URL gauss_binomial_mp99-0.1.3.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5cb26a78f99740252ed2fb91565ac2fed093f89f9e58f3c7280d0ad075803340
BLAKE2b-256 checksum
How to use checksums
6b27fb028d625e2e095015a3b139b5e0a9e5235c9c0d427010ed1460de07fefb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0.post20200518 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.7

Security for gauss-binomial-mp99 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page