Reporting p-values for non-significant results#
spm1d results for 1D data contain a p_zmax value that may be used to report both significant and non-significant results. For example: “the test failed to reach significance (p = 0.321)”. Here 0.321 is the p_zmax value that the relevant analysis produced. Although reporting p_zmax in this manner is acceptable, it is important to note that these p_zmax values have accuracy limitations when calculated using the default method='rft'.
Random field theory (RFT)-based p_zmax values are accurate only for small p-values (p<0.2) and are only qualitatively accurate for large p-values (p> 0.5). This document uses simulation to demonstrate the accuracies and inaccuracies of RFT-based p_zmax values, provides interpretation and reporting recommendations, and describes the spm1d warnings related to p_zmax. Finally, p_zmax for the other methods (method='perm', method='fdr', method='bonf' and method='uncorr') is considered together with relevant reporting recommendations.
For simplicity, one-tailed inference in the positive direction is assumed. Within relevant procedures (t tests and regression), spm1d automatically corrects for two-tailed and one-tailed inference in the negative direction. Thus the recommendations below can be directly applied to all p_zmax results regardless of tailedness.
1. Accuracy of RFT p_zmax values#
When RFT-based inference is used via inference(0.05, method='rft') (the default for 1D inference), the resulting p_zmax value corresponds to the probability that smooth random Gaussian fields with no true effect would produce a test statistic continuum whose maximum value exceeds the observed zmax value. This probability value is calculated from the analytical RFT survival function: \(P(z_\mathrm{max} > u)\), where \(u\) is an arbitrary height that is set to zmax to calculate p_zmax. The simulations below generate random fields with no true effect, record each field’s zmax value, and compare the resulting numerical survival function (the proportion of fields whose zmax value exceeds arbitrary \(u\)) with the analytical RFT prediction. RFT’s analytical solution has been validated mathematically elsewhere. The simulation below represents only a numerical validation of RFT’s predictions. Where the analytical and numeric results coincide, a reported p_zmax may be regarded as accurate. Where they separate, p_zmax should be interpreted and reported more cautiously.
Survival functions for Gaussian fields#
Although RFT is usually applied to test statistic fields, the simplest RFT solutions pertain to Gaussian fields themselves. For Gaussian fields the survival function \(P(z_\mathrm{max} > u)\) can be interpreted as the probability that the maximum value of a random Gaussian field will exceed \(u\). RFT’s predictions regarding this probability can be verified numerically simply by generating many Gaussian fields and then calculating the proportion of fields whose maximum value exceeds \(u\). The figure below indicates the theoretical survival functions for four different smoothness (FWHM) values together with numerically calculated results.
Figure 1: Gaussian random fields (Q = 101); 50,000 fields per FWHM ℹ️
ℹ️ Generating these figures
The figures on this page can be regenerated with doc/scripts/figures/theory/nonsignificant_results.py in the repository.
These results suggest that the theoretical results are accurate when p is small (p < 0.2) but that numerical results diverge from theoretical values when p is large (p > 0.5). In particular:
For p < 0.2 the prediction is accurate to within a few percent of the value at every smoothness value.
For 0.2 < p < 0.5 the survival functions are qualitatively similar and the theoretical probabilities are still close-to-correct.
When the theoretical survival function reaches p = 0.5, the simulated probability is 0.51–0.60.
For p > 0.5 the theoretical and numerical survival functions increasingly separate. Theory understates the probability and does so more for smoother fields.
Key numerical results for theoretical RFT p-values are shown in the table below. Each FWHM column contains numerical p-values calculated from simulation.
RFT p |
FWHM=5 |
FWHM=10 |
FWHM=20 |
FWHM=40 |
|---|---|---|---|---|
0.05 |
0.048 |
0.050 |
0.050 |
0.049 |
0.1 |
0.097 |
0.101 |
0.102 |
0.103 |
0.2 |
0.197 |
0.204 |
0.209 |
0.213 |
0.3 |
0.298 |
0.311 |
0.322 |
0.333 |
0.5 |
0.507 |
0.527 |
0.557 |
0.603 |
0.7 |
0.719 |
0.755 |
0.816 |
0.933 |
One-sample t-fields#
The simulations above used \(N\)=50,000 Gaussian random fields to compare theoretical and numerical results, but those simulations are limited to probabilities regarding Gaussian fields themselves. Extending these simulations to RFT predictions regarding test statistics fields (t-fields, F-fields, etc.) requires not \(N\) Gaussian fields but instead \(J\) Gaussian fields for each of \(N\) random datasets. Here \(J\) is relatively small (usually \(J\)<50) to represent small-sample experiments.
The results in the figure below come from simulations involving sample sizes of \(J\)=5 and \(J\)=20 and smoothness values of FWHM=10 and FWHM=25. \(N\)=20,000 random datasets were generated for each \(J\)-FWHM combination. For each dataset the one-sample t continuum was calculated. The t continuum maxima were compared against the RFT theoretical p_zmax value for t-fields.
Figure 2: One-sample t fields (Q = 101); 20,000 fields per condition
These t-field results are similar to the Gaussian field results in that:
p<0.2 theoretical results are accurate
0.2<p<0.5 theoretical results are reasonable approximations
p>0.5 theoretical results depart from numerical results, especially for smoother fields
Why the departure occurs#
Random field theory gives the probability that the field’s maximum exceeds a height \(u\) as \(1 - \exp(-\mathrm{E}[\chi(u)])\), where \(\mathrm{E}[\chi(u)]\) is the expected Euler characteristic of the excursion set above \(u\) (in one dimension the expected number of upcrossings). For high thresholds \(\mathrm{E}[\chi(u)]\) is small. This expression then equals \(\mathrm{E}[\chi(u)]\) and provides a tight upper probability bound. This high-\(u\) regime corresponds to small p-values. For low \(u\) thresholds (and high p-values) \(\mathrm{E}[\chi(u)]\) approaches or exceeds 1. \(1 - \exp(-\mathrm{E}[\chi(u)])\) then falls below the true exceedance probability and theoretical p-values are too small.
2. Reporting RFT p_zmax values#
Report
p_zmaxfor significant and non-significant results alike. For p < 0.2 the value is accurate. Up to p ≈ 0.5 it remains close (within about 0.1) and the simulated and theoretical curves are qualitatively the same.For p > 0.5,
p_zmaxvalues are approximate. They are understated by an amount that grows with p and with smoothness. To avoid misreporting p-values consider using “p > 0.5”.Alternatively use nonparametric inference (
method='perm'; see section 4) because it yields precise p-values across all p-value ranges.If p-values are large, optionally mention that inaccuracies associated with large p-values are inconsequential for classical hypothesis testing, because RFT’s p-values are accurate when near α.
Do not directly compare large
p_zmaxvalues across smoothness values.Do not use p-values as likelihoods in a further analysis (for example in a Bayesian or meta-analytic combination) and do not interpret them in terms of effect sizes.
4. p_zmax accuracy for other methods#
The limitation described above applies only to the RFT method. Nevertheless the other methods have other limits because the meaning of p_zmax varies slightly between methods.
method='perm'p_zmaxis the proportion of permutations whose field maximum is at least the observed extreme. This probability is calculated directly from the simulated permutation distribution and therefore embodies the limitations of all Monte Carlo estimates. The smallest reportable value is 1/nperm(0.0001 for the default 10,000 permutations). The precision is about \(\sqrt{p(1-p)/\mathrm{nperm}}\) (±0.005 at p = 0.5 with 10,000 permutations). Since it is calculated from a numerical distribution, large p-values are as accurate as small ones.method='bonf'p_zmaxis the Bonferroni-corrected p-value of the maximum test statistic value: \(\min(1, Q\,p_u)\), where \(p_u\) is the uncorrected pointwise p-value and \(Q\) is the number of domain points. It is an upper bound on the family-wise p-value and is approximately exact only for small p-values and \(Q\) independent tests. Bonferroni-corrected p-values are conservative unless the continuum data are perfectly rough (i.e., perfectly uncorrelated). Bonferronip_zmaxvalues should generally not be reported because they are almost always overly conservative. The only exception is to report them as upper probability bounds.method='fdr'p_zmaxis the smallest Benjamini–Hochberg adjusted p-value in the continuum. It is the smallest false discovery rate at which any point would be declared significant. It is not the probability that the maximum exceeds the observed value. A possible way to report this value is: “the smallest FDR-adjusted p-value was x”.method='uncorr'p_zmaxis the uncorrected point p-value of the extreme. It ignores multiple comparisons across the domain and is therefore invalid for 1D inference. This method is provided only as a baseline against which the other methods’ results can be compared. Results frommethod='uncorr'should therefore not be reported. spm1d thus raises anSPM1DUncorrWarningon every use of the method. This warning can nevertheless be deliberately silenced if you wish to explore the differences amongst the various inference methods (see Errors and warnings).