Skip to content

student_t

Syntax

student_t(n)

Parameters

n
Degrees of freedom.

Returns

Returns a variate according to a Student-t distribution.

Description

Returns variate of a Student-t distribution with n degrees of freedom. This distribution produces random numbers as the result of normalizing the values of a relatively small sample (n + 1 values) of independent, normally-distributed values. As the sample size increases, the distribution approaches a standard normal distribution.

Examples

The following state will make entering agents collectively wait with a Student-t distribution (n = 2) of individual hourly wait times:

state Demo {
    wait(student_t(2))
    next(Excluded)
}

See Also