Multilevel Principal Component Analysis
Multilevel principal component analysis handles data in which rows are nested in clusters, such as pupils in schools or measurements in persons. Each row is split into its cluster mean, which carries the differences between clusters, and its deviation from that mean, which carries the variation within clusters. Separate principal components are found for each part, so that the structure of differences between clusters is not mixed with the structure inside them.
다층 주성분분석은 학교 안의 학생이나 사람 안의 반복 측정처럼 행이 군집에 묶인 자료를 다룹니다. 각 행을 군집 간 차이를 담은 군집 평균과, 군집 안 변동을 담은 군집 평균으로부터의 편차로 나눕니다. 두 부분에서 주성분을 따로 구하므로 군집 간 차이의 구조와 군집 안의 구조가 섞이지 않습니다.
How are variables related within clusters, and how differently are they related between clusters?
군집 안에서 변수들은 어떻게 관련되며, 군집 사이에서는 어떻게 다르게 관련됩니까?
You get the share of variation lying between clusters, loadings of between-cluster and within-cluster components, the variance each set of components explains, and per-cluster variances of the within-cluster components.
When to use Multilevel Principal Component Analysis
- Rows are nested in clusters and you want components at each level.
- Between-cluster and within-cluster correlations may differ.
- You need a descriptive multilevel counterpart of PCA.
When to use something else
- Data are not nested: use Principal Component Analysis (PCA)
- You want a measurement model with fit tests at two levels: use Multilevel SEM
- Each cluster is a separate variable block measured on the same rows: use Multiple Factor Analysis (MFA)
Assumptions and requirements
- Enough clusters for the between-level components (ideally ten or more)
- Within-cluster component structure shared across clusters
- Variables comparable in scale or standardised
What the analysis reports
- Sums of squares between and within clusters
- Between-cluster and within-cluster loadings
- Eigenvalues and variance explained at each level
- Range of per-cluster variances of within-cluster components
How to report it
[value]% of the variation lay between clusters; [value] between-cluster components explained [value]% of it and [value] within-cluster components explained [value]% of the within-cluster variation.
Related methods
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with scikit-learn at a stated tolerance of 1e-9.
독립 계산. scikit-learn 대조 참조 시험 1건 통과(허용오차 1e-9).
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Multilevel Principal Component Analysis on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns and a cluster ID
- Price
- 400 credits for one analysis up to 10,000 rows (complexity level 3); larger or wider data costs more. Optional methodologist review: 1800 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.