Skip to main content

Gaussian and Binomial distributions

Project description

Distribeauty

Simple python package, capable of calculating and plotting the probability distribution functions for both Gaussian and Binomial distributions. For a mathematical background you can refer to Gaussian and Binomial links accordingly

Dependencies

  • matplotlib (can be installed via pip install matplotlib, if you are using different package manager, refer to the instruction)
  • unittest for testing

List of methods and brief description

  • calculate_mean() and calculate_stdev() simply calculates both mean and standard deviation of your data accordingly
  • plot_histogram() and plot_histogram_pdf(n_spaces) are method to output a histogram of the instance variable data using matplotlib.pyplot library and method to plot the normalized histogram of the data and a plot of the probability density function along the same range accordingly (n_spaces refer to a number of data points, for Binomial use plot_bar() and plot_bar_pdf()
  • pdf(x) probability density function calculator
  • read_data_file(file_name) inherits from GeneralDistribution class to read the data
  • replace_stats_with_data() Binomial exclusive function to to calculate probability of the positive outcome and number of trials from the data set

Tests

Utilize the test.py script included in the package in order to test the functions functionality.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

distribeauty-1.0.5-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page