Statistical functions (scipy.stats)

This module contains a large number of probability distributions as well as a growing library of statistical functions.

Each univariate distribution is an instance of a subclass of rv_continuous (rv_discrete for discrete distributions):

Continuous distributions

Multivariate distributions

Discrete distributions

Statistical functions

Several of these functions have a similar version in scipy.stats.mstats which work for masked arrays.

Circular statistical functions

Contingency table functions

contingency.expected_freq(observed) Compute the expected frequencies from a contingency table.
contingency.margins(a) Return a list of the marginal sums of the array a.

Plot-tests

Univariate and multivariate kernel density estimation (scipy.stats.kde)

For many more stat related functions install the software R and the interface package rpy.