Darwin Help

Back to Index

Student_Rand

Function Student_Rand - Generate random Student's-t distributed reals

Calling Sequence  Rand(Student(nu))
Parameters
NameTypeDescription

nu nonnegative 
Return Type  numeric
Synopsis This function returns a random Student's t distributed number with average 0 and variance nu/(nu-2). If X is a Normal(0,1) random variable and X1 is a Chi-square random variable with parameter nu, X/sqrt(X1/nu) is Student(nu) distributed. Student_Rand uses Rand() which can be seeded by either the function SetRand or SetRandSeed.
References Handbook of Mathematical functions, Abramowitz and Stegun, 26.7
Examples
> Rand(Student(3));
-0.5985
> Rand(Student(100));
-0.00568600
See also Beta_Rand,   Binomial_Rand,   ChiSquare_Rand,   CreateRandSeq,   Cumulative,   Exponential_Rand,   FDist_Rand,   GammaDist_Rand,   Geometric_Rand,   Graph_Rand,   Multinomial_Rand,   Normal_Rand,   Poisson_Rand,   SetRand,   SetRandSeed,   Shuffle,   StatTest,   Std_Score,   Zscore