student_t()

Agent action that returns a variate of a student_t distribution.

Synopsis

student_t(n)

Description

Returns floating point 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.

Parameters

n

Degrees of freedom.

Returns

Returns a floating point variate according to a student_t distribution.

Examples

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

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

See Also

bernoulli(), binomial(), cauchy(), chi_squared(), extreme_value(), fisher_f(), gamma(), gompertz(), lognormal(), negative_binomial(), normal(), poisson(), uniform(), weibull()