{ } Raw JSON

bundles / scipy latest / scipy / stats / _multivariate / dirichlet_multinomial_gen / var

function

scipy.stats._multivariate:dirichlet_multinomial_gen.var

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

Signature

def   var ( self alpha n )

Summary

The variance of the Dirichlet multinomial distribution.

Parameters

alpha : array_like

The concentration parameters. The number of entries along the last axis determines the dimensionality of the distribution. Each entry must be strictly positive.

n : int or array_like

The number of trials. Each element must be a non-negative integer.

Returns

: out: array_like

The variances of the components of the distribution. This is the diagonal of the covariance matrix of the distribution.

Aliases

  • scipy.stats._multivariate.dirichlet_multinomial_gen.var