Function cmb_random_std_t_dist
Defined in File cmb_random.h
Function Documentation
-
static inline double cmb_random_std_t_dist(const double v)
Student’s t-distribution for confidence intervals and t-tests.
Mean 0.0 for
v > 1, variancev / (v - 2)forv > 2, otherwise undefined.Can be used as a generic fat-tailed alternative to the standard normal distribution, where the degree of fat-tailedness depends on
v. It is equal to a Cauchy distribution forv = 1, converging to a normal distribution asv -> oo.See also https://en.wikipedia.org/wiki/Student%27s_t-distribution