2
$\begingroup$

I have seen this equation for computing the p-value after a Monte-Carlo test.

\begin{equation} P_{upper} = \frac{NGE+1}{N_{runs} + 1} \quad\quad P_{lower} = \frac{NLE+1}{N_{runs} + 1} \end{equation}

Source: https://www.biomedware.com/files/documentation/clusterseer/MCR/Monte_Carlo.htm

where Nruns is the total number of Monte Carlo simulations, NGE is the number of simulations for which the statistic was greater than or equal to the observed statistic, and NLE is the number of simulations for which the statistic was lower than or equal to the observed statistic.

In this equation, 1 is added to the numerator and the denominator because "the observed statistic is included in the reference distribution".

Questions:

  1. What exactly does this mean and why should we add/subtract 1?

  2. Even if I don't add/subtract a one, I still get a significant p-value. Therefore, which one is statistically correct?

Any thoughts on this? I'll appreciate any help!

$\endgroup$
2
  • $\begingroup$ Can you define NGE, NLE, ...? $\endgroup$ Commented Aug 17, 2020 at 2:52
  • $\begingroup$ Hello, I edited my post. Thanks! $\endgroup$
    – Lyndz
    Commented Aug 17, 2020 at 18:07

1 Answer 1

1
$\begingroup$

In general, for p-value calculation, we first produce a distribution of the test statistic and integrate the distribution from the "observed" test statistic up to infinity (let's say for p-value upper). Consider the image below. There are two hypotheses being tested for some value $\mu=1$ and $\mu=0$. First, the integral from the observed value to infinity is calculated for both the blue and red histograms. Then p-value will be the integral of red histogram divided by the blue. enter image description here

In your case, instead of the integral the total number of events (of MC) is taken directly and the +1 corresponds to the incorporation of the observed test statistic in that total number.

$\endgroup$
2
  • $\begingroup$ just for the second question. Since I get the same significant pvalues, which one is correct? Or when situations do we apply the +/- 1? $\endgroup$
    – Lyndz
    Commented Aug 18, 2020 at 17:00
  • 1
    $\begingroup$ If the number of MC events is low use the +1. However, if the number of MC events is high then it wouldn't make much difference in any case. $\endgroup$
    – CMSnoob
    Commented Aug 19, 2020 at 3:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.