- Machine Learning Quick Reference
- Rahul Kumar
- 277字
- 2021-08-20 10:05:07
0.632 rule in bootstrapping
Before we get into the 0.632 rule of bootstrapping, we need to understand what bootstrapping is. Bootstrapping is the process wherein random sampling is performed with a replacement from a population that's comprised of n observations. In this scenario, a sample can have duplicate observations. For example, if the population is (2,3,4,5,6) and we are trying to draw two random samples of size 4 with replacement, then sample 1 will be (2,3,3,6) and sample 2 will be (4,4,6,2).
Now, let's delve into the 0.632 rule.
We have already seen that the estimate of the training error while using a prediction is 1/n ∑L(yi,y-hat). This is nothing but the loss function:

Cross-validation is a way to estimate the expected output of a sample error:

However, in the case of k-fold cross-validation, it is as follows:

Here, the training data is X=(x1,x2.....,xn) and we take bootstrap samples from this set (z1,.....,zb) where each zi is a set of n samples.
In this scenario, the following is our out-of-sample error:

Here, fb(xi) is the predicted value at xi from the model that's been fit to the bootstrap dataset.
Unfortunately, this is not a particularly good estimator because bootstrap samples that have been used to produce fb(xi) may have contained xi. OOSE solves the overfitting problem, but is still biased. This bias is due to non-distinct observations in the bootstrap samples that result from sampling with replacement. The average number of distinct observations in each sample is about 0.632n. To solve the bias problem, Efron and Tibshirani proposed the 0.632 estimator:

- 基于C語言的程序設(shè)計
- 虛擬儀器設(shè)計測控應(yīng)用典型實例
- 工業(yè)機(jī)器人產(chǎn)品應(yīng)用實戰(zhàn)
- PHP開發(fā)手冊
- 中國戰(zhàn)略性新興產(chǎn)業(yè)研究與發(fā)展·智能制造
- 網(wǎng)絡(luò)安全管理實踐
- Windows Server 2008 R2活動目錄內(nèi)幕
- 電子設(shè)備及系統(tǒng)人機(jī)工程設(shè)計(第2版)
- 機(jī)床電氣控制與PLC
- Data Analysis with R(Second Edition)
- 穿越計算機(jī)的迷霧
- 實戰(zhàn)Windows Azure
- Moodle 2.0 Course Conversion(Second Edition)
- Windows 7來了
- 大數(shù)據(jù)時代的調(diào)查師