Stixbox Function qnorm - The normal inverse distribution function
Calling Sequence
- x = qnorm(p [,m,s])
Parameters
- p
: probability
- m
: mean (default value is 0)
- s
: standard deviation (default value is 1) (q,m,s can be scalar or matrix with common size)
- q
: real such that Prob(X<=q)=p where X is a normal variable with mean m and standard deviation s
Description
The normal inverse distribution function.
EXAMPLES
x = -5:0.1:5 ;
y = dnorm(x);
plot(x,y);
p1=0.7;
q1= qnorm(p1);
plot2d([q1;q1],[0;dnorm(q1)],1,"000")
xstring(-4,0.20,'P(X<'+string(q1)+')='+ string(p1));
See Also