Statistics & probability

Higher criticism global test calculator for sparse signals in p values

Higher criticism aggregates ordered p-values to detect a sparse collection of weak departures from a joint null.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Higher criticism aggregates ordered p-values to detect a sparse collection of weak departures from a joint null. It maximizes a standardized empirical lower-tail excess over a declared rank range. A reproducible Monte Carlo comparison under independent uniform null p-values calibrates the finite-sample statistic without inventing an exact analytic p-value.

THE FORMULAHC_i=√n(i/n−p_(i))/√(p_(i)(1−p_(i))); maximize over declared ranks i≤floor(n·cutoff), optionally requiring p_(i)≥1/n for HC+.

A worked example

For the twenty default p-values, the untrimmed statistic is largest at ordered rank3with p_(3)=0.03. Its value is√20(0.15−0.03)/√(0.03·0.97)≈3.1459350306. The simulated p-value depends on the explicitly seeded null simulation and is reported with Monte Carlo uncertainty.

Good to know

20–1000 p-values strictly inside(0,1), a predeclared lower-tail cutoff0.05–0.5 and an explicit HC/trimmed-HC convention on the same page. Seeded IID-uniform Monte Carlo calibration with1000–20000 replicates and n×replicates≤2000000; plus-one p estimate and simulation uncertainty. Independent valid null p-values required. No arbitrary-dependence calibration, identification of individual signals or automatic uncorrected tuning after viewing data.

Look for a sparse collective departure

A large family of tests can contain a small collection of weak signals even when no single result is overwhelmingly significant. Higher criticism compares the observed fraction of small p-values with the fraction expected under a uniform null, then standardizes that excess. Maximizing over a declared lower-tail range targets a pattern rather than only the smallest p-value.

The test concerns the joint null that the supplied p-values are valid independent null p-values under the calibration model. It does not identify which hypotheses are false or estimate their effect sizes. A significant collective departure motivates further analysis, but cannot turn a global statistic into an automatically corrected list of individual discoveries.

Higher criticism global test for sparse signals in p valuesRank3;p=0.03HC≈3.145935Scan ranks1…10Finite-sample null calibration uses the same declared scan
Scroll across to see the full diagram.
For the twenty default p-values, the untrimmed statistic is largest at ordered rank3with p_(3)=0.03. Its value is√20(0.15−0.03)/√(0.03·0.97)≈3.1459350306. The simulated p-value depends on the explicitly seeded null simulation and is reported with Monte Carlo uncertainty.

Compare this with the Anderson–Darling goodness-of-fit calculator. Aggregate a family of p-values using a higher-criticism standardized lower-tail empirical-CDF statistic, targeting a sparse collection of weak signals. Existing Anderson–Darling is a general continuous-distribution goodness-of-fit statistic and does not implement this sparse-signal weighting or its selected range.

Define the family and range before inspection

The input must contain the complete p-value family intended for this calculation. Values are strictly between zero and one so the standardizing denominator is finite. Exact zeros often represent numerical underflow rather than true p-values of zero; replacing them by an invented tiny constant would alter the statistic. Obtain numerically valid tail calculations upstream instead.

The cutoff determines the maximum fraction of ordered tests included in the scan. Fixing it before inspecting favorable results is part of defining the statistic. Repeating the procedure across several cutoffs and reporting only the most significant uncorrected result changes its calibration. The same selected rule must be applied to every simulated null family.

Distinguish the untrimmed and trimmed conventions

For each retained ordered p-value, compute the standardized difference between i divided by n and the p-value itself. The untrimmed version includes the supported rank range without a lower p-value threshold. The HC-plus convention additionally excludes p-values smaller than one divided by n, reducing sensitivity to the most extreme individual tail observations.

These conventions can give different answers on the same family. They belong together on one page with an explicit option, not under interchangeable unnamed labels. The displayed maximizing rank and p-value help explain which part of the family drives the result. A smaller p-value need not have the largest standardized excess after accounting for rank and tail variance.

Calculate the default peak directly

The default family begins with0.01,0.02and0.03among twenty p-values. At rank three the empirical fraction is three twentieths, or0.15. The lower-tail excess over0.03is0.12. Multiplying by the square root of twenty and dividing by the square root of0.03times0.97gives approximately3.1459350306.

Directly evaluating the remaining supported ranks confirms that this is the untrimmed maximum for the example. The trimmed convention excludes those first three p-values because they lie below one twentieth. Its maximum can therefore be substantially different. This example checks rank indexing and standardization before adding any random simulation used to calibrate a p-value.

Calibrate with the same finite-sample statistic

Under the stated independent global null, simulated p-values are independent uniforms. Each replicate is sorted and processed with the identical sample size, rank cutoff and trimming convention. The fraction of simulated statistics at least as large as the observed statistic estimates its null tail probability. A plus-one correction prevents reporting a simulated p-value of zero.

The seed makes one numerical simulation reproducible, but it does not remove Monte Carlo uncertainty. Report the number of replicates and an uncertainty summary for the simulation probability. More replicates refine that numerical estimate; they do not compensate for dependent or invalid null p-values or justify an asymptotic null formula outside its applicable regime.

Check both deterministic and simulation components

Independent direct evaluation of every candidate rank should reproduce the displayed maximum and its location. Permuting the input family cannot change those deterministic outputs because the statistic depends on the ordered p-values. Tied p-values still occupy their ordered positions, and their handling must match the definition rather than being assigned arbitrary distinct scientific significance.

Validate simulation separately with a known generator, fixed seeds and independent implementations of the same rank rule. Test near-boundary p-values, all-equal inputs and rank ranges containing few candidates. A sequence of null simulations can assess calibration within Monte Carlo error, but a successful smoke test is not a mathematical certificate for all possible input families.

Avoid overstating the conclusion

Ordinary goodness-of-fit statistics such as Anderson–Darling weight departures differently. Higher criticism is specifically motivated by sparse and weak lower-tail departures in p-value families. It is not automatically more powerful for every alternative. Choosing a procedure after seeing which one wins on the same data needs an appropriate multiple-analysis strategy.

Report the complete family size, p-value construction, independence justification, cutoff, convention, statistic and simulation settings. The global result should remain separate from individual follow-up tests. Dependence from overlapping samples or correlated outcomes may invalidate the simple uniform-independent calibration, even though sorting and numerical evaluation remain perfectly well defined.

A few questions, answered

Does a significant result identify the false nulls?

No. It is a collective test of a p-value family and does not automatically provide corrected individual discovery decisions.

Why can HCandHC+give different values?

HC+removes p-values below1/n under the declared trimming rule, so a peak driven by very small p-values can disappear.

Is the simulated p-value exact?

No. It is a Monte Carlo estimate with a plus-one convention and finite simulation uncertainty.

Can I use correlated p-values?

The initial calibration assumes independent valid null p-values. Correlation needs a separately justified null simulation or methodology.

Find your calculator

Start typing to explore the library.