⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smoothed bootstrap.htm

📁 matlab bootstrap程序设计方法
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0066)http://www-stat.stanford.edu/~susan/courses/b494/index/node56.html -->
<!--Converted with LaTeX2HTML 2K.1beta (1.57)original version by:  Nikos Drakos, CBLU, University of Leeds* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from:  Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>Smoothed Bootstrap</TITLE>
<META content="Smoothed Bootstrap" name=description>
<META content=t name=keywords>
<META content=document name=resource-type>
<META content=global name=distribution>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<META http-equiv=Content-Style-Type content=text/css><LINK 
href="Smoothed Bootstrap.files/t.css" rel=STYLESHEET><LINK href="node57.html" 
rel=next><LINK href="node55.html" rel=previous><LINK href="node52.html" 
rel=up><LINK href="node57.html" rel=next></HEAD>
<BODY><!--Navigation Panel--><A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node57.html" 
name=tex2html935><IMG height=24 alt=next src="Smoothed Bootstrap.files/next.png" 
width=37 align=bottom border=0></A> <A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node52.html" 
name=tex2html931><IMG height=24 alt=up src="Smoothed Bootstrap.files/up.png" 
width=26 align=bottom border=0></A> <A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node55.html" 
name=tex2html925><IMG height=24 alt=previous 
src="Smoothed Bootstrap.files/prev.png" width=63 align=bottom border=0></A> <A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node124.html" 
name=tex2html933><IMG height=24 alt=index 
src="Smoothed Bootstrap.files/index.png" width=43 align=bottom border=0></A> 
<BR><B>Next:</B> <A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node57.html" 
name=tex2html936>Different Uses for bootstrapping</A> <B>Up:</B> <A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node52.html" 
name=tex2html932>The bootstrap : the</A> <B>Previous:</B> <A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node55.html" 
name=tex2html926>Parametric bootstrap</A> &nbsp; <B><A 
href="http://www-stat.stanford.edu/~susan/courses/b494/index/node124.html" 
name=tex2html934>Index</A></B> <BR><BR><!--End of Navigation Panel-->
<H2><A name=SECTION00314000000000000000>Smoothed Bootstrap</A> </H2>An 
intermediate solution between parametric and nonparametric bootsrapping is the 
smoothed bootstrap. 
<P>Instead of resampling directly from the empirical distribution <IMG height=45 
alt=$F_n$ src="Smoothed Bootstrap.files/img309.png" width=26 align=middle 
border=0>, one smoothes it out first then the smoothed version is used to 
generate the new samples. 
<P>If a kernel smoother is used, for instance a Gaussian kernel, then generation 
from the smoothed distribution <IMG height=31 alt=$\widehat{F}_n$ 
src="Smoothed Bootstrap.files/img310.png" width=390 align=middle border=0> is 
easy since it is sufficient to resample with replacement and then perturb the 
sampled point by adding a small gaussian random variable (S<SMALL>ILVERMAN 
</SMALL>B.W. &amp; Y<SMALL>OUNG </SMALL>G.A.) 
<P><PRE>#Smoothed Bootstrap

"boots"_function(x,nboot=100,fun,kernel="norm",h=1)
{
#Function doing a smoothed bootstrap with either
# a normal or an epaneichikov kernel
#h is the window width (can be tricky to choose)

n_nrow(as.matrix(x))
theta_rep(0,nboot)
for (k in (1:nboot))
{
if(kernel=="norm") eps_rnorm(n,mean=0,sd=1)
else eps_epan(n)
xb_x[sample(n,n,T)]+eps*h
theta[k]_fun(xb)
}
return(theta)
}


"epan"_function(n)
{
eps_rep(0,n)
v_matrix(runif(3*n,-1,1),nrow=n)
for(i in(1:n))
{
if ((abs(v[i,3])&gt;=abs(v[i,2])) &amp;&amp; 
(abs(v[i,3])&gt;=abs(v[i,1]))) 
                          eps[i]_v[i,2]
                     else eps[i]_v[i,3]
}
return(eps)
}
</PRE>
<P><BR>
<HR>

<ADDRESS>Susan Holmes 2002-01-12 </ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -