bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / stats / _multivariate / dirichlet_multinomial_gen / var
function
scipy.stats._multivariate:dirichlet_multinomial_gen.var
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_multivariate.py:6950
Signature
def var(self, alpha, n)Summary
The variance of the Dirichlet multinomial distribution.
Parameters
alpha: array_likeThe 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_likeThe number of trials. Each element must be a non-negative integer.
Returns
: out: array_likeThe 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