Statistics Toolbox    
tstat

Mean and variance for the Student's t distribution

Syntax

Description

[M,V] = tstat(NU) returns the mean and variance for Student's t distribution with parameters specified by NU. M and V are the same size as NU.

The mean of the Student's t distribution with parameter is zero for values of  greater than 1. If is one, the mean does not exist. The variance for values of  greater than 2 is .

Examples

Find the mean and variance for 1 to 30 degrees of freedom.

Note that the variance does not exist for one and two degrees of freedom.

See Also

tcdf, tinv, tpdf, trnd


  trnd ttest