How to use norminv?
24 次查看(过去 30 天)
显示 更早的评论
Given Z ~ N(0,1), how can we calculate a value c such that P(-c<Z<c) = 0.685. How can we give the answer in two decimal places? I am new to MATLAB and still finding my feet here.
Thank you for your help.
0 个评论
回答(1 个)
Walter Roberson
2019-3-24
If P(-c<Z<c) is something, then assuming the mean is 0, you have a symmetric situation. If a certain probability Pz, is in the center, -c to +c, then the remaining probability, 1-Pz, must be evenly split between the two tails. So you need to find the c such that the probability from -inf to -c is (1-Pz)/2 . Which is something you can calculate with norminv()
2 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!