How to use norminv?

22 ビュー (過去 30 日間)
Annie Dor
Annie Dor 2019 年 3 月 23 日
コメント済み: Walter Roberson 2019 年 3 月 24 日
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.

回答 (1 件)

Walter Roberson
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 件のコメント
Annie Dor
Annie Dor 2019 年 3 月 24 日
Thank you, Walter. I just tried a number of combinations using norminv but none seems to be working. I get errors "Maximum variable size allowed for this program is exceeded" etc. Could you please tell me which of the following would be used for solving this (I have taken these from online norminv documentation:
x = norminv(p)
x = norminv(p,mu)
x = norminv(p,mu,sigma)
Thank you
Walter Roberson
Walter Roberson 2019 年 3 月 24 日
norminv((1-Pz)/2)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMathematics についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by