class_docstr: Distribution of MWU statistic under the null hypothesis
class_docstr_tok: ["Distribution","of","MWU","statistic","under","the","null","hypothesis"]
docstr: Survival function
docstr_tok: ["Survival","function"]
code: def sf(self, k, m, n):
      """Survival function"""
      # Use the fact that the distribution is symmetric; i.e.
      # _f(m, n, m*n-k) = _f(m, n, k), and sum from the left
      k = m * n - k
      # Note that both CDF and SF include the PMF at k. The p-value is
      # calculated from the SF and should include the mass at k, so this
      # is desirable
      return self.cdf(k, m, n)
  
imports: import numpy
  from collections import namedtuple
  from scipy import special
  from scipy import stats
  from scipy.stats._stats_py import _rankdata
  from ._axis_nan_policy import _axis_nan_policy_factory
label_desc: Use image node_id 6 for calling the _MWU obj's underlying member method code with example usage: obj.sf(k, m, n) and returns: self