From Wikipedia's page on "Multivariate Normal Distribution", there's a reference to this PDF: https://upload.wikimedia.org/wikipedia/commons/a/a2/Cumulative_function_n_dimensional_Gaussians_12.2013.pdf.
First, I haven't found any other reference (book, paper) with similar content. Anyone?
Second, for the 2-D case (pages 2 -- 4), I tried verifying the given formula for the CDF as a function of the Mahalanobis distance, $r$. But results don't match with well-known implementations, such as pmvnorm in R or mvncdf in MATLAB. Here's an example in MATLAB (which is very similar in R). Given vector of means and covariance matrix.
mu = [0; 0]
Sigma = [1 0.5; 0.5 1]
A point in the x-y plane:
z = [0.2; 0.3]
Now, I calculate $r^2$:
rsq = (z - mu).'*inv(Sigma)*(z - mu)
The result is 0.0933. Plugging it into the CDF formula as a function of $r$, $F(r) = p$:
p = 1 - exp(-rsq/2)
which gives me 0.0456. When I check that against MATLAB's builtin function,
mvncdf(z,mu,Sigma)
I get 0.4369, which is clearly different from the result I get using the formula above.
What am I missing? I'd like to try the 3-D (or higher) case too. But I don't understand why the 2-D case seems to not "work".
Thank you in advance.