I'm doing a permutation (first time) and I see tests done like this figure below.
A distribution of simulated results are made. Then the observed value is plotted as a red line.
Then the authors usually report a Pvalue to the observed value.
How do I calculate this Pvalue?