Skip to content

Methods · Multivariate analysis · Comparing multivariate structure

Krzanowski Comparison of Principal Component Subspaces

Krzanowski's method compares the main directions of variation in two groups. It takes the first k principal components of each group and measures the angles between the two k-dimensional subspaces they span. The squared cosines of these critical angles sum to a similarity index between 0 (unrelated structure) and k (identical subspaces). A permutation test of the index is added.

크르자노프스키 방법은 두 집단에서 변동이 큰 주요 방향을 비교합니다. 각 집단의 처음 k개 주성분을 구하고, 두 주성분 부분공간 사이의 각도(임계각)를 잽니다. 임계각 코사인 제곱의 합이 유사도 지수가 되며 0(관계 없음)에서 k(같은 부분공간) 사이의 값을 가집니다. 지수에 대한 순열 검정을 함께 냅니다.

Do two groups share the same principal component structure?

두 집단의 주성분 구조가 같습니까?

You get the critical angles between the two subspaces, the similarity index out of k, the share of variance each group's components explain and a permutation p-value.

When to use Krzanowski Comparison of Principal Component Subspaces

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The first [value] principal component subspaces of the two groups had a Krzanowski similarity of [value] (critical angles [value] and [value] degrees; permutation p = [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with SciPy and scikit-learn at a stated tolerance of 1e-9.

    독립 계산. SciPy·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 Krzanowski Comparison of Principal Component Subspaces on Quorant

Data you need
a table (CSV or Excel) with predictor (feature) columns and a grouping variable
Price
250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.

Method ID Q33052 · Reviewed 2026-10-25