A Python package to compute probabilities and statistics
Project description
ProbStatipy
Intro
ProbStatipy is a package of Python modules equipped with functions that are used in Statistics.
While the functions are extensively documented, you can check out my Jupyter Notebooks in the Numerical Summary repo to fully understand my thought process while coming up with these functions.
Modules
As of now, this package contains two modules in the src
folder (src > ProbStatipy
):
- central.py: Contains functions to measure central tendency such as Mean, Median and Mode.
- spread.py: Contains functions to measure dispersion/spread such as Variance (Mean Squared Deviation), Standard Deviation and Mean Absolute Deviation (MAD).
How to install and use this package
To install the package, run:
pip install ProbStatipy
To upgrade it, run:
pip install --upgrade ProbStatipy
To use the modules in your Python Code, ensure to include the following import statements:
from ProbStatipy import central
from ProbStatipy import spread
Now you can access the functions to conduct your statistical analysis:
print(central.mean([3,4,5]))
print(spread.variance([3,4,5]))
>>> 4.0
>>> 0.6666666666666
Functions
Below is a catalog of functions available in each module
central.py
mean()
Calculates the population arithmetic mean
median()
Calculates the median value of the population
mode()
Calculates the mode
spread.py
variance()
calculates the population variance
stdeviation()
computes the population standard deviation
mad()
Computes the population mean absolute deviation
get_range
gets the range of the dataset
iqr()
gets the interquartile range of the dataset
Dependencies
Module | Statistics Topic | Dependencies |
---|---|---|
pystats_central | Central Tendancy | - |
pystats_spread | Spread / Dispersion | math |
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
Built Distribution
File details
Details for the file ProbStatipy-0.0.4.tar.gz
.
File metadata
- Download URL: ProbStatipy-0.0.4.tar.gz
- Upload date:
- Size: 9.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c7be29d1eb514eec661ddca72f780778b324cd735fdefccb27bb43bcce3a0dc |
|
MD5 | a032f15eb5863482e112a630d3ec5a1e |
|
BLAKE2b-256 | b47b13240a2e153245d0fbdd50f962edd0cb4f977d5b6d99db29221e5a2ca332 |
File details
Details for the file ProbStatipy-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: ProbStatipy-0.0.4-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a423d1e960682be3fce0072cabf576625e68f30468e8766d53e04c9bde15b22 |
|
MD5 | 28be3592f48e2f9cc43ce9a0f256e920 |
|
BLAKE2b-256 | 70375c2ab8064fad5168233904591e2da0e8b53094415369fd858adec3b52b91 |