ncfcdf
NoncentralFcumulative distribution function
Syntax
p = ncfcdf(x,nu1,nu2,delta)
p = ncfcdf(x,nu1,nu2,delta,'upper')
Description
p = ncfcdf(x,nu1,nu2,delta)
computes the noncentralFcdf at each value inx
using the corresponding numerator degrees of freedom innu1
, denominator degrees of freedom innu2
, and positive noncentrality parameters indelta
.nu1
,nu2
, anddelta
can be vectors, matrices, or multidimensional arrays that have the same size, which is also the size ofp
. A scalar input forx
,nu1
,nu2
, ordelta
is expanded to a constant array with the same dimensions as the other inputs.
p = ncfcdf(x,nu1,nu2,delta,'upper')
returns the complement of the noncentralFcdf at each value inx
, using an algorithm that more accurately computes the extreme upper tail probabilities.
The noncentralFcdf is
whereI(x|a,b) is the incomplete beta function with parametersaandb.
Examples
References
[1] Johnson, N., and S. Kotz.Distributions in Statistics: Continuous Univariate Distributions-2.Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 189–200.