FUNCTION REFERENCE
mvncdf
Multivariate normal cumulative distribution function.
Multivariate normal cumulative distribution function.
Syntax
y = mvncdf(X)Syntax
y = mvncdf(X, MU)Syntax
y = mvncdf(X, MU, SIGMA)Syntax
y = mvncdf(XL, XU, MU, SIGMA)Syntax
[y, err] = mvncdf(..., OPTIONS)Computes the d-dimensional normal cumulative probability P(XL <= Z <= XU) (with XL = -Inf when omitted) for each row of X (or XL and XU), returning n-by-1 column vectors. MU is a 1-by-d or n-by-d mean (default zeros(1, d)), SIGMA is a d-by-d symmetric positive definite covariance matrix (default eye(d)), and OPTIONS is a statset-like struct whose TolFun (default 1e-4) and MaxFunEvals fields control the d >= 4 accuracy and evaluation budget. Supported for d up to 25: d = 1 uses normcdf, d = 2 uses Drezner-Wesolowsky/Genz bivariate quadrature, d = 3 uses Genz trivariate quadrature, and d >= 4 uses Genz's separation-of-variables randomized quasi-Monte-Carlo estimate with a fixed seed (deterministic output).
Example
mvncdf([0 0], [0 0], [1 0.5; 0.5 1])Example
[p, err] = mvncdf([-1 -1], [1 1], [0 0], [1 0.5; 0.5 1])Differences from MATLAB: for d >= 4 the quasi-Monte-Carlo estimate uses a fixed internal seed (so results are deterministic and independent of rng), and only the TolFun and MaxFunEvals fields of OPTIONS are used.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.