Average pairwise Jeffreys divergence of a Gaussian mixture
Source:R/statistical_metrics.R
compute_average_jeffreys.RdReturns the \(p_j p_{\ell}\)-weighted mean of pairwise Jeffreys
(symmetrised KL) divergences between purified Gaussians
$$
\overline{J}
=
\frac{
\sum_{1\le j<\ell\le J} p_j p_{\ell}\, J(f_{j},f_{\ell})
}{
\sum_{1\le j<\ell\le J} p_j p_{\ell}
}
\in[0,\infty),
$$
with
\(f_{j}=\mathcal{N}_{G}(
\boldsymbol{\mu}_{\cdot j},\boldsymbol{\Sigma}_{j}
)\).
If p is omitted it defaults to the equi-balanced vector \(1/J\), which
recovers the uniform pairwise average
\(2/(J(J-1))\sum_{j<\ell}J(f_{j},f_{\ell})\).
Arguments
- true_theta
List validated by
check_true_theta():mu(\(G\times J\)),sigma(\(G\times G\times J\)), and optionallyp(length \(J\) or \(J\times N\)). Ifpis missing it is set to \((1/J,\ldots,1/J)\).- J
Number of cell types. Defaults to the third dimension of
sigma.