z is a random variable follow the standard normal distribution . i want calculate the probability p(z<-0.5271) and p(z>0.02) ?
    5 views (last 30 days)
  
       Show older comments
    
    mohammed elmenshawy
 on 28 Jan 2017
  
    
    
    
    
    Commented: Star Strider
      
      
 on 28 Jan 2017
            z is a random variable follow the standard normal distribution . i want calculate the probability p(z<-0.5271) and p(z>0.02) ?
0 Comments
Accepted Answer
  Star Strider
      
      
 on 28 Jan 2017
        Here you go:
P = @(z) erfc(-z/sqrt(2))/2;                  % Equivalent to ‘normcdf’
P1 = P(-0.5271)
P2 = 1 - P(0.02)
P1 =
         0.299062073372979
P2 =
         0.492021686283098
2 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
