This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _hypotests / _psi1_mod

function

scipy.stats._hypotests:_psi1_mod

source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_hypotests.py:418

Signature

def _psi1_mod(x, *, xp = None)

Summary

psi1 is defined in equation 1.10 in Csörgő, S. and Faraway, J. (1996). This implements a modified version by excluding the term V(x) / 12 (here: _cdf_cvm_inf(x) / 12) to avoid evaluating _cdf_cvm_inf(x) twice in _cdf_cvm.

Extended Summary

Implementation based on MAPLE code of Julian Faraway and R code of the function pCvM in the package goftest (v1.1.1), permission granted by Adrian Baddeley. Main difference in the implementation: the code here keeps adding terms of the series until the terms are small enough.

Aliases

  • scipy.stats._hypotests._psi1_mod