5.3 years ago by
See the definition of a p-value.
In statistics, the p-value is a function of the observed sample results (a statistic) that is used for testing a statistical hypothesis. More specifically, the p-value is defined as the probability of obtaining a result equal to or "more extreme" than what was actually observed, assuming that the hypothesis under consideration is true.
, so just add up everything to the right of the red line. That's one tailed. Or do the absolute value so you get those x< -4 too. Be careful that your simulation matches the hypothesis. It's super important that your simulated data is made correctly.