Distributions
Classes:
Name | Description |
---|---|
norm |
Functions for working with a normal continuous random variable. |
norm
Functions for working with a normal continuous random variable.
Methods:
Name | Description |
---|---|
cdf |
The cumulative distribution function. |
ppf |
The percent point function. Also called the quantile, percentile, inverse |
Source code in python/rapidstats/_distributions.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
cdf(x)
staticmethod
The cumulative distribution function.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
x
|
float
|
|
required |
Returns:
Type | Description |
---|---|
float
|
The probability a random variable will take a value \( \leq x \) |
Added in version 0.0.24
Source code in python/rapidstats/_distributions.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
ppf(q)
staticmethod
The percent point function. Also called the quantile, percentile, inverse
CDF, or inverse distribution function. Computes the value of a random variable
such that its probability is \( \leq q \). If q
is 0, it returns negative
infinity, if q
is 1, it returns infinity. Any number outside of [0, 1] will
result in NaN.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
q
|
float
|
Probability value |
required |
Returns:
Type | Description |
---|---|
float
|
Likelihood a random variable is realized in the range at or below |
Added in version 0.0.24
Source code in python/rapidstats/_distributions.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|