A basic statistics module to compute MLEs / probabilities
Project description
Statistics_Module
Creating a project to implement various statistical distributions and methods in Python.
To install and run this project, do the following:
- Run the following to install:
pip install applied_stats
-
Follow these examples to start plotting and calculating probabilities. The examples below, and several others, can also be found in the Demonstration Jupyter Notebook
-
To run the test file, from the command line enter:
python test.py
Usage
To generate some plots and calculate some probabilities:
>>> from stats_tools import continuous_distributions
>>> a = Norm_rv(0,1)
>>> a.plot_pdf()
>>> a.probability_calc()
>>> q = ChiSq_rv(4,crit_value=7)
>>> q.plot_pdf(cv_probability=True)
>>> q.probability_calc()
To calculate the numeric MLE of several common distributions:
>>> from stats_tools import mle
>>> a = [1,3,2,5,6,7,2,3,4,5]
>>> mle.binomial(a)
>>> 3.8
>>> b = [1.2,4.3,2.3,6.8,2.4,3.6]
>>> mle.exponential(b)
>>> 3.4333333333333336
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
applied_stats-0.0.1.tar.gz
(55.1 kB
view hashes)
Built Distribution
Close
Hashes for applied_stats-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6af96e68af8ffb3aa3de0d19cc6c3b3f2027fe53aba138795f104e94c4148aee |
|
MD5 | 06f5f720bc1c51b3ac1baa033c21c474 |
|
BLAKE2b-256 | da0356d39279269935bf6323875fc556d5b281414c71305c9a984d45c415a393 |