Approximate the sampling distribution of an estimator by resampling the data with replacement.
bootstrap_replicates(data, stat, B, seed): create rng = np.random.default_rng(seed). For each of the replicates, draw one index array rng.integers(0, n, size=n) (where = len(data)), apply stat to the resampled data, and collect the result. Return a float array of length .bootstrap_se(reps): the bootstrap standard error, the sample standard deviation of the replicates with ddof=1.percentile_ci(reps, alpha): the and quantiles of the replicates (numpy.quantile, default interpolation), as (lo, hi).basic_ci(theta_hat, reps, alpha): the basic (pivotal) interval. Approximate the distribution of by that of over the replicates, take its and quantiles , and return .unique_fraction(n, B, seed): with a fresh rng = np.random.default_rng(seed), draw index arrays rng.integers(0, n, size=n) and return the average fraction of distinct indices per resample.Return floats (and the array of replicates).