Distributions#
This section collects various additional functions and methods for statistical distributions.
Empirical Distributions#
|
Return the Empirical CDF of an array as a step function. |
|
Return the Empirical Weighted CDF of an array as a step function. |
|
A basic step function. |
|
Given a monotone function fn (no checking is done to verify monotonicity) and a set of x values, return an linearly interpolated approximation to its inverse from its values on x. |
Count Distributions#
The discrete module contains classes for count distributions that are based on discretizing a continuous distribution, and specific count distributions that are not available in scipy.distributions like generalized poisson and zero-inflated count models.
The latter are mainly in support of the corresponding models in statsmodels.discrete. Some methods are not specifically implemented and will use potentially slow inherited generic methods.
|
Count distribution based on discretized distribution |
|
experimental model to fit discretized distribution |
Generalized Poisson distribution |
|
Zero Inflated Generalized Poisson distribution |
|
Zero Inflated Generalized Negative Binomial distribution |
|
Zero Inflated Poisson distribution |
Copula#
The copula sub-module provides classes to model the dependence between parameters. Copulae are used to construct a multivariate joint distribution and provide a set of functions like sampling, PDF, CDF.
|
Multivariate copula distribution |
|
Base class for Archimedean copulas |
|
Frank copula. |
|
Clayton copula. |
|
Gumbel copula. |
|
Gaussian copula. |
|
Student t copula. |
|
Extreme value copula constructed from Pickand's dependence function. |
|
Independence copula. |
|
Random sampling from empirical copula using Beta distribution |
The Archimedean generator transforms used by ArchimedeanCopula and the
Pickands dependence functions used by ExtremeValueCopula are in
and
respectively.
Bernstein Distribution#
Univariate and bivariate distributions estimated nonparametrically on the unit hypercube using Bernstein polynomials, e.g. for use as the marginal or copula component of a semiparametric model.
|
Distribution based on Bernstein Polynomials on unit hypercube. |
|
|
|
Mixture of Distributions#
Tools for combining component distributions into a mixture and generating random samples from the mixture.
univariate mixture distribution |
|
|
Sample from a mixture of distributions. |
|
Sample from a mixture of multivariate distributions. |
Distribution Extras#
Skew Distributions
univariate Skew-Normal distribution of Azzalini |
|
|
univariate Skew-Normal distribution of Azzalini |
univariate Skew-T distribution of Azzalini |
|
univariate Skew-Normal distribution of Azzalini |
Distributions based on Gram-Charlier expansion
|
Return the Gaussian expanded pdf function given the list of central moments (first one is mean). |
|
Return the Gaussian expanded pdf function given the list of 1st, 2nd moment and skew and Fisher (excess) kurtosis. |
|
Return the Gaussian expanded pdf function given the list of central moments (first one is mean). |
|
Gram-Charlier Expansion of Normal distribution |
cdf of multivariate normal wrapper for scipy.stats
|
standardized multivariate normal cumulative distribution function |
|
multivariate normal cumulative distribution function |
Helper Functions#
|
Turn a seed into a random number generator |