You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Name of QuantLet : MSMcdfnormalPublished in : MSMDescription : 'Simulates data from normal distribution and plots its cumulative density function(cdf).'Keywords : cdf, standard-normal, distribution, random, plotSee also : MSMpdfnormalAuthor : Xiu Xu, Alla Petukhina, Shi ChenSubmitted : Fri, October 16 2015 by Shi ChenExample : A CDF plot of standard normal distribution.
R Code:
# clear history
rm(list= ls(all=TRUE))
graphics.off()
# Simulates data and plot the CDF
plot(seq(-4, 4, 0.2), pnorm(seq(-4, 4, 0.2), 0, 1), col="blue", type="l", lwd=2.5,
ylab="CDF", xlab="X")
abline(v=0)