www.gusucode.com > stats 源码程序 matlab案例代码 > stats/VarianceofaFittedDistributionExample.m
%% Variance of a Fitted Distribution %% % 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 variance of the fitted distribution. v = var(pd) %% % For a normal distribution, the variance is equal to the square of the % parameter |sigma|.