# Computing normal probabilities and quantiles. # Take a look at the help file help(Normal) # plot the normal density N(0,1) x <- seq(from=-5, to=5, length=500) plot(x, dnorm(x, mean=0, sd=1)) # plot the normal density N(1,4) x <- seq(from=-5, to=5, length=500) plot(x, dnorm(x, mean=1, sd=2)) # Find the normal quantiles. qnorm(0.975) # 97.5% pencentile pnorm(1.645) # Find the probability of Z <= 1.645 for Z ~ N(0,1).