Are there groups with a similar pattern? (latent profiles, mixture of normal distributions)
In brief
Cluster analysis sorts each person firmly into one group. Latent profile analysis works differently: it assumes that each person belongs, unknown, to one of K groups and calculates for each person the probability of belonging to each group. Each group has its own profile, that is its own mean in each column. Statable calculates the solutions for 1 to K groups and shows BIC, AIC and entropy for each. The number of groups is chosen by a person.
An example with real data
Palmer penguins: bill length, bill depth, flipper length and body mass of 342 animals (without gaps), variances "equal". The BIC (smaller is better) falls with every additional group:
| Groups | BIC | Entropy |
|---|---|---|
| 1 | 11933.4 | - |
| 2 | 11066.3 | 0.998 |
| 3 | 10909.8 | 0.909 |
| 4 | 10748.2 | 0.898 |
| 5 | 10653.3 | 0.909 |
| 6 | 10603.5 | 0.918 |
- The BIC falls up to the largest number of groups calculated (6); from 2 to 3 groups by 156.6, from 5 to 6 only by 49.7. The BIC alone therefore does not answer the question of the number of groups; entropy, the size of the smallest group and the meaning of the groups belong to it.
- With two groups the entropy is 0.998: almost every animal is clearly assigned to one group. The groups have 219 and 123 animals.
- For comparison with what the data contain on the side (the species, which Statable did not see): the group of 123 animals consists exactly of the 123 Gentoo penguins; the group of 219 animals of 151 Adelie penguins and 68 Chinstrap penguins. So the groups separate by the size of the animals (Gentoo penguins are larger and heavier), not by the three species: Adelie and Chinstrap penguins are hardly to be told apart in these four measures.
When do I use it?
When you suspect that the people can be divided into a few groups with a different pattern across several number columns (for example learning types from several scales), and want probabilities of membership instead of a fixed division. Whoever needs only a fixed division uses cluster analysis; it is simpler to read.
Requirements
- Two to 15 number columns and 30 to 10,000 people with all answers; about ten people per group are needed, otherwise Statable does not calculate that many groups.
- Columns on a comparable scale or meant to count equally: without conversion a column with large numbers (body mass in grams) often counts for more in the groups than one with small numbers. With the penguins body mass carries the separation of the groups strongly.
- Within a group the columns are to be roughly independent and normal; this is a simplification that is often violated in practice. Then more groups easily arise than there really are.
How it works in Statable
- Open a file with at least two number columns, for example the example "Penguins" (Start > Examples).
- Run the question "Are there groups in my data? (cluster analysis)" with the columns that are to describe the pattern.
- Under the result open "Are there groups with a similar pattern? (latent profiles, mixture of normal distributions)", choose the variances (equal or free) and the highest number of groups and "Calculate profiles". Ctrl+K: "latent profiles".
- In the table of the numbers of groups look at BIC, entropy and smallest group, then choose "Number of groups to look at": the picture and table show the profiles of the groups.
- With "As R script with data (.zip)" you take the calculation with you; it needs only base R.
Variances "equal" means: each column has the same variance in all groups (4 columns, 3 groups: 18 parameters); "free" means: each group has its own variances (26 parameters). "Free" is more flexible but needs more people and more easily yields degenerate groups with almost no variance; Statable does not accept them. Statable calculates each solution with 40 starting values (20 with very much data) and shows the best. The group numbers are only labels and ordered by size.
Reading and reporting the result
A latent profile analysis with four body measures (N = 342; variances equal) compared solutions with 1 to 6 groups. The BIC fell up to 6 groups (10603.5), entropy was highest at 2 groups (0.998; 219 and 123 animals). The two-group solution separates large from small animals.
Limits
- The groups are groups of measurements, not proven types of people. Even data without real groups (for example skewed columns) usually yield several "groups".
- In simulations (Nylund et al. 2007) the BIC is a useful measure for the number of groups, but not a proof, and if the requirements do not hold it can indicate more groups than there really are. The bootstrap likelihood ratio test that the literature recommends in addition is not built into Statable; in R it works with packages such as mclust or tidyLPA. Statable shows BIC, AIC and entropy and says when the smallest group has under 5% of the people.
- There are only columns with numbers. For yes-no or category columns there are the latent classes (see there); Statable calculates no covariates that explain membership, and no groups with dependent columns (full covariances).
- The solution is only locally best: the EM algorithm can get stuck in a worse solution. That is why there are many starting values; if the sentences say that the best result came up only rarely, try another seed and compare.
What is often misunderstood
Sources
Nylund, K. L., Asparouhov, T. & Muthén, B. O. (2007). Deciding on the number of classes in latent class analysis and growth mixture modeling: A Monte Carlo simulation study. Structural Equation Modeling, 14, 535-569. Spurk, D., Hirschi, A., Wang, M., Valero, D. & Kauffeld, S. (2020). Latent profile analysis: A review and "how to" guide of its application within vocational behavior research. Journal of Vocational Behavior, 120, 103445 (open access). Dempster, A. P., Laird, N. M. & Rubin, D. B. (1977). Maximum likelihood from incomplete data via the EM algorithm. Journal of the Royal Statistical Society B, 39, 1-38. Scrucca, L., Fop, M., Murphy, T. B. & Raftery, A. E. (2016). mclust 5. The R Journal, 8, 289-317 (open access). Data: Horst, A. M., Hill, A. P. & Gorman, K. B., palmerpenguins (CC0).
Take away
- Latent profiles: each person belongs, unknown, to one of K groups with its own profile (means); probabilities of membership are calculated.
- Read BIC (smaller is better), entropy (near 1 = clear assignment), smallest group and meaning together; the BIC alone does not decide.
- Group numbers are only labels; the solution can swap the numbers with another seed.
- Groups of measurements are not proven types of people.