Skip to main content

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):

  1. central.py: Contains functions to measure central tendency such as Mean, Median and Mode.
  2. 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

ProbStatipy-0.0.5.tar.gz (9.1 kB view details)

Uploaded Source

Built Distribution

ProbStatipy-0.0.5-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file ProbStatipy-0.0.5.tar.gz.

File metadata

  • Download URL: ProbStatipy-0.0.5.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

Hashes for ProbStatipy-0.0.5.tar.gz
Algorithm Hash digest
SHA256 245493fc252020b355be0946793a18595389dd3fcfa5a79d1e41eed472262215
MD5 888b93649ba3fc6ee379a1ad684940d0
BLAKE2b-256 00b7dbf0e435091f5f4d42f3d7931fd57224d5063f2b3b8a1e680d24e7ead155

See more details on using hashes here.

File details

Details for the file ProbStatipy-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: ProbStatipy-0.0.5-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

Hashes for ProbStatipy-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f1cc4b16eea2841ae04745ce8e499c8635526b18cd5ca6cf7006eef13479e326
MD5 c2eac3756797c8426592dec9069c75a4
BLAKE2b-256 0d27044d1625b5df9bf0e23c4a7859e3c983924d3bcffb4ef8dfca8c29dad88c

See more details on using hashes here.

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