Algorithm · Amazon · Medium
Given a numeric sample data, a number of bootstrap replications B, a confidence level level, and a random seed, implement two equivalent procedures for estimating the sampling distribution of the mean. For each replication, select len(data) elements from data independently with replacement, then calculate that resample's mean. Return the complete array of B bootstrap means and a percentile confidence interval containing the central level fraction of that distribution. Use…