<< distfun_trnd T Truncated Normal >>

Distfun >> Distfun > T > distfun_tstat

distfun_tstat

T mean and variance

Calling Sequence

M = distfun_tstat ( v )
[M,V] = distfun_tstat ( v )

Parameters

v :

a matrix of doubles, the number of degrees of freedom, v>0.

M :

a matrix of doubles, the mean

V :

a matrix of doubles, the variance

Description

Computes statistics from the T distribution.

The mean of the T distribution is

if v > 1. M is undefined if 0 < v <= 1.

The variance of the T distribution is

if v > 2. We have V=Inf if 1 < v <= 2. V is undefined if 0 < v <= 1.

Any scalar input argument is expanded to a matrix of doubles of the same size as the other input arguments.

Examples

[M,V] = distfun_tstat ( [0.5 1 1.5 2 2.3 4] )
me=[%nan %nan 0. 0. 0. 0.]
ve=[%nan %nan %inf %inf 2.3/0.3 2]

Authors


Report an issue
<< distfun_trnd T Truncated Normal >>