Noncentral t mean and variance
[M,V] = nctstat(NU,DELTA)
[M,V] = nctstat(NU,DELTA) returns
the mean of and variance for the noncentral t pdf with
of freedom and noncentrality parameter
be vectors, matrices, or multidimensional arrays that all have the
same size, which is also the size of
A scalar input for
expanded to a constant array with the same dimensions as the other
The mean of the noncentral t distribution with parameters ν and δ is
where ν > 1.
The variance is
where ν > 2.
[m,v] = nctstat(10,1) m = 1.0837 v = 1.3255
 Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. 2nd ed., Hoboken, NJ: John Wiley & Sons, Inc., 1993, pp. 147–148.
 Johnson, N., and S. Kotz. Distributions in Statistics: Continuous Univariate Distributions-2. Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 201–219.