www.gusucode.com > stats 源码程序 matlab案例代码 > stats/ChangeParameterConfidenceIntervalsExample.m
%% Change 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 99% confidence interval for the distribution parameters. ci = paramci(pd,'Alpha',.01) %% % Column 1 of |ci| contains the lower and upper 99% confidence interval % boundaries for the mu parameter, and column 2 contains the boundaries % for the sigma parameter.