{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _multivariate / random_table_gen / mean

function

scipy.stats._multivariate:random_table_gen.mean

source: /scipy/stats/_multivariate.py :6292

Signature

def   mean ( self row col )

Summary

Mean of distribution of conditional tables.

Parameters

row : array_like

Sum of table entries in each row.

col : array_like

Sum of table entries in each column.

Returns

: mean: ndarray

Mean of the distribution.

Notes

The row and column vectors must be one-dimensional, not empty, and each sum up to the same value. They cannot contain negative or noninteger entries.

Examples

from scipy.stats import random_table
row = [1, 5]
col = [2, 3, 1]
random_table.mean(row, col)
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()

Aliases

  • scipy.stats._multivariate.random_table_gen.mean