bebi103.bootstrap.draw_bs_reps_pairs

bebi103.bootstrap.draw_bs_reps_pairs(x, y, func, size=1, args=())

Perform pairs bootstrap for single statistic.

Parameters
  • x (array_like) – x-values of data.

  • y (array_like) – y-values of data.

  • func (function) – Function, with call signature func(x, y, *args) to compute replicate statistic from pairs bootstrap sample. It must return a single, scalar value.

  • size (int, default 1) – Number of pairs bootstrap replicates to draw.

  • args (tuple, default ()) – Arguments to be passed to func.

Returns

output – Bootstrap replicates.

Return type

ndarray