Bootstrapping (statistics)
Bootstrapping is a procedure for estimating the distribution of an estimator by resampling (often with replacement) one's data or a model which is estimated from the data. Bootstrapping assigns measures of accuracy (bias, variance, confidence intervals, prediction error, etc.) to sample estimates. This technique allows estimation of the sampling distribution of almost any statistic using random sampling methods. Bootstrapping estimates the properties of an estimand (such as its variance) by measuring those properties when sampling from an approximating distribution. One standard choice for an approximating distribution is the empirical distribution function of the observed data. In the case... Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.
Bootstrapping is a procedure for estimating the distribution of an estimator by resampling (often with replacement) one's data or a model which is estimated from the data. Bootstrapping assigns measures of accuracy (bias, variance, confidence intervals, prediction error, etc.) to sample estimates. This technique allows estimation of the sampling distribution of almost any statistic using random sampling methods. Bootstrapping estimates the properties of an estimand (such as its variance) by measuring those properties when sampling from an approximating distribution. One standard choice for an approximating distribution is the empirical distribution function of the observed data. In the case where a set of observations can be assumed to be from an independent and identically distributed population, this can be implemented by constructing a number of resamples with replacement, of the observed data set (and of equal size to the observed data set). A key result in Efron's seminal paper that introduced the bootstrap is the favorable performance of bootstrap methods using sampling with replacement compared to prior methods like the jackknife that sample without replacement. However, since its introduction, numerous variants on the bootstrap have been proposed, including methods that sample without replacement or that create bootstrap samples larger or smaller than the original data. The bootstrap may also be used for constructing hypothesis tests. It is often used as an alternative to statistical inference based on the assumption of a parametric model when that assumption is in doubt, or where parametric inference is impossible or requires complicated formulas for the calculation of standard errors. The 'exact' version for case resampling is similar, but we exhaustively enumerate every possible resample of the data set. This can be computationally expensive as there are a total of \binom {2n-1}n = \frac{(2n-1)!}{n! (n-1)!} different resamples, where n is the size of the data set. Thus for n = 5, 10, 20, 30 there are 126, 92378, 6.89 × 10 10 and 5.91 × 10 16 different resamples respectively. \bar{x} = \frac{1}{10} (x_1 + x_2 + \cdots + x_{10}). Such a normality assumption can be justified either as an approximation of the distribution of each individual coin flip or as an approximation of the distribution of the average of a large number of coin flips. The former is a poor approximation because the true distribution of the coin flips is Bernoulli instead of normal. The latter is a valid approximation in infinitely large samples due to the central limit theorem. However, if we are not ready to make such a justification, then we can use the bootstrap instead. Using case resampling, we can derive the distribution of \bar{x} . We first resample the data to obtain a bootstrap resample. An example of the first resample might look like this . There are some duplicates since a bootstrap resample comes from sampling with replacement from the data. Also the number of data points in a bootstrap resample is equal to the number of data points in our original observations. Then we compute the mean of this resample and obtain the first bootstrap mean: μ 1 *. We repeat this process to obtain the second resample X 2 * and compute the second bootstrap mean μ 2 *. If we repeat this 100 times, then we have μ 1 *, μ 2 *, ..., μ 100 *. This represents an empirical bootstrap distribution of sample mean. From this empirical distribution, one can derive a bootstrap confidence interval for the purpose of hypothesis testing. Bootstrapping can be interpreted in a Bayesian framework using a scheme that creates new data sets through reweighting the initial data. Given a set of N data points, the weighting assigned to data point i in a new data set \mathcal{D}^J is w^J_i = x^J_i - x^J_{i-1} , where \mathbf{x}^J is a low-to-high ordered list of N-1 uniformly distributed random numbers on [0,1] , preceded by 0 and succeeded by 1. The distributions of a parameter inferred from considering many such data sets \mathcal{D}^J are then interpretable as posterior distributions on that parameter. \hat{f\,}_h(x)={1\over nh}\sum_{i=1}^nK\left({x-X_i\over h}\right), where h is the smoothing parameter. And the corresponding distribution function estimator \hat{F\,}_h(x) is \hat{F\,}_h(x)=\int_{-\infty}^x \hat f_h(t)\,dt. Based on the assumption that the original data set is a realization of a random sample from a distribution of a specific parametric type, in this case a parametric model is fitted by parameter θ, often by maximum likelihood, and samples of random numbers are drawn from this fitted model. Usually the sample drawn has the same sample size as the original data. Then the estimate of original function F can be written as \hat{F}=F_{\hat{\theta}} . This sampling process is repeated many times as for other bootstrap methods. Considering the centered sample mean in this case, the random sample original distribution function F_{\theta} is replaced by a bootstrap random sample with function F_{\hat{\theta}} , and the probability distribution of \bar{X_{n}}-\mu_{\theta} is approximated by that of \bar{X}_n^*-\mu^* , where \mu^*=\mu_{\hat{\theta}} , which is the expectation corresponding to F_{\hat{\theta}} . The use of a parametric model at the sampling stage of the bootstrap methodology leads to procedures which are different from those obtained by applying basic statistical theory to inference for the same model . Fit the model and retain the fitted values \widehat{y\,}_i and the residuals \widehat{\varepsilon\,}_i = y_i - \widehat{y\,}_i, (i = 1,\dots, n) . For each pair, (x i , y i ), in which x i is the (possibly multivariate) explanatory variable, add a randomly resampled residual, \widehat{\varepsilon\,}_j , to the fitted value \widehat{y\,}_i . In other words, create synthetic response variables y^*_i = \widehat{y\,}_i + \widehat{\varepsilon\,}_j where j is selected randomly from the list (1, ..., n) for every i. Refit the model using the fictitious response variables y^*_i , and retain the quantities of interest (often the parameters, \widehat\mu^*_i , estimated from the synthetic y^*_i ). Repeat steps 2 and 3 a large number of times. This scheme has the advantage that it retains the information in the explanatory variables. However, a question arises as to which residuals to resample. Raw residuals are one option; another is studentized residuals (in linear regression). Although there are arguments in favor of using studentized residuals; in practice, it often makes little difference, and it is easy to compare the results of both schemes. y(x)=f(x)+\varepsilon,\ \ \varepsilon\sim \mathcal{N}(0,\sigma^2), \varepsilon is a noise term. Gaussian process prior: For any finite collection of variables, x 1 , ..., x n , the function outputs f(x_1),\ldots,f(x_n) are jointly distributed according to a multivariate Gaussian with mean m=[m(x_1),\ldots,m(x_n)]^\intercal and covariance matrix (K)_{ij}=k(x_i,x_j). Assume f(x)\sim \mathcal{GP}(m,k). Then y(x)\sim \mathcal{GP}(m,l) , where l(x_i,x_j)=k(x_i,x_j)+\sigma^2\delta(x_i,x_j) , and \delta(x_i,x_j) is the standard Kronecker delta function. Gaussian process posterior: According to GP prior, we can get [y(x_1),\ldots,y(x_r)]\sim \mathcal{N}(m_0,K_0) , where m_0=[m(x_1),\ldots,m(x_r)]^\intercal and (K_0)_{ij}=k(x_i,x_j)+\sigma^2\delta(x_i,x_j). Let x 1 * ,...,x s * be another finite collection of variables, it's obvious that [y(x_1),\ldots,y(x_r),f(x_1^*),\ldots,f(x_s^*)]^\intercal\sim \mathcal{N}(\binom{m_0}{m_*}\begin{pmatrix} K_0 & K_* \\ K_*^\intercal & K_{**} \end{pmatrix}) , where m_*=[m(x_1^*),\ldots,m(x_s^*)]^\intercal , (K_{**})_{ij}=k(x_i^*,x_j^*) , (K_*)_{ij}=k(x_i,x_j^*). According to the equations above, the outputs y are also jointly distributed according to a multivariate Gaussian. Thus, [f(x_1^*),\ldots,f(x_s^*)]^\intercal\mid([y(x)]^\intercal=y)\sim \mathcal{N}(m_\text{post},K_\text{post}), where y=[y_1,...,y_r]^\intercal , m_\text{post}=m_*+K_*^\intercal(K_O+\sigma^2I_r)^{-1}(y-m_0) , K_\text{post}=K_{**}-K_*^\intercal(K_O+\sigma^2I_r)^{-1}K_* , and I_r is r\times r identity matrix. y^*_i = \widehat{y\,}_i + \widehat{\varepsilon\,}_i v_i so the residuals are randomly multiplied by a random variable v_i with mean 0 and variance 1. For most distributions of v_i (but not Mammen's), this method assumes that the 'true' residual distribution is symmetric and can offer advantages over simple residual sampling for smaller sample sizes. Different forms are used for the random variable v_i , such as The standard normal distribution A distribution suggested by Mammen (1993). v_i = \begin{cases} -(\sqrt{5} -1)/2 & \text{with probability } (\sqrt{5} +1)/(2\sqrt{5}), \\ (\sqrt{5} +1)/2 & \text{with probability } (\sqrt{5} -1)/(2\sqrt{5}) \end{cases} Approximately, Mammen's distribution is: v_i = \begin{cases} -0.6180\quad\text{(with a 0 in the units' place)} & \text{with probability } 0.7236, \\ +1.6180\quad\text{(with a 1 in the units' place)} & \text{with probability } 0.2764. \end{cases} Or the simpler distribution, linked to the Rademacher distribution: v_i =\begin{cases} -1 & \text{with probability } 1/2, \\ +1 & \text{with probability } 1/2. \end{cases} \lim_{n\to \infty} \operatorname{Binomial}(n,1/n) = \operatorname{Poisson}(1) The Poisson bootstrap had been proposed by Hanley and MacGibbon as potentially useful for non-statisticians using software like SAS and SPSS, which lacked the bootstrap packages of R and S-Plus programming languages. The same authors report that for large enough n, the results are relatively similar to the nonparametric bootstrap estimates but go on to note the Poisson bootstrap has seen minimal use in applications. Another proposed advantage of the Poisson bootstrap is the independence of the W_i makes the method easier to apply for large datasets that must be processed as streams. A way to improve on the Poisson bootstrap, termed "sequential bootstrap", is by taking the first samples so that the proportion of unique values is ≈0.632 of the original sample size n. This provides a distribution with main empirical characteristics being within a distance of O(n^{3/4}) . Empirical investigation has shown this method can yield good results. This is related to the reduced bootstrap method. For massive data sets, it is often computationally prohibitive to hold all the sample data in memory and resample from the sample data. The Bag of Little Bootstraps (BLB) provides a method of pre-aggregating data before bootstrapping to reduce computational constraints. This works by partitioning the data set into b equal-sized buckets and aggregating the data within each bucket. This pre-aggregated data set becomes the new sample data over which to draw samples with replacement. This method is similar to the Block Bootstrap, but the motivations and definitions of the blocks are very different. Under certain assumptions, the sample distribution should approximate the full bootstrapped scenario. One constraint is the number of buckets b=n^\gamma where \gamma \in [0.5, 1] and the authors recommend usage of b=n^{0.7} as a general solution. (\widehat{\theta\,} - t^{*}_{(1-\alpha/2)}\cdot \widehat{\text{se}}_\theta,\widehat{\theta\,} - t^{*}_{(\alpha/2)}\cdot \widehat{\text{se}}_\theta) where t^{*}_{(1-\alpha/2)} denotes the 1-\alpha/2 percentile of the bootstrapped Student's t-test t^{*}=(\widehat{\theta\,}^{*}-\widehat{\theta\,})/\widehat{\text{se}}_{\widehat{\theta\,}^*} , and \widehat{\text{se}}_\theta is the estimated standard error of the coefficient in the original model. The studentized test enjoys optimal properties as the statistic that is bootstrapped is pivotal (i.e. it does not depend on nuisance parameters as the t-test follows asymptotically a N(0,1) distribution), unlike the percentile bootstrap. Bias-corrected bootstrap – adjusts for bias in the bootstrap distribution. Accelerated bootstrap – The bias-corrected and accelerated (BCa) bootstrap, by Efron (1987), adjusts for both bias and skewness in the bootstrap distribution. This approach is accurate in a wide variety of settings, has reasonable computation requirements, and produces reasonably narrow intervals. Calculate the test statistic t = \frac{\bar{x}-\bar{y}}{\sqrt{\sigma_x^2/n + \sigma_y^2/m}} Create two new data sets whose values are x_i' = x_i - \bar{x} + \bar{z} and y_i' = y_i - \bar{y} + \bar{z}, where \bar{z} is the mean of the combined sample. Draw a random sample ( x_i^* ) of size n with replacement from x_i' and another random sample ( y_i^* ) of size m with replacement from y_i' . Calculate the test statistic t^* = \frac{\bar{x^*}-\bar{y^*}}{\sqrt{\sigma_x^{*2}/n + \sigma_y^{*2}/m}} Repeat 3 and 4 B times (e.g. B=1000 ) to collect B values of the test statistic. Estimate the p-value as p = \frac{\sum_{i=1}^B I\{t_i^* \geq t\}}{B} where I\{\text{condition}\} = 1 when condition is true and 0 otherwise. In situations where an obvious statistic can be devised to measure a required characteristic using only a small number, r, of data items, a corresponding statistic based on the entire sample can be formulated. Given an r-sample statistic, one can create an n-sample statistic by something similar to bootstrapping (taking the average of the statistic over all subsamples of size r). This procedure is known to have certain good properties and the result is a U-statistic. The sample mean and sample variance are of this form, for r = 1 and r = 2. This paragraph summarizes more complete descriptions of stochastic convergence in van der Vaart and Wellner and Kosorok. The bootstrap defines a stochastic process, a collection of random variables indexed by some set T , where T is typically the real line ( \mathbb{R} ) or a family of functions. Processes of interest are those with bounded sample paths, i.e., sample paths in L-infinity ( \ell^\infty(T) ), the set of all uniformly bounded functions from T to \mathbb{R} . When equipped with the uniform distance, \ell^\infty(T) is a metric space, and when T = \mathbb{R} , two subspaces of \ell^\infty(T) are of particular interest, C[0,1] , the space of all continuous functions from T to the unit interval [0,1], and D[0,1] , the space of all cadlag functions from T to [0,1]. This is because C[0,1] contains the distribution functions for all continuous random variables, and D[0,1] contains the distribution functions for all random variables. Statements about the consistency of the bootstrap are statements about the convergence of the sample paths of the bootstrap process as random elements of the metric space \ell^\infty(T) or some subspace thereof, especially C[0,1] or D[0,1] . Horowitz in a recent review defines consistency as: the bootstrap estimator G_n(\cdot, F_n) is consistent [for a statistic T_n ] if, for each F_0 , \sup_\tau |G_n(\tau, F_n) - G_\infty(\tau, F_0)| converges in probability to 0 as n \to \infty , where F_n is the empirical distribution of the original sample, F_0 is the true but unknown distribution of the statistic, G_\infty(\tau, F_0) is the asymptotic distribution function of T_n , and \tau is the indexing variable in the distribution function, i.e., P(T_n \leq \tau) = G_n(\tau, F_0) . This is sometimes more specifically called consistency relative to the Kolmogorov-Smirnov distance. Horowitz goes on to recommend using a theorem from Mammen that provides easier to check necessary and sufficient conditions for consistency for statistics of a certain common form. In particular, let \{X_i : i=1, \ldots, n\} be the random sample. If T_n = \frac{\sum_{i=1}^n g_n(X_i) - t_n}{\sigma_n} for a sequence of numbers t_n and \sigma_n , then the bootstrap estimate of the cumulative distribution function estimates the empirical cumulative distribution function if and only if T_n converges in distribution to the standard normal distribution. Specifically, let us consider X_{n1}, \ldots, X_{nn} independent identically distributed random variables with \mathbb{E}[X_{n1}] = \mu and \text{Var}[X_{n1}] = \sigma^2 for each n \ge 1 . Let \bar{X}_n = n^{-1}(X_{n1} + \cdots + X_{nn}) . In addition, for each n \ge 1 , conditional on X_{n1}, \ldots, X_{nn} , let X^*_{n1}, \ldots, X^*_{nn} be independent random variables with distribution equal to the empirical distribution of X_{n1}, \ldots, X_{nn} . This is the sequence of bootstrap samples. Then it can be shown that \sup_{\tau \in \mathbb{R}} \left | P^* \left(\frac{\sqrt{n} (\bar{X}^*_n - \bar{X}_n)}{\hat{\sigma}_n} \le \tau \right) - P \left(\frac{\sqrt{n} (\bar{X}_n - \mu)}{\sigma} \le \tau \right) \right | \to 0 \text{ in probability as } n \to \infty, where P^* represents probability conditional on X_{n1}, \ldots, X_{nn} , n \ge 1 , \bar{X}^*_n = n^{-1}(X^*_{n1} + \cdots + X^*_{nn}) , and \hat{\sigma}_n^2 = n^{-1} \sum_{i=1}^{n}(X_{ni} - \bar{X}_n)^2 . To see this, note that (X_{ni}^* - \bar X_n)/\sqrt n\hat{\sigma}_n satisfies the Lindeberg condition, so the CLT holds. The Glivenko–Cantelli theorem provides theoretical background for the bootstrap method.
Cite this
"Bootstrapping (statistics)". 1789731580. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375548394 JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy