BCompare groups · Guide test 273
Wilkinson ordered p test
Tests a global null using a chosen ordered p value and its null distribution.
Do it in CodeSplash
In the app, set it up in Analyze with this method:
- Combine p-values (global test across studies) — Taken together, do several independent tests of the same question show an effect anywhere?
In Combine p-values (global test across studies), choose Combination method = Wilkinson.
Do it in CodeSplash Run this test on your own data, in Python or R.
Bench
Change the design, drag the data, move α. The statistic, its reference distribution and the verdict follow.
Bench · Wilkinson ordered-p test
Wilkinson's test looks at the r-th smallest p-value.
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how p₍2₎ varies across samples when H₀ is true, Beta(2, 9) when H₀ holds.
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .258).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
How the studies combine
Only the r-th smallest p counts: it rejects when p₍r₎ falls below its dashed Beta(r, k − r + 1) cut. Dashed gray: what k uniform p-values would look like.
The formula
With your numbers
- the r-th smallest p-value
- its distribution when every null is true, the curve drawn
The verdict
p₍2₎ = 0.099, p = .258
p > α = .050: compatible with H₀
r = 1 is Tippett's test; larger r asks for replication across several studies. Choose r before seeing the data.
- Statistic
- 0.099
- p-value
- 0.2582
Wilkinson ordered-p test on p-values: n = 10: p₍2₎ = 0.099, p = .258. The p-value is above α = .050, so the data are compatible with H₀.
Question and hypotheses
H0: all component null hypotheses hold; H1: at least one fails.
Assumptions
Valid component p values for the individual nulls; a prespecified combination and study/test set. Exact formulas below generally assume independent continuous Uniform(0,1) p values under the complete null; dependence requires a justified adjustment.
Formula
Parameters and notation
p(r) is the rth smallest p value; r selected in advance. r=1 yields Tippett.
Structure of the method
Sort the component p values, select the prespecified rth smallest and evaluate its Beta(r,k+1−r) lower-tail probability under independent continuous uniforms. The test searches for a global departure through an order statistic, with Tippett as the r=1 special case.
Estimated and nuisance parameters
No model parameter is estimated by the combination. The ordered p value is a statistic; r and k define its null law. The individual tests may estimate nuisance quantities, which should already be represented in their valid p values.
Settings and design choices
Choose r before viewing the ordered vector. Larger r emphasizes evidence spread across more components but changes the targeted alternative and power. If several r values are explored, the smallest resulting p value needs a further calibrated selection step rather than being reported as an ordinary Wilkinson result.
Fitting and adaptation
There is no neural fine-tuning. Adapt the test by prespecifying a new scientifically motivated r and recalculating its correct null reference. For dependent components, simulate or permute the full ordered-vector statistic under a justified joint null; preserve the selection rule in every replicate.
Sensitivity and robustness
A significant rth-order test of the complete null does not automatically prove at least r genuine effects; partial-conjunction inference is a different problem. Discrete p values, correlations and selective reporting alter order-statistic behavior. Show the ordered vector and explain the intended sparsity/diffuseness of the alternative.
How to use and calibrate
Use the lower beta tail, reflecting the rth order statistic of independent uniforms.
Example application
Require evidence to appear in several components rather than only the smallest p.
Interpretation and pitfalls
Watch out
Despite using the rth p value, this complete-null test is not automatically a valid partial-conjunction test that proves at least r effects.
What changed in edition 2
- New sections: structure of the method, estimated and nuisance parameters, settings and design choices, fitting and adaptation, sensitivity and robustness.
Python and R
These standard calibrations assume independent, valid null p-values. Combine tests of a coherent global null and align directional alternatives before aggregation.
Validated — Executed successfully in the validation environment · needs numpy, scipy
import numpy as np
from scipy import stats
rng = np.random.default_rng(2026)
p=np.array([.01,.04,.2,.5,.1])
print((np.sort(p)[1],stats.beta.cdf(np.sort(p)[1],2,len(p)-1)))
Output
(np.float64(0.04), np.float64(0.014757990400000002))
Not run — Syntax checked; runtime not verified in the final environment · needs metap
p<-c(.01,.04,.2,.5,.1)
print(metap::wilkinsonp(p,r=2))
Sources
- metap — metap · wilkinsonpAuthor documentation/source reviewed: metap 1.14.search.r-project.org
- wilkinsonpsearch.r-project.org
- Statistics guide v4 (historical):
- R: Syntax checked; runtime not verified in the final environment
- Reference's record:
- Edition 2 review: Python: executed · R: not executed (Rscript unavailable). Python: Ran in the reference's review, on this exact code. R: Reviewed but not run: R wasn't available to the reference's authors.
From the CodeSplash statistics guide (v4), entry 273, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT273.