Bootstrapping is a statistical method that can be used to estimate the confidence intervals of a statistic, such as the mean or median, by…