Skip to main content

bivariate_normal_upper

Function bivariate_normal_upper 

Source
pub fn bivariate_normal_upper(h: f64, k: f64, r: f64) -> f64
Expand description

P(X > h, Y > k) for standard bivariate normal (X, Y) with correlation r (Genz’s bvnu, after Drezner and Wesolowsky): for |r| < 0.925 Plackett’s integral over the correlation, ∫₀^{asin r} exp(−(h² + k² − 2hk sin θ)/(2 cos²θ)) dθ / 2π + Φ(−h)Φ(−k), by 6-, 12- or 20-point Gauss-Legendre rules; near |r| = 1 an asymptotic expansion plus a correction integral. Accurate to about 10⁻¹⁵.