The statistics module implements many common statistical formulas for efficient calculations using Python’s various numerical types ( int , float , Decimal , and Fraction ).

This post is part of the Python Module of the Week series for Python 3. See PyMOTW.com for more articles from the series.