A centroid is a cluster’s central location: in a mixture model, μₖ represents the center of component k. For standardized data, each center can use a standard normal prior. section 8.6
Centroids become useful when interpreting and checking mixture models:
- Each center describes a behavior represented by one cluster, such as short or long waiting times. section 8.7
- Symmetric mixture models can switch the labels attached to centers, making posterior traces and distributions appear scrambled. section 8.7
- Ordering the centers makes cluster identities consistent across samples without changing the model. section 8.7
Centers for Old Faithful waiting times
For standardized eruption-waiting data, define one center per cluster with a Normal(0, 1) prior. In PyMC, declare μ with dims="cluster"; an ordered transform can keep the smaller center before the larger one. section 8.6 section 8.7









