Hi,
Is there an equivalent of norminv for Matlab 2012? It doesn't seem to work in this version. I just need the inverse of the "basic" normal distribution (parameters 0 and 1).
Thanks!
EDIT: the statistical toolbox (and not Matlab 2012) seems to be responsible for this. The question still holds though, is there such a function outside this toolbox?

 채택된 답변

Roger Stafford
Roger Stafford 2013년 10월 2일

1 개 추천

You can use matlab's 'erfinv' function to calculate the equivalent of 'norminv' according to the formula:
norminv(p) = sqrt(2)*erfinv(2*p-1)

댓글 수: 2

Joseph Schmidt
Joseph Schmidt 2016년 6월 30일
How would you readjust this for a stan. dev. other than 1? Say a stan. dev. of .5 units.
Torsten
Torsten 2016년 7월 1일
f(p) = mu + sqrt(2)*sigma*erfinv(2*p-1)
is the inverse CDF of the general normal distribution N(mu,sigma^2).
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Martin
Martin 2013년 10월 2일

0 개 추천

Brilliant, thanks!

카테고리

도움말 센터File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

질문:

2013년 10월 2일

댓글:

2016년 7월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by