Skip to content

Methods · Multivariate analysis · Multivariate two-sample tests

Friedman-Rafsky Multivariate Runs Test

The Friedman-Rafsky test generalises the Wald-Wolfowitz runs test to several dimensions. The two samples are pooled, a Euclidean minimum spanning tree is built, and the number of runs is one plus the number of tree edges that join points from different samples. If the samples come from the same distribution their points mix and the tree has many such edges; few runs mean the samples occupy different regions. The permutation mean and variance of the run count are known in closed form.

프리드먼-라프스키 검정은 왈드-월포위츠 런 검정을 여러 차원으로 넓힌 것입니다. 두 표본을 합쳐 유클리드 최소신장트리를 만들고, 서로 다른 표본의 점을 잇는 간선 수에 1을 더한 것을 런의 수로 봅니다. 두 표본이 같은 분포에서 왔다면 점들이 섞여 이런 간선이 많고, 런이 적으면 두 표본이 서로 다른 영역에 있다는 뜻입니다. 순열 분포에서 런 수의 평균과 분산은 닫힌 식으로 구합니다.

Do these two multivariate samples come from the same distribution, judged by how often their points are nearest neighbours of each other?

이 두 다변량 표본은 서로 가장 가까운 이웃이 되는 빈도로 볼 때 같은 분포에서 왔습니까?

You get the observed number of runs, its expected value and variance under the null hypothesis, the standardised statistic with a one-sided normal p-value, and a permutation p-value.

When to use Friedman-Rafsky Multivariate Runs Test

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

The Friedman-Rafsky test found R = [value] runs against [value] expected (W = [value], one-sided p = [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 1 reference test compares the results with direct computations (formulas, enumeration or simulation) at a stated tolerance of 1e-12.

    독립 계산. 직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과(허용오차 1e-12).

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 Friedman-Rafsky Multivariate Runs Test 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 Q33043 · Reviewed 2026-10-25