Matlab_normpdf

>> x=normrnd(15,5,1000,1);
>> hist(x)
>> x2=rand(1000,1);
>> hist(x2,50)
>> hist(x,50)
>> y=normrnd(15,1,1000,1);
>> figure;hist(y,50)
>> x=0:30;
>> pdf=normpdf(x,15,5);

>> plot(x,pdf,'o')
>> normcdf(10,15,5)

ans =

0.1587

>> normcdf(20,15,5)-normcdf(8,15,5)

ans =

0.7606

load NormQuery

normplot(xnq)

[h,p]=lillietest(xnq)

norminv(1/4/length(xnq),mu,sigma)

  

  

posted @ 2022-10-21 18:22  海边儿写代码的孩子  阅读(184)  评论(0)    收藏  举报