====== Bootstrapping the i.i.d data ====== The function ''boot.iid()'' has provided an illustration of bootstrapping for the i.i.d data. ===== Animation ===== This is a naive version of bootstrapping but may be useful for novices. In the top plot, the circles denote the original dataset, while the red sunflowers (probably) with leaves denote the points being resampled; the number of leaves just means how many times these points are resampled, as bootstrap samples //with// replacement. The bottom plot shows the distribution of $\bar{x}^{*}$. The whole process has illustrated the steps of resampling, computing the statistic and plotting its distribution based on bootstrapping. ===== R code ===== ani.options(ani.height = 500, ani.width = 600, outdir = getwd(), title = "Bootstrapping the i.i.d data", description = "This is a naive version of bootstrapping but may be useful for novices.") ani.start() par(mar = c(2.5, 4, 0.5, 0.5)) boot.iid(main = c("", ""), heights = c(1, 2)) ani.stop()