def fprob(f, dfn, dfd, direction='high'):
 if (f < 0.0):
  return nan
 elif (direction == 'high'):
  return (1.0 - fdist.cdf(f, dfn, dfd))
 elif (direction == 'low'):
  return fdist.cdf(f, dfn, dfd)
 else:
  raise ValueError('Unknown direction.')

def fprob ( f , dfn , dfd , direction = 'high' ) : if ( f < 0.0 ) : return nan elif ( direction == 'high' ) : return ( 1.0 - fdist . cdf ( f , dfn , dfd ) ) elif ( direction == 'low' ) : return fdist . cdf ( f , dfn , dfd ) else : raise ValueError ( 'Unknown direction.' )
calculate probability from f distribution paramaters f : float value of f statistic dfn : float degrees of freedom for ??? dfd : float degrees of freedom for ??? direction : str one of low or high .