mqr.spc.util.

d2_integral#

mqr.spc.util.d2_integral(n, **quad_kws)#

Numerical integration to calculate the d2 unbiasing constant.

Evaluates:

\[d_2(n) = \int_{-\infty}^{\infty} f_2(x; n) dx \]

where

\[f_2(x; n) = 1 - (1 - \Phi(x))^n - \Phi(x)^n .\]
Parameters:
nint

Sample size.

**quad_kws

Keyword args passed as **quad_kws to scipy.integrate.quad.

Returns:
float