matlab superiorfloat,mvncdf 函数

mvncdf函数是Matlab中用于计算多元正态分布累积概率的函数。它可以处理不同输入形式,如计算零均值和单位方差的情况,或者指定均值和协方差矩阵的情况。该函数使用数值积分方法来计算高维分布的概率,并提供误差估计。对于二元和三元分布,它使用特殊算法提高精度,而对于更高维度,则使用蒙特卡洛方法。此外,mvncdf还允许用户设置数值积分的控制参数。
摘要由CSDN通过智能技术生成

function [y,err] = mvncdf(varargin)

%MVNCDF Multivariate normal cumulative distribution function (cdf).

%   Y = MVNCDF(X) returns the cumulative probability of the multivariate

%   normal distribution with zero mean and identity covariance matrix,

%   evaluated at each row of X.  Rows of the N-by-D matrix X correspond to

%   observations or points, and columns correspond to variables or

%   coordinates.  Y is an N-by-1 vector.

%

%   Y = MVNCDF(X,MU,SIGMA) returns the cumulative probability of the

%   multivariate normal distribution with mean MU and covariance SIGMA,

%   evaluated at each row of X.  MU is a 1-by-D vector, and SIGMA is a

%   D-by-D symmetric, positive definite matrix.  MU can also be a scalar

%   value, which MVNCDF replicates to match the size of X.  If the

%   covariance matrix is diagonal, containing variances along the diagonal

%   and zero covariances off the diagonal, SIGMA may also be specified as a

%   1-by-D matrix containing just the diagonal. Pass in the empty

%   matrix for MU to use its default value when you want to only specify

%   SIGMA.

%

%   The multivariate normal cumulative probability at X is defined as the

%   probability that a random vector V, distributed as multivariate normal,

%   will fall within the semi-infinite rectangle with upper limits defined by

%   X, i.e., Pr{V(1)<=X(1), V(2)<=X(2), ... V(D)<=X(D)}.

%

%   Y = MVNCDF(XL,XU,MU,SIGMA) returns the multivariate normal cumulative

%   probability evaluated over the rectangle (hyper-rectangle for D>2)

%   with lower and upper limits defined by XL and XU, respectively.

%

%   [Y,ERR] = MVNCDF(...) returns an estimate of the error in Y.  For

%   bivariate and trivariate distributions, MVNCDF uses adaptive quadrature on

%   a transformation of the t density, based on methods developed by Drezner

%   and Wesolowsky, and by Genz, as described in the references.  The default

%   absolute error tolerance for these cases is 1e-8.  For four or more

%   dimensions, MVNCDF uses a quasi-Monte Carlo integration algorithm based on

%   methods developed by Genz and Bretz, as described in the references.  The

%   default absolute error tolerance for these cases is 1e-4.  For

%   univariate distributions and when SIGMA is specified as a diagonal,

%   numerical integration is not used and ERR returns NaN.

%

%   [...] = MVNCDF(...,OPTIONS) specifies control parameters for the numerical

%   integration, used to compute Y when D > 1 and is not specified as a

%   diagonal.  This argument can be created by a call to STATSET.  Choices

%   of STATSET parameters are:

%

%         'TolFun'      - Maximum absolute error tolerance.  Default is 1e-8

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值