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 / _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 : int

n > 0

h : int

0 <= h <= n

Returns

p : float

The proportion of paths that pass outside the lines x-y = +/-h.

Aliases

  • scipy.stats._stats_py._compute_prob_outside_square