Skip to main content

Module mvn_cdf

Module mvn_cdf 

Source
Expand description

Distribution functions of the multivariate normal and t distributions by Genz’s quasi-Monte Carlo method (SciPy’s multivariate_normal.cdf and multivariate_t.cdf), the exact bivariate normal distribution function (Drezner and Wesolowsky, as Genz’s bvnu), and Dunnett’s many-to-one comparisons (SciPy’s dunnett).

See the book entry Multivariate distribution functions and quasi-Monte Carlo sampling.

Structs§

DunnettResult
The result of dunnett.
MvCdfOptions
Options for the multivariate distribution functions (SciPy’s defaults).

Enums§

DunnettAlternative
The alternative hypothesis of dunnett.

Functions§

bivariate_normal_upper
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⁻¹⁵.
dunnett
Dunnett’s test comparing each treatment group with a control (SciPy’s dunnett): tᵢ = (x̄ᵢ − x̄₀)/(s √(1/nᵢ + 1/n₀)) with the pooled standard deviation s on N − k − 1 degrees of freedom. The statistics are jointly multivariate t with correlations ρᵢⱼ = 1/√((1 + n₀/nᵢ)(1 + n₀/nⱼ)), and each p-value is the probability that the largest (absolute) statistic exceeds tᵢ, from the multivariate t distribution function — so the p-values carry its quasi-Monte Carlo error (about 10⁻³ with SciPy’s 1000 points per dimension).
dunnett_confidence_interval
Simultaneous confidence intervals for the differences of the treatment means and the control mean (SciPy’s DunnettResult.confidence_interval): x̄ᵢ − x̄₀ ± c s √(1/nᵢ + 1/n₀) for the two-sided alternative, with (−∞, … + …] and [… − …, ∞) for the one-sided ones, where c is the critical value of Dunnett’s test at the level 1 − confidence_level: the c for which the probability that the largest (absolute) statistic exceeds it is 1 − confidence_level.