www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ParameterConfidenceIntervalsExample.m
%% Parameter Confidence Intervals %% % Load the sample data. Create a vector containing the first column of students’ % exam grade data. load examgrades x = grades(:,1); %% % Fit a normal distribution object to the data. pd = fitdist(x,'Normal') %% % Compute the 95% confidence interval for the distribution parameters. ci = paramci(pd) %% % Column 1 of |ci| contains the lower and upper 95% confidence interval % boundaries for the mu parameter, and column 2 contains the boundaries % for the sigma parameter.