The statement is mostly true, but needs clarification. Here's a breakdown:
-
For two-tailed permutation tests, p = (#|permuted statistics| >= |observed|) / N is the general formula for calculating the p-value. It counts the proportion of permuted statistics that are as extreme or more extreme than the observed statistic, in either direction.
-
"...but only if the null is symmetric around 0." This is where the nuance lies. The formula works even if the null isn't perfectly symmetric, but it's most appropriate and directly interpretable when the null distribution is symmetric.
Here's why:
-
Symmetric Null: If the null distribution is symmetric around 0 (or the value specified by the null hypothesis), then |observed| correctly captures the "extremeness" in both tails. The p-value then represents the probability of observing a result as far from the null (in either direction) as the observed result, assuming the null is true.
-
Asymmetric Null: If the null distribution is not symmetric, simply taking the absolute value and comparing can be misleading. You might be overestimating or underestimating the true p-value. In these cases, you need to consider the direction of the effect and calculate separate probabilities for each tail, then combine them appropriately. The simple formula doesn't do that.
Example to illustrate the asymmetry issue:
Suppose you're testing if a new drug increases a certain biomarker. The null hypothesis is that the drug has no effect. If the biomarker naturally has a skewed distribution (e.g., most people have low levels, but a few have very high levels), then a large observed increase might be more "extreme" than a similarly sized decrease. Using |observed| treats them equally, which isn't correct. You'd want to calculate the probability of observing an increase at least as large as the observed increase, and then potentially add the probability of observing a decrease that's equally or more extreme in the opposite direction, depending on the specific test.
In summary:
The formula p = (#|permuted statistics| >= |observed|) / N is a valid way to calculate a p-value for a two-tailed permutation test, but its interpretation is clearest and most accurate when the null distribution is symmetric around the null hypothesis value. For asymmetric nulls, more careful consideration of the tails is needed.
Therefore, the answer is True, with the important caveat that it's most accurate and interpretable when the null is symmetric.