Concept Architecture
Concept
Theoretically, the Wilcoxon Test is a non-parametric rank-based statistical test used to compare populations without assuming that the underlying data follow a normal distribution. Two principal forms are recognised: the Wilcoxon Signed-Rank Test for paired observations and the Wilcoxon Rank-Sum Test (equivalent to the Mann?Whitney U test) for independent samples. In survival analysis, the term "Wilcoxon test" commonly refers to the Breslow?Gehan Wilcoxon test, a weighted log-rank test that places greater emphasis on earlier events.
Mathematically, the Wilcoxon test replaces raw observations with their ranks and evaluates whether the distribution of ranks differs between groups. The test statistic is based on the sum of signed or grouped ranks and, for sufficiently large samples, is approximately normally distributed after standardisation. In survival analysis, the Breslow?Gehan Wilcoxon test weights each event by the number of individuals at risk, increasing sensitivity to early differences in survival.
In practice, Wilcoxon tests are widely applied when data are ordinal, skewed or violate normality assumptions. In health economics they are frequently used to compare costs, quality-of-life scores and other non-normally distributed outcomes, while the Breslow?Gehan Wilcoxon test is commonly used to compare survival curves when treatment effects occur predominantly during early follow-up.
Purpose
Used to compare two populations without assuming normally distributed data, or to compare survival distributions with greater emphasis on early events when using the Breslow?Gehan Wilcoxon variant.
Mathematical Formulae
Primary Formula
Signed-rank statistic:
W = ?R?
where R? denotes the signed ranks of the paired differences.
For large samples:
Z = (W ? E(W)) / �Var(W)
Supporting Formulae
Expected value:
E(W) = n(n + 1) / 4
Variance:
Var(W) = n(n + 1)(2n + 1) / 24
For the Breslow?Gehan Wilcoxon survival test:
?� = (?n?(O? ? E?))� / ?n?�V?
where n? is the number at risk at event time i.
Related Mathematical Methods
- Mann?Whitney U Test
- Wilcoxon Signed-Rank Test
- Breslow?Gehan Wilcoxon Test
- Weighted Log-Rank Test
- Rank-Based Statistical Methods
- Non-Parametric Hypothesis Testing
Example
A health economist compares EQ-5D utility scores before and after a rehabilitation programme in 40 patients. Because the paired differences are not normally distributed, a Wilcoxon Signed-Rank Test is performed.
The analysis produces:
W = 124
Z = ?2.61
p = 0.009
The results indicate a statistically significant improvement in health-related quality of life following treatment.
Excel Implementation
| Function | Example Formula | Health Economics Application |
|---|---|---|
| RANK.AVG | =RANK.AVG(B2,$B$2:$B$41,1) | Rank observations or paired differences |
| ABS | =ABS(B2-C2) | Calculate absolute paired differences |
| SUM | =SUM(D2:D41) | Calculate the Wilcoxon rank sum |
| IF | =IF(B2-C2>0,1,-1) | Assign the sign of paired differences |
| NORM.S.DIST | =2*(1-NORM.S.DIST(ABS(Z),TRUE)) | Approximate two-sided p-value for large samples |
VBA (Optional)
A VBA procedure can automate Wilcoxon rank calculations, compute test statistics and generate summary reports for multiple clinical or health economic outcome comparisons.
Sources
- Wilcoxon F. Individual Comparisons by Ranking Methods. Biometrics Bulletin. 1945.
- Hollander M, Wolfe DA, Chicken E. Nonparametric Statistical Methods.
- Conover WJ. Practical Nonparametric Statistics.
- Collett D. Modelling Survival Data in Medical Research.
- Briggs A, Claxton K, Sculpher M. Decision Modelling for Health Economic Evaluation.
Related Concepts (2)
Library
Publications
1
NICE DSU Technical Support Document 15: Cost-effectiveness modelling using patient-level simulation — Davis, Stevenson, Tappenden & Wailoo, TSD 15 ed., 2014 (NICE Decision Support Unit (University of Sheffield))
Guidance on individual patient-level (microsimulation) cost-effectiveness modelling — when to use it in preference to cohort models, how to structure it, and how to handle the associated computational and uncertainty challenges.
Frequently Asked Questions (6)
What is the Wilcoxon test in survival analysis?
A test comparing survival distributions that gives greater weight to earlier event times than later ones, unlike the standard log-rank test.
Source: Gehan 1965
When is the survival Wilcoxon test preferred to the log-rank test?
The Wilcoxon-type survival test weights each event time by the number of patients still at risk, which is largest early in follow-up and shrinks as patients leave, so it gives most weight to early events. This makes it more sensitive than the log-rank test to a difference between groups that appears soon and fades, and less reliant on the sparse, noisy data of late follow-up. It is therefore preferred when an early separation of curves is expected. Its weakness mirrors this, missing late-emerging differences. Klein and Moeschberger (2003) describe it.
Source: Klein & Moeschberger 2003
How does the Wilcoxon test weight events?
The Wilcoxon, or Gehan, test weights each event comparison by the number at risk at that time, so events occurring early, when many individuals are still at risk, receive more weight than later events, when few remain. This early emphasis contrasts with the log-rank test's equal weighting and is stronger than the Tarone-Ware test's square-root weighting. The number-at-risk weighting is what gives the Wilcoxon test its greater sensitivity to differences arising early in follow-up.
Source: Gehan 1965
When is the Wilcoxon test used?
The Wilcoxon test is used to compare survival between groups when a difference is expected to occur early in follow-up, since its weighting emphasises early events and gives it greater power than the log-rank test in that case. It is one of the weighted rank tests chosen according to the anticipated timing of the survival difference. Because it down-weights late events, it is less sensitive to late differences, so its use suits situations where early divergence of the survival curves is expected.
Source: Gehan 1965
How does the Wilcoxon test differ from the log-rank test?
The Wilcoxon test weights events by the number at risk, emphasising early events, while the log-rank test weights all events equally and is most powerful under proportional hazards. Consequently, the Wilcoxon test is more sensitive to early survival differences and less to late ones, whereas the log-rank test spreads its sensitivity over time. Because it down-weights late events, the Wilcoxon test is more affected by early censoring patterns. The two suit different patterns of difference, so the choice depends on when divergence is expected.
Source: Mantel 1966
What are the limitations of the Wilcoxon test?
The Wilcoxon test's early weighting makes it less powerful than the log-rank test when survival differences occur late, and its dependence on the number at risk means heavy early censoring can affect it, since the weights change with the risk set. Like other weighted tests, its weighting should be chosen in advance, not after seeing the data. It tests for a difference without quantifying its size. These limitations mean it is used where early differences are expected, complemented by other tests and by regression.
Source: Gehan 1965
Trust Record
Verified by Dr Darrin Baines
British health economist
Professional identity: darrinbaines.org
Verification date: 24 Oct 2025
Content version: 1.0.0
Canonical Identity
- Persistent URI
- https://healtheconomics.wiki/concept/wilcoxon-test
- Term code
- HE-EM-SM-093
Stable URI · Machine-readable · Resolvable · CC BY 4.0