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:
What exactly does this mean and why should we add/subtract 1?
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!