Note, this repository and the statsy package is still in development
This repository contains the source code for the PyPi package Statsy. This package was built initially to track functions, operations, and methods used for statistics. It is not a production-ready package, but its components and functions may be used and repurposed.
The package is divided into several components, visualized with pydeps below:
Although the main module imports NumPy, it is not a significant dependency. main.py
defines a few core, frequently occuring operations such as summation notation and product notation. Most of the core statistical functions and operations are located in Methods.py
Currently, Statsy provides support for many standard functions in statistics (variance, standard deviation, mean, geometric mean, etc.) and probability (simple probability, joint probability, permutations, combinations, etc.).
Statsy may be downloaded using pip:
pip install statsy
And imported into your code:
import statsy as sty
print(sty.summation(None,None,lambda x,y: x*y, [[1,2,3],[4,5,6]]))
Alternatively, the entire module may be imported, and the functions called directly:
from statsy import *
print(summation(None,None,lambda x,y: x*y, [[1,2,3],[4,5,6]]))
Statsy is built out of simple Python components and is not computationally optimized. Users may find libraries such as NumPy, Pandas, SciPy, and StatsModels more suitable and stable for their purposes.