www.gusucode.com > stats 源码程序 matlab案例代码 > stats/EstimateTheDensityOfBootstrappedStatisticExample.m
%% Estimate the Density of Bootstrapped Statistic % This example shows how to estimate the kernel density of bootstrapped % means. % Copyright 2015 The MathWorks, Inc. %% % Compute a sample of 100 bootstrapped means of random samples taken from % the vector Y. rng default; % For reproducibility y = exprnd(5,100,1); m = bootstrp(100,@mean,y); %% % Plot an estimate of the density of these bootstrapped means. figure; [fi,xi] = ksdensity(m); plot(xi,fi);