rStats.js v1.3.0
    Preparing search index...

    Function pbvnorm

    • Probability that a standard bivariate normal pair (X, Y) with correlation rho lies in the rectangle lower ≤ (X, Y) ≤ upper. Equivalent to mvtnorm::pmvnorm() in R. The same as pmvnorm(lower, upper, corr = matrix(c(1, rho, rho, 1), 2)). Bounds may be infinite. Accurate to about 1e-15 absolute.

      Parameters

      • lower: readonly number[] | readonly [number, number]

        Lower bounds [a1, a2].

      • upper: readonly number[] | readonly [number, number]

        Upper bounds [b1, b2].

      • rho: number

        Correlation, in [−1, 1].

      Returns number

      pbvnorm([-Infinity, -Infinity], [0, 0], 0.5); // 0.3333333333333333