stat_utils module

Created on Tue Aug 6 11:57:23 2019

@author: dgurevich6

stat_utils.ratio_conf_bounds(k1, n1, k2, n2)

Returns 95% lower/upper confidence bounds on ratio, as well as mean. Uses Katz logarithm formula.

Parameters
  • k1 (int) – numbers of successes.

  • n1 (int) – total numbers of trials.

  • k2 (ins) – numbers of successes.

  • n2 (int) – total numbers of trials.

Returns

Returns 95% lower/upper confidence bounds on ratio, as well as mean.

Return type

floats