Skip to content

Methods · Hypothesis testing · Distribution comparison

Zhang k-Sample Likelihood-Ratio Tests (ZK, ZA, ZC)

Zhang's k-sample tests compare whole distributions across two or more groups using likelihood ratios. At each pooled order statistic, the share of every group below that point is compared with the pooled share through a binomial likelihood ratio. ZK takes the largest ratio, while ZA and ZC add the ratios up with tail-sensitive weights; permutation of the group labels gives the p-values.

장의 k-표본 검정은 우도비를 이용해 둘 이상 집단의 분포 전체를 비교합니다. 합동 순서통계량마다 각 집단에서 그 점 아래에 있는 비율을 합동 비율과 이항 우도비로 비교합니다. ZK는 가장 큰 비를, ZA와 ZC는 꼬리에 민감한 가중치로 비를 합하며, 집단 표지를 순열하여 p값을 구합니다.

Do the groups come from the same distribution, including differences in spread or shape, not only in location?

위치뿐 아니라 퍼짐이나 모양의 차이까지 포함해 여러 집단이 같은 분포에서 나왔다고 볼 수 있을까요?

The method returns the ZK, ZA and ZC statistics, their permutation p-values (exact for small two-sample problems) and the number of relabellings used.

When to use Zhang k-Sample Likelihood-Ratio Tests (ZK, ZA, ZC)

When to use something else

Assumptions and requirements

What the analysis reports

How to report it

Zhang's ZA test rejected equal distributions across the groups (ZA = [value], permutation p = [value]).

Related methods

How this method is validated

이 방법의 검증 근거

  • Independent computation. 2 reference tests compare the results with SciPy and direct computations (formulas, enumeration or simulation).

    독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 2건 통과.

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 Zhang k-Sample Likelihood-Ratio Tests (ZK, ZA, ZC) on Quorant

Data you need
a table (CSV or Excel) with an outcome variable 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.

Method ID Q11242 · Reviewed 2026-10-25