Schilling-Henze Nearest-Neighbour Two-Sample Test
A multivariate two-sample test that counts how often each point's k nearest neighbours come from its own sample; too many same-sample neighbours means the two distributions differ.
각 점의 최근접 이웃 k개가 같은 표본에서 오는 빈도를 세는 다변량 두 표본 검정입니다. 같은 표본 이웃이 지나치게 많으면 두 분포가 다르다고 봅니다.
Do two groups have the same multivariate distribution?
두 집단의 다변량 분포가 같습니까?
The share T of same-sample neighbours, its exact null mean and SD, a z-statistic and a permutation p-value.
When to use Schilling-Henze Nearest-Neighbour Two-Sample Test
- You compare multivariate distributions with several numeric features
- Differences may be in shape or dependence, not only in means
When to use something else
- Only mean vectors are of interest under normality : use Hotelling's T-squared Test
- You prefer a minimum spanning tree graph : use Friedman-Rafsky Multivariate Runs Test
Assumptions and requirements
- Independent samples
- Euclidean distance is meaningful (features scaled by default)
- Few exact duplicate points
What the analysis reports
- T_k and its null expectation
- z from exact permutation moments
- Permutation p-value
- Same-group neighbour shares by group
How to report it
The nearest-neighbour test (k = [value]) found an excess of same-group neighbours (T = [value], z = [value], p = [value]).
Related methods
- Friedman-Rafsky Multivariate Runs Test
- Energy Distance Test of Equal Distributions (Two- and k-Sample)
- Hotelling's T-squared Test
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation).
독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
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 Schilling-Henze Nearest-Neighbour Two-Sample Test on Quorant
- Data you need
- a table (CSV or Excel) with predictor (feature) columns and a grouping variable
- 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.