Contenido principal

ncfinv

Noncentral F inverse cumulative distribution function

Description

x = ncfinv(p,nu1, nu2,delta) returns the inverse cumulative distribution function (icdf) of the noncentral F distribution with nu1 numerator degrees of freedom, nu2 denominator degrees of freedom, and the noncentrality parameter delta, evaluated at the probability values in p.

example

Examples

collapse all

Compute the inverse cdf (icdf) values evaluated at the probability values in p for the noncentral F distribution with nu1 numerator degrees of freedom, nu2 denominator degrees of freedom, and the noncentrality parameter delta.

p = 0.005:0.01:0.995;
nu1 = 10;
nu2 = 20;
delta = 5;
x = ncfinv(p,nu1,nu2,delta);

Plot the icdf.

plot(p,x)
grid on
xlabel("p");
ylabel("x");

Figure contains an axes object. The axes object with xlabel p, ylabel x contains an object of type line.

Input Arguments

collapse all

Probability values at which to evaluate the inverse of the cdf (icdf), specified as a scalar value or an array of scalar values in the range [0,1].

To evaluate the icdf at multiple values, specify p using an array. To evaluate the icdfs of multiple distributions, specify one or more of the following input arguments using arrays: nu1, nu2, and delta. If one or more of the input arguments p, nu1, nu2, and delta are arrays, then the array sizes must be the same. In this case, ncfinv expands each scalar input into a constant array of the same size as the array inputs. Each element in x is the icdf value of the distribution specified by the corresponding elements in nu1, nu2, and delta, evaluated at the corresponding element in p.

Data Types: single | double

Numerator degrees of freedom, specified as a positive scalar or an array of positive scalars.

To evaluate the icdf at multiple values, specify p using an array. To evaluate the icdfs of multiple distributions, specify one or more of the following input arguments using arrays: nu1, nu2, and delta. If one or more of the input arguments p, nu1, nu2, and delta are arrays, then the array sizes must be the same. In this case, ncfinv expands each scalar input into a constant array of the same size as the array inputs. Each element in x is the icdf value of the distribution specified by the corresponding elements in nu1, nu2, and delta, evaluated at the corresponding element in p.

Data Types: single | double

Denominator degrees of freedom, specified as a positive scalar or an array of positive scalars.

To evaluate the icdf at multiple values, specify p using an array. To evaluate the icdfs of multiple distributions, specify one or more of the following input arguments using arrays: nu1, nu2, and delta. If one or more of the input arguments p, nu1, nu2, and delta are arrays, then the array sizes must be the same. In this case, ncfinv expands each scalar input into a constant array of the same size as the array inputs. Each element in x is the icdf value of the distribution specified by the corresponding elements in nu1, nu2, and delta, evaluated at the corresponding element in p.

Data Types: single | double

Noncentrality parameter, specified as a nonnegative scalar or an array of nonnegative scalars.

To evaluate the icdf at multiple values, specify p using an array. To evaluate the icdfs of multiple distributions, specify one or more of the following input arguments using arrays: nu1, nu2, and delta. If one or more of the input arguments p, nu1, nu2, and delta are arrays, then the array sizes must be the same. In this case, ncfinv expands each scalar input into a constant array of the same size as the array inputs. Each element in x is the icdf value of the distribution specified by the corresponding elements in nu1, nu2, and delta, evaluated at the corresponding element in p.

Data Types: single | double

Output Arguments

collapse all

Inverse cdf values evaluated at the probabilities in p, returned as a scalar value or an array of scalar values. x is the same size as p, nu1, nu2, and delta after any necessary scalar expansion. Each element in x is the inverse cdf value of the distribution specified by the corresponding elements in nu1, nu2, and delta, evaluated at the corresponding probability in p.

Alternative Functionality

  • ncfinv is a function specific to the noncentral F distribution. Statistics and Machine Learning Toolbox™ also offers the generic function icdf, which supports various probability distributions. To use icdf, specify the probability distribution name and its parameters. Note that the distribution-specific function ncfinv is faster than the generic function icdf.

References

[1] Evans, M., N. Hastings, and B. Peacock. Statistical Distributions. Hoboken, NJ: Wiley-Interscience, 2000.

[2] Johnson, N., and S. Kotz. Distributions in Statistics: Continuous Univariate Distributions-2. Hoboken, NJ: John Wiley & Sons, Inc., 1970, pp. 189–200.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced before R2006a