bundles / scipy 1.18.0 / scipy / stats / _stats_py / _compute_prob_outside_square
function
scipy.stats._stats_py:_compute_prob_outside_square
source: /scipy/stats/_stats_py.py:7713
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