如何用matlab求服从正态分布,置信度为0.95的置信区间?

2024-11-08 11:52:33
推荐回答(1个)
回答(1):

r=[6.0,5.7,5.8,6.5,7.0,6.3,5.6,6.1,5.0];
[mu,sigma,muci,sigmaci]=normfit(r,0.05)

mu =
6
sigma =
0.5745
muci =
5.5584
6.4416
sigmaci =
0.3880
1.1005

muci和sigmaci分别为mu和sigma的95%的置信区间