Skip to content

BCompare groups · Guide test 268

Fisher combined probability test

Combines independent p values through their negative log sum to test a joint null.

Runs in CodeSplashPython example validatedR example not run

Do it in CodeSplash

In the app, set it up in Analyze with this method:

In Combine p-values (global test across studies), choose Combination method = Fisher.

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 · Fisher combined probability test

10
1.20
0.50
0.050

Your data

Drag a point or use ↑/↓ to change it
p-values · n = 10 · mean 0.41

If H₀ were true

χ² = 27.67
  1. The reference: how χ² varies across samples when H₀ is true.
  2. Your statistic, from the data above.
  3. The p-value: the area at least as extreme as yours (p = .118).
  4. The hatched rejection region at α = .050: statistics landing here reject H₀.

The formula

X2=−2∑i=1kln⁡pi∼χ2k2X^2 = -2\sum_{i=1}^{k}\ln p_i\sim\chi^2_{2k}

With your numbers

X2=27.67,k=10X^2 = 27.67,\quad k = 10
pip_i
one-sided p-values of independent studies

The verdict

χ²(20) = 27.67, p = .118

p > α = .050: compatible with H₀

Driven by the smallest p-values: one strong study can carry it. Choose the combination method before seeing the results.

Statistic
27.665
p-value
0.1176
Fisher combined probability test on p-values: n = 10: χ²(20) = 27.67, p = .118. The p-value is above α = .050, so the data are compatible with H0.

Fisher combined probability test on p-values: n = 10: χ²(20) = 27.67, p = .118. 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

X=−2∑i=1klog⁡pi∼χ2k2X=-2\sum_{i=1}^{k}\log p_i\sim\chi^2_{2k}

Parameters and notation

k is the number of component tests; small p values contribute large positive terms.

Structure of the method

Transform each component p value to −2 log(p), add the contributions and evaluate the upper chi-square tail with twice the number of components as degrees of freedom. This combines evidence against the intersection null; it does not fit a shared effect-size model or prove every component is nonnull.

Estimated and nuisance parameters

There are no fitted combination coefficients in the standard Fisher test. The individual analyses may estimate nuisance parameters, and their p-value validity is inherited by the combination. The number of studies is a design quantity; it must include the prespecified eligible tests.

Settings and design choices

Prespecify the study/test collection, one- versus two-sided input convention, missing-study handling and global alpha. Preserve log p values when extreme tails would underflow; metap supports logged input/output. Choosing only significant studies changes the null and invalidates the nominal reference.

Fitting and adaptation

Recalibration, rather than fine-tuning, is appropriate when dependence or discrete p values invalidate the independent-continuous reference. A justified joint-null simulation should rerun the component analyses and combination. If effect sizes and standard errors are available, consider a separately specified meta-analysis for estimation.

Sensitivity and robustness

Inspect influential contributions and outcome direction. Several small two-sided p values can support mutually opposing effect directions. Shared controls, overlapping subjects and correlated endpoints create dependence; Fisher’s usual chi-square law then need not hold. Report the component vector and study-selection protocol as well as the combined result.

How to use and calibrate

Use the upper chi square tail. Combine directional p values consistently if direction matters.

Example application

Combine independent studies testing a common scientific null.

Interpretation and pitfalls

Watch out

This gives global evidence, not an effect estimate or proof of replication in every study. Correlation changes the null distribution.

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.

Python · native

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(stats.combine_pvalues(p,method="fisher"))
Output
SignificanceResult(statistic=np.float64(24.858432393688762), pvalue=np.float64(0.005620400034155035))
R

Not run — Syntax checked; runtime not verified in the final environment · needs metap

p<-c(.01,.04,.2,.5,.1)
print(metap::sumlog(p))

Sources

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 268, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT268.