【Matlab】Bootstrap
来源:互联网 发布:大圣众娱牛牛源码 编辑:程序博客网 时间:2024/06/06 09:25
Bootstrap是一个很通用的工具,用来估计标准误差、置信区间和偏差。由Bradley Efron于1979年提出,用于计算任意估计的标准误差.意义:不靠外界力量,而靠自身提升自己的性能,翻译为自助/自举.
Bootstrap:利用计算机手段进行重采样。种基于数据的模拟(simulation)方法,用于统计推断。基本思想是:利用样本数据计算统计量和估计样本分布,而不对模型做任何假设(非参数bootstrap)
? Bootstrap有两种形式:非参数bootstrap和参数化的bootstrap,但基本思想都是模拟。
(1)matlab 中实施Bootstrap
Using the bootstrp function you can resample the lsat and gpa vectors as many times as you like and consider the variation in the resulting correlation coefficients.Here is an example.
rhohat = corr(lsat,gpa)
rhos1000 = bootstrp(1000,'corr',lsat,gpa);
(2)
It is often desirable to construct a confidence interval for a parameter estimate in statistical inferences. Using the bootci function, you can use bootstrapping to obtain a confidence interval. The confidence interval for the lsat and gpa data is computed as:
ci = bootci(5000,@corr,lsat,gpa)
ci =
0.3313
0.9427
(3)
[bootstat,bootsam] = bootstrp(...)
returns an n-by-nboot matrix of bootstrap indices, bootsam. Each column in bootsam contains indices of the values that were drawn from the original data sets to constitute the corresponding bootstrap sample. For example, if d1,... each contain 16 values, and nboot = 4, then bootsam is a 16-by-4 matrix. The first column contains the indices of the 16 values drawn from d1,..., for the first of the four bootstrap samples, the second column contains the indices for the second of the four bootstrap samples, and so on. (The bootstrap indices are the same for all input data sets.) To get the output samples bootsam without applying a function, set bootfun to empty ([]).
0 0
- 【Matlab】Bootstrap
- Bootstrap
- BootStrap
- Bootstrap
- bootstrap
- Bootstrap
- bootstrap$
- Bootstrap
- Bootstrap
- Bootstrap
- Bootstrap
- Bootstrap
- Bootstrap
- bootstrap
- bootstrap
- Bootstrap
- Bootstrap
- Bootstrap
- Python datetime 模块之timedelta
- 计算语言学之绪论
- 机器学习python,k近邻分类器,三维作图
- 微信安全中心:将处罚使用清理僵尸粉外挂用户
- CRF L-BFGS Line Search原理及代码分析
- 【Matlab】Bootstrap
- MySQL事务隔离级别详解
- MongoDB学习笔记—Linux下搭建MongoDB环境
- 并查集
- 邻接矩阵
- 三星掌门人李在镕首轮审判将于3月9日举行
- 析构函数
- 数据结构实验之链表五:单链表的拆分
- android-service