What Internal Validation Can—and Cannot—Tell You
When class labels are unavailable, there is no direct external reference against which to compare a clustering. That does not make assessment impossible, but it changes the question. We can ask whether a model describes the observed data well, whether observations have clear memberships, whether assigned groups are separated in the chosen geometry, and whether the assignments persist under reasonable perturbations of the data. These are distinct forms of evidence, not interchangeable tests of whether “the true clusters” have been recovered.
For a fitted mixture with \(K\) components, write \(\tau_{ik}=P(Z_i=k\mid x_i)\) for the posterior probability that observation \(i\) belongs to component \(k\), and assign it to the component with largest posterior probability. The diagnostics below assess different aspects of this fitted result. Likelihood criteria assess model fit relative to complexity; entropy summarizes ambiguity in posterior memberships; a geometric measure such as the silhouette assesses separation under a selected distance; and resampling stability assesses sensitivity to changes in the data or fitting procedure.
Four Complementary Forms of Evidence
Likelihood-based fit. A maximized log-likelihood \(\ell(\hat\theta)\) records how well the fitted model assigns probability density to the observed data. Its value alone is not a fair comparison across models with different numbers of parameters: adding components can improve the maximized likelihood, even when the extra complexity is not useful. Criteria such as BIC and ICL, covered in the earlier material on model selection, combine fit with a complexity penalty; ICL also places weight on the clarity of the allocation. They help compare candidate models, but a preferred criterion value does not establish that the components correspond to substantively real groups.
Assignment certainty. Posterior probabilities reveal whether each observation is confidently assigned or lies in an area of component overlap. One summary is the normalized allocation entropy \(H_i=-\sum_{k=1}^{K}\tau_{ik}\log(\tau_{ik})/\log K\), for \(K>1\), using \(0\log 0=0\). It ranges from zero for a certain assignment to one for equal posterior probabilities across all components. The mean of \(H_i\) summarizes ambiguity across observations, but can conceal a small set of highly uncertain cases; inspect individual values or their distribution as well.
Geometric separation. A distance-based diagnostic asks whether observations are closer to members of their assigned group than to other groups. The silhouette is one such summary. For observation \(i\), let \(a(i)\) be its mean distance to other observations in its assigned cluster, and let \(b(i)\) be the smallest, across other clusters, of its mean distance to observations in that cluster. For \(a(i)\) and \(b(i)\) not both zero, define \(s(i)=[b(i)-a(i)]/\max\{a(i),b(i)\}\). Values near one indicate better separation, values near zero indicate a boundary, and negative values indicate that another cluster is closer on average. The average silhouette summarizes the sample, while the individual values locate poorly separated observations.
The geometry depends on the distance used. Euclidean distance can be dominated by variables on larger numerical scales; standardizing variables may help when that is scientifically appropriate. A distance that ignores the covariance structure may also describe a different notion of separation from the one implicit in a fitted mixture. State the chosen distance and do not interpret a silhouette as a property independent of measurement scale or metric.
Resampling stability. Refit the clustering on perturbed data, such as bootstrap samples or subsamples, and ask whether observations continue to be grouped together. Since component labels can switch between fits, compare pairs of observations rather than component numbers. For \(B\) fits on a common set of observations, define \(C_{ij}=B^{-1}\sum_{b=1}^{B} I(z_i^{(b)}=z_j^{(b)})\), where \(z_i^{(b)}\) is the assigned cluster of observation \(i\) in fit \(b\). A value near one means the pair was usually co-clustered; a value near zero means it was usually separated. Bootstrap duplicates and observations omitted from a subsample need an explicit handling rule, such as evaluating only observations represented in each fit or using a fixed reference set with a defined out-of-sample assignment procedure.
Worked Diagnostics
Worked Example: Penalized Fit Can Prefer the Simpler Model
Suppose \(n=120\) observations are fitted using univariate Gaussian mixtures with a variance shared across components. Compare \(K=2\) and \(K=3\), with maximized log-likelihoods \(-510\) and \(-503\), respectively. In this model family, the parameter count is \(q=(K-1)+K+1=2K\): there are \(K-1\) free mixing weights, \(K\) means, and one common variance. Thus \(q_2=4\) and \(q_3=6\). For this illustration use \(\mathrm{BIC}=-2\ell(\hat\theta)+q\log n\), with smaller values preferred.
For \(K=2\), \(\mathrm{BIC}_2=1020+4\log(120)\). Since \(\log(120)\approx4.7875\), this is \(1020+19.150=1039.150\).
For \(K=3\), \(\mathrm{BIC}_3=1006+6\log(120)=1006+28.725=1034.725\). The larger model improves the fit by \(14\) units on the \(-2\ell\) scale, while its additional two parameters cost \(2\log(120)\approx9.575\) BIC units. Its BIC is therefore lower by about \(4.425\), so BIC favors \(K=3\) in this comparison.
This result is evidence for the three-component model among these candidates under this criterion. It does not show that all three components are well separated, that individual assignments are certain, or that the three groups will be stable under resampling. Those questions require different diagnostics.
Worked Example: Reading Posterior Assignment Certainty
For \(K=2\), consider two observations with posterior membership vectors \((0.90,0.10)\) and \((0.60,0.40)\). The first is assigned to component 1 with probability \(0.90\); the second is also assigned to component 1, but less decisively.
For two components, the normalized entropy denominator is \(\log 2\approx0.6931\). For the first observation, the unnormalized entropy is \(-[0.90\log(0.90)+0.10\log(0.10)]\approx0.3251\), so \(H_1\approx0.3251/0.6931=0.469\).
For the second, the entropy is \(-[0.60\log(0.60)+0.40\log(0.40)]\approx0.6730\), so \(H_2\approx0.6730/0.6931=0.971\). Both observations receive the same hard assignment, but their certainty differs sharply. Reporting assignments alone would hide this difference.
Worked Example: A Silhouette Under a Specified Distance
Take four one-dimensional observations \(0,2,5,7\), assigned to clusters \(A=\{0,2\}\) and \(B=\{5,7\}\), and use ordinary absolute distance. For observation \(0\), the within-cluster mean distance is \(a(0)=|0-2|=2\). Its mean distance to \(B\) is \((|0-5|+|0-7|)/2=6\), so \(b(0)=6\) and \(s(0)=(6-2)/6=2/3\).
For observation \(2\), \(a(2)=2\), while its mean distance to \(B\) is \((3+5)/2=4\); hence \(s(2)=(4-2)/4=1/2\). By symmetry, \(s(5)=1/2\) and \(s(7)=2/3\). The average silhouette is therefore \([(2/3)+(1/2)+(1/2)+(2/3)]/4=7/12\approx0.583\). This indicates some separation under absolute distance, not a universal guarantee of valid clusters.
Worked Example: Pairwise Stability Across Refit Results
Suppose four observations are clustered in five refits, producing these partitions: fits 1, 2, and 5 give \(\{1,2\}\mid\{3,4\}\); fit 3 gives \(\{1,2,3\}\mid\{4\}\); and fit 4 gives \(\{1\}\mid\{2,3,4\}\). For pair \((1,2)\), the observations are together in fits 1, 2, 3, and 5, so \(C_{12}=4/5=0.8\). For pair \((2,3)\), they are together only in fits 3 and 4, so \(C_{23}=2/5=0.4\). Pair \((1,4)\) is never together, giving \(C_{14}=0\).
The results show that the first pair is more consistently grouped than the second, and that the last pair is consistently separated. They also show why a single “stability” number can lose detail: pair-specific co-clustering probabilities identify which relationships are robust and which are sensitive to the refit.
Why These Summaries Are Complementary
To verify the result, write \(H=-\sum_{k=1}^{K}\tau_k\log\tau_k\), where the probabilities are nonnegative and sum to one. Each term \(-\tau_k\log\tau_k\) is nonnegative, so \(H\geq0\), with equality only when every positive probability is one; that is, the vector has a single unit entry. For the upper bound, the function \(-x\log x\) is concave on \([0,1]\), with its value at zero defined by continuity. Jensen’s inequality gives \(K^{-1}\sum_k[-\tau_k\log\tau_k]\leq-[K^{-1}\sum_k\tau_k]\log[K^{-1}\sum_k\tau_k]=-(1/K)\log(1/K)\). Multiplying by \(K\) yields \(H\leq\log K\), with equality in strict concavity only when all \(\tau_k=1/K\). Dividing by \(\log K\) proves the stated normalized bounds and equality cases. \(\square\)
For invariance, let \(\pi\) be a permutation of the labels. Since a permutation is one-to-one, \(z_i=z_j\) if and only if \(\pi(z_i)=\pi(z_j)\). Thus each indicator \(I(z_i=z_j)\), and consequently its average across fits, is unchanged by relabeling. For convergence, conditional on the observed data, the indicators across independent refits are independent and identically distributed Bernoulli random variables with mean \(p_{ij}\), the procedure’s co-clustering probability for the pair. The strong law of large numbers gives \(B^{-1}\sum_{b=1}^{B}I(z_i^{(b)}=z_j^{(b)})\xrightarrow{a.s.}p_{ij}\). This probability describes stability under the specified procedure; it is not the probability that the pair belongs to a “true” cluster. \(\square\)
The diagnostics can agree or conflict. A model may achieve an attractive penalized likelihood while retaining many observations with high entropy. A high average silhouette can coexist with unstable assignments if small data perturbations move observations across a boundary. Conversely, stable assignments may reflect a robust partition of a continuous gradient rather than discrete groups. Interpret each measure in light of what it actually evaluates, and investigate observations or pairs that appear uncertain, poorly separated, or unstable.
A Practical Internal-Validation Sequence
Use likelihood-based criteria to assess fit relative to complexity across candidate component counts and covariance structures. Record the criterion and candidate set; a ranking is conditional on both.
Summarize posterior entropy and the largest membership probabilities, and identify observations with ambiguous assignments rather than relying only on a hard partition.
Choose and report a distance appropriate to the variables and question. Examine individual as well as average separation summaries.
Use a stated resampling scheme and fitting procedure, then summarize pairwise co-clustering or another label-invariant comparison. Check whether instability is concentrated in particular observations or boundaries.
Explain which aspects are supported and which remain weak. Do not collapse conflicting diagnostics into an unsupported claim of validation.
Common Pitfall
Wrong reasoning: “The BIC is lowest, so the selected clusters are real and correct.” BIC compares specified candidate models through a fit-and-complexity criterion; it does not directly assess assignment certainty, geometric separation, sensitivity to perturbations, or whether a mixture is a realistic description of the scientific process.
Correction: Treat model selection as one part of internal evidence. Check posterior memberships, use an explicitly chosen geometric diagnostic, and examine resampling stability. Even when all these checks look favorable, they establish robustness and coherence under the chosen methods—not agreement with known labels or proof of discrete latent classes.
Check Your Understanding
Use these questions to test whether you can distinguish the evidence supplied by each diagnostic.
- Why can a larger mixture have a better maximized likelihood but a worse BIC?
- What does normalized entropy near one indicate about an observation’s posterior membership probabilities?
- Why must the distance metric be stated when reporting a silhouette summary?
- Explain why pairwise co-clustering remains unchanged when component labels switch between two fits.
- Give one reason a stable clustering should not automatically be interpreted as evidence for true discrete populations.