Skip to content

Latest commit

 

History

History
 
 

MSMpdfnormal

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Visit QuantNet

Visit QuantNet MSMpdfnormal Visit QuantNet 2.0

Name of QuantLet : MSMpdfnormal

Published in : MSM

Description : 'Simulates data from the standard normal distribution N(0,1) and then plots the PDF
function.'

Keywords : pdf, normal-distribution, normal, standard, plot

See also : MSMcdfnormal, MSMpdfbinomial

Author : Xiu Xu

Submitted : Fri, October 16 2015 by Shi Chen

Picture1

R Code:

# clear history
rm(list = ls(all = TRUE))
graphics.off()

# Plot the PDF
plot(seq(-4, 4, 0.2), dnorm(seq(-4, 4, 0.2), 0, 1), col = "blue", type = "l", lwd = 2.5, 
    ylab = "PDF", xlab = "X")
abline(v = 0)