{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _distribution_infrastructure / UnivariateDistribution

ABCMeta

scipy.stats._distribution_infrastructure:UnivariateDistribution

source: /scipy/stats/_distribution_infrastructure.py :1515

Signature

def   UnivariateDistribution ( * tol = <object object at 0x0000> validation_policy = None cache_policy = None ** parameters )

Members

Summary

Class that represents a continuous statistical distribution.

Parameters

tol : positive float, optional

The desired relative tolerance of calculations. Left unspecified, calculations may be faster; when provided, calculations may be more likely to meet the desired accuracy.

validation_policy : {None, "skip_all"}

Specifies the level of input validation to perform. Left unspecified, input validation is performed to ensure appropriate behavior in edge case (e.g. parameters out of domain, argument outside of distribution support, etc.) and improve consistency of output dtype, shape, etc. Pass 'skip_all' to avoid the computational overhead of these checks when rough edges are acceptable.

cache_policy : {None, "no_cache"}

Specifies the extent to which intermediate results are cached. Left unspecified, intermediate results of some calculations (e.g. distribution support, moments, etc.) are cached to improve performance of future calculations. Pass 'no_cache' to reduce memory reserved by the class instance.

Attributes

All parameters are available as attributes.

Methods

support
plot
sample
moment
mean
median
mode
variance
standard_deviation
skewness
kurtosis
pdf
logpdf
cdf
icdf
ccdf
iccdf
logcdf
ilogcdf
logccdf
ilogccdf
entropy
logentropy

Notes

The following abbreviations are used throughout the documentation.

  • PDF: probability density function

  • CDF: cumulative distribution function

  • CCDF: complementary CDF

  • entropy: differential entropy

  • log-F: logarithm of F (e.g. log-CDF)

  • inverse F: inverse function of F (e.g. inverse CDF)

The API documentation is written to describe the API, not to serve as a statistical reference. Effort is made to be correct at the level required to use the functionality, not to be mathematically rigorous. For example, continuity and differentiability may be implicitly assumed. For precise mathematical definitions, consult your preferred mathematical text.

See also

rv_infrastructure

Tutorial

Aliases

  • scipy.stats._distribution_infrastructure.UnivariateDistribution