pykelihood.metrics.

bootstrap#

bootstrap(metric, bootstrap_method)#

Bootstrap utility. Flexible enough to be used with any metric and bootstrap method.

Parameters:
  • metric (Callable[[Distribution, Obs], float]) – pykelihood.metrics object.

  • bootstrap_method (Callable[[Obs], Iterable[Obs]]) – Function that can be called on Obs or sequences of Obs. For example, np.random.sample.

Returns:

Value of the metric of interest averaged over bootstrapped data.

Return type:

Callable