bundles / scipy 1.18.0 / scipy / stats / _multivariate / random_table_frozen / mean
function
scipy.stats._multivariate:random_table_frozen.mean
Signature
def mean(self)Summary
Mean of distribution of conditional tables.
Returns
: mean: ndarrayMean 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