uvex_transients.utils.stat_utils.combine_fractional_errors#

uvex_transients.utils.stat_utils.combine_fractional_errors(*errors: tuple[float, float]) → tuple[float, float][source]#

Combine the fractional errors of independent factors of a product.

This is linear error propagation of \(\ln\prod_i x_i=\sum_i\ln x_i\), so the lower and upper errors each add in quadrature.

Parameters:

*errors (tuple of float) – A (lower, upper) fractional error for each factor.

Returns:

The (lower, upper) fractional error of the product.

Return type:

tuple of float