stat_surrogate_pvals#

stat_surrogate_pvals(distribution, observed, tail='both')#

Compute empirical p-values against a surrogate distribution.

Parameters:
  • distribution (Any) – Surrogate statistic array whose last axis stores surrogate replications.

  • observed (Any) – Observed statistic array matching distribution.shape[:-1].

  • tail (str) – "right"/"upper"/"one", "left"/"lower", or "both".

Return type:

ndarray