bebi103.bootstrap.draw_bs_reps

bebi103.bootstrap.draw_bs_reps(data, func, size=1, args=())

Generate bootstrap replicates out of data using func.

Parameters
  • data (array_like) – One-dimensional array of data.

  • func (function) – Function, with call signature func(data, *args) to compute replicate statistic from resampled data.

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

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

Returns

output – Bootstrap replicates computed from data using func.

Return type

ndarray

Notes

nan values are ignored.