bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _stats_py / _compute_prob_outside_square
function
scipy.stats._stats_py:_compute_prob_outside_square
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_stats_py.py:7739
Signature
def _compute_prob_outside_square(n, h)Summary
Compute the proportion of paths that pass outside the two diagonal lines.
Parameters
n: intn > 0
h: int0 <= h <= n
Returns
p: floatThe proportion of paths that pass outside the lines x-y = +/-h.
Aliases
scipy.stats._stats_py._compute_prob_outside_square