Distributions
norm
Functions for working with a normal continuous random variable.
Source code in python/rapidstats/_distributions.py
4 5 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 |
|
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 \) |
Source code in python/rapidstats/_distributions.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
|
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 |
Source code in python/rapidstats/_distributions.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|