eigenstrapping.stats.nonparp

eigenstrapping.stats.nonparp(stat, dist)[source]

Compute two-sided non-parametric p-value.

Compute the fraction of elements in dist which are more extreme than stat.

Parameters:
  • stat (float) – Test statistic

  • dist ((N,) np.ndarray) – Null distribution for test statistic

Returns:

Fraction of elements in dist which are more extreme than stat

Return type:

float