Statistics Toolbox | ![]() ![]() |
Noncentral T probability density function (pdf).
Syntax
Y = nctpdf(X,V,DELTA)
Description
computes the noncentral T pdf at each of the values in Y = nctpdf(X,V,DELTA)
X
using the corresponding degrees of freedom in V
and noncentrality parameters in DELTA
. Vector or matrix inputs for X
, V
, and DELTA
must have the same size, which is also the size of Y
. A scalar input for X
, V
, or DELTA
is expanded to a constant matrix with the same dimensions as the other inputs.
Example
Compare the noncentral T pdf with DELTA
= 1
to the T pdf with the same number of degrees of freedom (10).
x = (-5:0.1:5)'; p1 = nctpdf(x,10,1); p = tpdf(x,10); plot(x,p,'--',x,p1,'-')
References
Evans, M., N. Hastings, and B. Peacock, Statistical Distributions, Second Edition, John Wiley and Sons, 1993. p. 147-148.
Johnson, N., and S. Kotz, Distributions in Statistics: Continuous Univariate Distributions-2, John Wiley and Sons, 1970. pp. 201-219.
See Also
nctcdf
, nctinv
, nctrnd
, nctstat
, pdf
![]() | nctinv | nctrnd | ![]() |