R: truncated multivariate normal cumulative distribution...
mvNqmc
R Documentation
truncated multivariate normal cumulative distribution (quasi-Monte Carlo)
Description
computes an estimator and a deterministic upper bound of the probability Pr(l<X<u),
where X is a zero-mean multivariate normal vector
with covariance matrix Σ, that is, X is drawn from N(0,Σ)
infinite values for vectors u and l are accepted;
Usage
mvNqmc(l, u, Sig, n)
Arguments
l
lower truncation limit
u
upper truncation limit
Sig
covariance matrix of N(0,Σ)
n
total randomized quasi-Monte Carlo simulation effort; higher values yield more accurate results;
Details
Quasi-Monte Carlo version:
This version uses a Quasi Monte Carlo (QMC) pointset
of size ceiling(n/12) and estimates the relative error
using 12 independent randomized QMC estimators; QMC
is slower than ordinary Monte Carlo,
but is also likely to be more accurate when d<50. For high dimensions, say d>50, you may obtain the same accuracy using
the (typically faster) mvNcdf.
The non-zero mean case, that is, N(μ,Σ):
Suppose you wish to estimate p=Pr(l<AX<u),
where A is a full rank matrix
and X drawn from N(μ,Σ). Then, you simply compute
p=Pr(l-Aμ<AY<u-Aμ),
where Y is drawn from N(0,AΣ A^\top).