Skip to main content

Module statistical_functions

Module statistical_functions 

Source
Expand description

Statistical functions: probability densities, cumulative distribution functions and quantiles built on the error function and the incomplete gamma and beta functions.

Invalid parameters (non-positive scales, degrees of freedom, probabilities outside [0, 1]) yield NaN.

See the book entry Statistical distribution functions.

Functions§

beta_cdf
The CDF of a beta distribution on [0, 1].
binomial_cdf
The binomial CDF P(X <= k) for n trials with success probability p.
binomial_pmf
The binomial probability mass P(X = k) for n trials with success probability p.
chi_square_cdf
The CDF of a chi-square distribution with k degrees of freedom.
chi_square_quantile
The quantile of a chi-square distribution with k degrees of freedom, for p in [0, 1].
chi_square_survival
The upper-tail probability P(X > x) of a chi-square distribution (the p-value of a statistic).
f_cdf
The CDF of the F distribution with d1 and d2 degrees of freedom.
gamma_cdf
The CDF of a gamma distribution with the given shape and scale.
normal_cdf
The cumulative distribution function of a normal distribution, accurate in both tails.
normal_pdf
The probability density of a normal distribution with the given mean and standard deviation.
normal_quantile
The quantile (inverse CDF) of a normal distribution, for p in [0, 1].
poisson_cdf
The Poisson CDF P(X <= k) with mean lambda.
poisson_pmf
The Poisson probability mass P(X = k) with mean lambda.
student_t_cdf
The CDF of Student’s t distribution with nu degrees of freedom.
student_t_quantile
The quantile of Student’s t distribution with nu degrees of freedom, for p in [0, 1].