美文网首页
Bootstraping

Bootstraping

作者: Thinkando | 来源:发表于2018-11-21 16:43 被阅读255次

Bootstrap简介

Bootstrap方法是非常有用的一种统计学上的估计方法,是斯坦福统计系的教授Bradley Efron(我曾有幸去教授办公室约谈了一次)在总结、归纳前人研究成果的基础上提出一种新的非参数统计方法。Bootstrap是一类非参数Monte Carlo方法,其实质是对观测信息进行再抽样,进而对总体的分布特性进行统计推断。

因为该方法充分利用了给定的观测信息,不需要模型其他的假设和增加新的观测,并且具有稳健性和效率高的特点。1980年代以来,随着计算机技术被引入到统计实践中来,此方法越来越受欢迎,在机器学习领域应用也很广泛。

首先,Bootstrap通过重抽样,可以避免了Cross-Validation造成的样本减少问题,其次,Bootstrap也可以用于创造数据的随机性。比如,我们所熟知的随机森林算法第一步就是从原始训练数据集中,应用bootstrap方法有放回地随机抽取k个新的自助样本集,并由此构建k棵分类回归树。

具体讲解

image.png

Bootstrap步骤:

image.png
image
image.png
image.png

python 实现

%matplotlib inline
import scipy as sp
import matplotlib.pyplot as plt
from scipy import stats
import scikits.bootstrap as bootstrap
# Generate a non-normally distributed datasample
data = stats.poisson.rvs(2, size=1000)

# Show the data
plt.plot(data, '.')
plt.title('Non-normally distributed dataset: Press any key to continue')
image.png
# Calculate the bootstrap
CIs = bootstrap.ci(data=data, statfunction=sp.mean)

# Print the data: the "*" turns the array CIs into a list
print('The conficence intervals for the mean are: {0} - {1}'.format(*CIs))

The conficence intervals for the mean are: 1.816 - 1.99

例题

image.png
image.png
image.png

相关文章

  • Bootstraping

    Bootstrap简介 Bootstrap方法是非常有用的一种统计学上的估计方法,是斯坦福统计系的教授Bradle...

  • 使用Spring 5创建WEB应用

    原文地址: http://www.baeldung.com/bootstraping-a-web-applicat...

  • 集成学习各方法的理解

    统计方法bootstraping(自助法)源自“pull up by your own boot straps”有...

  • 总结Bootstraping、Bagging和Boosting

    Bagging和Boosting都是将已有的分类或回归算法通过一定方式组合起来,形成一个性能更加强大的分类器,更准...

  • (译)Bootstrapping

    这章涵盖以下内容: Bootstrapping客户端和服务端 从Channel内bootstraping客户端 增...

  • 决策树与随机森林(二)

    转自小象学院 邹博 学习笔记 Bootstraping 是一种有放回的抽样方法 Bagging的策略 bootst...

  • 15. 随机森林

    Bootstraping: 有放回的采样 Bagging: 无放回采样n个样本一起建立分类器 随机森林 随机森林:...

  • bootstraping、bagging、boosting三个算

    Bagging和Boosting都是将已有的分类或回归算法通过一定方式组合起来,形成一个性能更加强大的分类器,更准...

网友评论

      本文标题:Bootstraping

      本文链接:https://www.haomeiwen.com/subject/lgpcqqtx.html