Bootstrapping the i.i.d data

The function boot.iid() has provided an illustration of bootstrapping for the i.i.d data.

Animation

Bootstrapping the i.i.d data
loading animation frames... 0%

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 \normalsize \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()
 
dmml/bootstrap_i.i.d.txt · Last modified: 2009/01/14 21:00 by 218.107.132.124
 
Recent changes RSS feed Creative Commons License Donate to AniWiki Contribute Your Ideas! Driven by DokuWiki