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 / _multivariate / random_table_frozen / mean

function

scipy.stats._multivariate:random_table_frozen.mean

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

Signature

def mean(self)

Summary

Mean of distribution of conditional tables.

Returns

: mean: ndarray

Mean of the distribution.

Notes

See class definition for a detailed description of parameters.

Examples

from scipy.stats import random_table
✓
row = [1, 5]
col = [2, 3, 1]
✓
random_table.mean(row, col)
✗
array([[0.33333, 0.5    , 0.16667],
       [1.66667, 2.5    , 0.83333]])
Alternatively, the object may be called (as a function) to fix the row and column vector sums, returning a "frozen" distribution.
d = random_table(row, col)
✓
d.mean()
✗
array([[0.33333, 0.5    , 0.16667],
       [1.66667, 2.5    , 0.83333]])

Aliases

  • scipy.stats._multivariate.random_table_frozen.mean