Student | CPN Tools help |
Function for generating values from student distributions | CPN ML |
student (n:int) : real
where n>=1
. Returns a drawing from a Student distribution (also
called t distribution) with n
degrees of freedom.
Note that as n
increases, the Student density approaches the normal density. Indeed, even for n=8
, the Student density is almost the same as the normal density.
Raises Student
exception, if n
<1.
Mean: | 0 |
Variance: | 1/n-2 |
Density functions for student distributions: