Python Statistics Module
Statistical functions — mean, median, mode, stdev, correlation. This category documents 13 Python statistics module entries, and each page gives you the full syntax, the parameter list, the return value, and a runnable example. The entries include: statistics.mean(), statistics.median(), statistics.median_low(), statistics.median_high(), statistics.mode(), statistics.multimode(), statistics.stdev(), statistics.pstdev(), statistics.variance(), statistics.pvariance(), statistics.quantiles(), statistics.correlation(), statistics.linear_regression(). statistics.mean() returns the arithmetic mean (average) of numeric data. statistics.median() returns the median (middle value) of numeric data. statistics.median_low() returns the low median of numeric data (for when there are an even number of values). statistics.median_high() returns the high median of numeric data. statistics.mode() returns the most common data point. Raises StatisticsError if no unique mode. For a structured walkthrough of the whole topic, read the Statistics Module guide. Statistics Module belongs to the Math & Stats group alongside Math Module, Random Module, Decimal Module, Fractions Module.