normal_interval

coffea.hist.normal_interval(pw, tw, pw2, tw2, coverage=0.6826894921370859)[source]

Compute errors based on the expansion of pass/(pass + fail), possibly weighted

Parameters:
  • pw (numpy.ndarray) – Numerator, or number of (weighted) successes, vectorized

  • tw (numpy.ndarray) – Denominator or number of (weighted) trials, vectorized

  • pw2 (numpy.ndarray) – Numerator sum of weights squared, vectorized

  • tw2 (numpy.ndarray) – Denominator sum of weights squared, vectorized

  • coverage (float, optional) – Central coverage interval, defaults to 68%

  • https (c.f.)