Probability distributions
SciPy has two infrastructures for working with probability distributions. This tutorial is for the older one, which has many pre-defined distributions; however, the new infrastructure can be used with most of these and has many advantages. For the new infrastructure, see Random Variable Transition Guide.
There are two general distribution classes that have been implemented for encapsulating continuous random variables and discrete random variables. Over 100 continuous random variables (RVs) and 20 discrete random variables have been implemented using these classes. For mathematical reference information about individual distributions, please see Continuous Statistical Distributions and Discrete Statistical Distributions.
All of the statistics functions are located in the sub-package
scipy.stats and a fairly complete listing of these functions and random
variables available can also be obtained from the docstring for the
stats sub-package.