Post · 3 min read· pp. 72–75

P-values Gone Wild and Multiscale Madness

I came across a very interesting paper by E. J. Masicampo and Daniel Lalande called A peculiar prevalence of p values just below .05. The link is here. (I saw it referenced at marginal revolution.

1. Peculiar Prevalence

I recommend reading the paper to get the full details. The quick summary is that they collected 3,627 p-values from journals. They found a statistical anomaly in the form of an excess just below 0.05. (They fit a parametric distribution to the p-values and demonstrated a significant departure right below 0.05).

There are some obvious explanations. First, selection bias. Studies with p-values above 0.05 are less likely to be published. Second, the tweaking effect. If you do a study and get a p-value just above .05 you might be tempted to tweak the analysis a bit until you get the p-value just below 0.05. I am not suggesting malfeasance. This could be done quite subconsciously.

You might say: well I would have predicted this would happen anyway. Perhaps. But it is quite interesting to see a carefully done study document and quantify the effect.

E.J. Masicampo was kind enough to share the data with me. Here is a histogram of the p-values.

The jump just below 0.05 is quite noticeable.

2. Multiscale Madness

Now I want to raise a meta-statistical issue. Fitting a parametric model and looking for a big residual is certainly a reasonable approach. But can we do this nonparametrically?

The density of p-values is a mixture of the form

h(p)=(1−π)u(p)+πg(p)\displaystyle h(p) = (1-\pi) u(p) + \pi g(p)

where π{\pi} is the fraction of non-null effects, u(p)=1{u(p)=1} is the uniform density (the density of p{p} under the null) and g(p){g(p)} is the density of p-values for the non-null effects. The unknowns are π{\pi} and g(p){g(p)}. It is not unrealistic to assume that g(p){g(p)} is decreasing. This implies that h{h} is some decreasing density.

So, statistically, we might want to look for suspicious non-decreasing parts of the density. A good tool for doing this is the distribution free method developed in Dumbgen and Walther (2008). Briefly, the idea is this.

Consider data X1,…,Xn{X_1,\ldots, X_n} from a density h{h}. Let

X(1)≤⋯≤X(n)\displaystyle X_{(1)} \leq \cdots \leq X_{(n)}

be the order statistics. Now construct all the local order statistics

X(i)−X(j)X(k)−X(j)\displaystyle \frac{X_{(i)}-X_{(j)}}{X_{(k)}-X_{(j)}}

for j≤i≤k{j \leq i \le k}. These local order statistics are combined into a multiscale test statistic Tjk{T_{jk}}. Then we find the set of intervals

D+={(X(j),X(k)): Tjk>cjk(α)}\displaystyle {\cal D}^+ = \{ (X_{(j)},X_{(k)}):\ T_{jk} > c_{jk}(\alpha)\}

which are the intervals where the density apparently increases. It is possible to explicitly calculate the critical values cjk(α){c_{jk}(\alpha)} . One can then claim that all the intervals in D+{{\cal D}^+} must have an increase in the density h{h}. The probability that this claim is wrong as at most α{\alpha}. This procedure is exact: it is finite sample and distribution free. (Of course, one can construct intervals of decrease as well but for our problem, D+{{\cal D}^+} is the set of interest.)

The procedure is implemented in the R package modehunt, written by Kaspar Rufibach and Guenther Walther. When applied to the p-values (I am ignoring a small technical issue, namely, that the data are rounded) we get the following:

The horizontal lines show the intervals with apparent increases in the density. The result confirms the findings of Masicampo and Lalande. There seems to be suspicious increases just below 0.05.

To quote Arte Johnson, Verrry Interesting!

3. References

Dumbgen, L. and Walther, G. (2008). Multiscale Inference about a density. The Annals of Statistics, 36, 1758–1785.

Masicampo, E.J. and Lalande, D. (2012). A peculiar prevalence of p values just below .05. The Quarterly Journal of Experimental Psychology. http://www.tandfonline.com/doi/abs/10.1080/17470218.2012.711335.

—Larry Wasserman