def get_level(n): return scipy.optimize.brentq(find_confidence_interval, 0., 1., args=(f.T, confidence_level(n)))