Skip to main content

trivariate_normal_cdf

Function trivariate_normal_cdf 

Source
pub fn trivariate_normal_cdf(
    h1: f64,
    h2: f64,
    h3: f64,
    r12: f64,
    r13: f64,
    r23: f64,
    epsi: f64,
) -> f64
Expand description

Cumulative distribution function of the standard trivariate normal distribution

Returns $P(X \le h_1, Y \le h_2, Z \le h_3)$ for a standard trivariate normal vector $(X, Y, Z)$ with correlation matrix

$$ \begin{bmatrix} 1 & r_{12} & r_{13} \\ r_{12} & 1 & r_{23} \\ r_{13} & r_{23} & 1 \end{bmatrix} , $$

which must be positive semidefinite. epsi is the requested absolute accuracy (1e-7 by default in xsf), with a lower bound of 1e-14.

Corresponds to xsf::trivariate_normal_cdf, which is used by scipy.stats.multivariate_normal.

ยงSee also