Stronger? Growth mixture models outperform hard, computationally quicker clustering algorithms when detecting longitudinal heterogeneity Dan Martin University of Virginia Design and Data Analysis November 7, 2013 Dan Martin 1 of 45 Harder, Better, Faster, Stronger?
Modeling Growth Mixture Models (GMMs) are seen in various areas of research including: Psychology (Muth´ en & Muth´ en, 2000) Sociology (Witkiewitz & Masyn, 2008) Education (Bradshaw, Buckley, & Ialongo, 2008) Popularity increase could be due to increased availability in popular statistical programs (i.e., MPlus, SAS Proc Traj) Dan Martin 5 of 45 Harder, Better, Faster, Stronger?
Simulation research on GMMs leave a lot to be desired Majority focused on choosing classes (Nylund et al., 2007; Peugh & Fan, 2012) Cluster misfit analyzed at the parameter level (Depaoli, 2013) “Weaker” performance for small N (Kim, 2012) Longitudinal clustering is not a recent idea (Tucker, 1966) Dan Martin 6 of 45 Harder, Better, Faster, Stronger?
Research Question Evaluation Criteria Correct cluster choice Cluster solution misfit (measured via Kullback-Leibler divergence) Dan Martin 8 of 45 Harder, Better, Faster, Stronger?
K-Means follows a simple, four-step iteration: 1. Once k is specified, k cluster centers are randomly placed in the dataset 2. Each data point is then assigned to the nearest cluster center 3. The centroid of each cluster becomes the new cluster center 4. Repeat steps 2 and 3 until the algorithm converges Dan Martin 9 of 45 Harder, Better, Faster, Stronger?
k Silhouette width - Rousseeuw (1987) For each data point i, let: s(i) = b(i) − a(i) max {a(i), b(i)} where, a(i) = within-cluster cohesion b(i) = between-cluster separation Silhoutte width is the mean of s(i) over the entire sample Dan Martin 14 of 45 Harder, Better, Faster, Stronger?
Pros: Algorithm is relatively easy to understand Very efficient and quick to find a local minima Many evaluative techniques exist Cons: Missing data can be problematic Continuous variables only (same scale) Solution heavily dependent on starting values Fit statistics not available Dan Martin 15 of 45 Harder, Better, Faster, Stronger?
Day (1969) p(x) = K k=1 πk N(µk, Σk) where, N(µk, Σk) = the Gaussian distribution of the kth class πk = the mixture weight of the kth class distribution Dan Martin 16 of 45 Harder, Better, Faster, Stronger?
- Choosing Clusters Bayesian Information Criterion (BIC; Schwarz (1978)) BIC = −2LL + k ln (n) where, -2LL = -2 log-likelihood k = the number of estimated parameters n = the total sample size Dan Martin 17 of 45 Harder, Better, Faster, Stronger?
summary Pros: Model-based Relatively quick More flexible than K-Means Can handle missing data Cons: Prone to local minima Requires correct specification of cluster distributions Dan Martin 18 of 45 Harder, Better, Faster, Stronger?
Multi-group LGCM → GMM Yti = ηk0i + λtηk1i + kti ηk0i = αk0 + ζk0i ηk1i = αk1 + ζk1i where, αk0 and αk1 = mean intercept and slope for the kth class kti = residual error for person i in group k at time t ζk0i and ζk1i = individual deviation from the mean trajectory of class k σ2 k0 and σ2 k1 = variances of ζk Dan Martin 21 of 45 Harder, Better, Faster, Stronger?
- Choosing Clusters BIC BIC = −2LL + k ln (n) Simulation studies inconclusive toward preferred cluster enumeration index BIC is one of the most common Dan Martin 22 of 45 Harder, Better, Faster, Stronger?
Pros: Model-based Intuitive extension of a latent growth curve Handles missing data Cons: More complicated than kmeans Very slow Prone to local minima Not many simulations done Inconsistent behavior with enumeration indices Dan Martin 23 of 45 Harder, Better, Faster, Stronger?
overview 1. Number of clusters 2. Mahalanobis Distance 3. Intercept-Slope relationship by cluster 4. Sample size Dan Martin 24 of 45 Harder, Better, Faster, Stronger?
Distance M distance is a multivariate effect size metric that takes into account the correlations of the data set, and is given by: D2 = (µtraj1 − µtraj2)T Σ−1(µtraj1 − µtraj2) Conditions: M distance = 1.5 or 3 Dan Martin 25 of 45 Harder, Better, Faster, Stronger?
relationship Intercept − Same, Slope − Different Intercept − Different, Slope − Same Intercept − Different, Slope − Different −1 0 1 2 3 1 2 3 1 2 3 1 2 3 Time Value Cluster A B C Dan Martin 26 of 45 Harder, Better, Faster, Stronger?
Number of clusters: 2, 3 2. Mahalanobis Distance: 1.5, 3 3. Intercept-Slope relationship by cluster: 3 scenarios 4. Sample size: 150, 300, 600, 900, 1200, 1500 Total conditions: 2 x 2 x 3 x 6 = 72 Each simulated 200 times Dan Martin 27 of 45 Harder, Better, Faster, Stronger?
distributions P and Q of a continuous random variable, KL divergence is defined as: DKL(P||Q) = +∞ −∞ log(p(x) q(x) )p(x)dx, where, p(x) represents the ”true” distribution and q(x) is a model or approximation of p. Dan Martin 29 of 45 Harder, Better, Faster, Stronger?
simple example Norm t Unif Norm 0.000 0.004 4.661 t 0.005 0.000 4.686 Unif 1.082 1.108 0.000 NOTE: Not symmetric, as DKL(P||Q) = DKL(Q||P) Dan Martin 31 of 45 Harder, Better, Faster, Stronger?
case of Gaussian mixtures Knowing DKL = E[log(p(x) q(x) )], it can be approximated by: 1. Drawing n independent samples from p(x) 2. Compute DMC (P||Q) = 1 n n i=1 log( p(x) q(x) ) Dan Martin 32 of 45 Harder, Better, Faster, Stronger?
correct – All methods tend to choose smallest class available – Both FMMs and GMMs increase with N, k-means is stable KL divergence – Misfit shows a much clearer picture – Slightly increases with N for all methods – Seems to be a better metric to use in future research Take-home message: Despite mixed results with the correct cluster choice metric, KL divergence shows GMMs to be clearly superior Dan Martin 44 of 45 Harder, Better, Faster, Stronger?