tf.contrib.distributions.DirichletMultinomial.variance(name='variance')
Variance.
Additional documentation from DirichletMultinomial
:
The variance for each batch member is defined as the following:
Var(X_j) = n * alpha_j / alpha_0 * (1 - alpha_j / alpha_0) * (n + alpha_0) / (1 + alpha_0)
where alpha_0 = sum_j alpha_j
.
The covariance between elements in a batch is defined as:
Cov(X_i, X_j) = -n * alpha_i * alpha_j / alpha_0 ** 2 * (n + alpha_0) / (1 + alpha_0)
Please login to continue.