For the two random variables
following a bivariate Normal distribution with
the lower tail probability is defined by:
For a more detailed description of the bivariate Normal distribution and its properties see
Abramowitz and Stegun (1972) and
Kendall and Stuart (1969). The method used is described by
Genz (2004).
Genz A (2004) Numerical computation of rectangular bivariate and trivariate Normal and probabilities Statistics and Computing 14 151–160
None.
Accuracy of the hybrid algorithm implemented here is discussed in
Genz (2004). This algorithm should give a maximum absolute error of less than
.
The probabilities for the univariate Normal distribution can be computed using
nag_specfun_cdf_normal (s15ab) and
nag_specfun_compcdf_normal (s15ac).
function g01ha_example
fprintf('g01ha example results\n\n');
x = [ 1.7 0 3.3 9.1];
y = [ 23.1 0 11.1 9.1 ];
rho = [ 0 0.1 0.54 0.17];
p = x;
fprintf(' x y rho p\n');
for j = 1:numel(p)
[p(j), ifail] = g01ha( ...
x(j), y(j), rho(j));
end
fprintf('%8.3f%8.3f%8.3f%8.4f\n', [x; y; rho; p]);