BCompare groups · Guide test 268
Fisher combined probability test
Combines independent p values through their negative log sum to test a joint null.
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 = 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
Your data
Drag a point or use ↑/↓ to change itIf H₀ were true
- The reference: how χ² varies across samples when H₀ is true.
- Your statistic, from the data above.
- The p-value: the area at least as extreme as yours (p = .118).
- The hatched rejection region at α = .050: statistics landing here reject H₀.
The formula
With your numbers
- 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 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
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.
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))
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
- metap — metap · sumlogAuthor documentation/source reviewed: metap 1.14.search.r-project.org
- sumlogsearch.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 268, updated from the reference's edition 2 (reviewed 14 November 2026) as STAT268.