Rev 7081 | Blame | Last modification | View Log | Download | RSS feed
\name{Normal}\alias{dnorm}\alias{pnorm}\alias{qnorm}\alias{rnorm}\title{The Normal Distribution}\description{Density, distribution function, quantile function and randomgeneration for the normal distribution with mean equal to \code{mean}and standard deviation equal to \code{sd}.}\usage{dnorm(x, mean=0, sd=1)pnorm(q, mean=0, sd=1)qnorm(p, mean=0, sd=1)rnorm(n, mean=0, sd=1)}\arguments{\item{x,q}{vector of quantiles.}\item{p}{vector of probabilities.}\item{n}{number of observations.}\item{mean}{vector of means.}\item{sd}{vector of standard deviations.}}\value{\code{dnorm} gives the density,\code{pnorm} gives the distribution function,\code{qnorm} gives the quantile function, and\code{rnorm} generates random deviates.}\details{If \code{mean} or \code{sd} are not specified they assume the defaultvalues of \code{0} and \code{1}, respectively.The normal distribution has density\deqn{f(x) =\frac{1}{\sqrt{2\pi}\sigma} e^{-(x-\mu)^2/2\sigma^2}}{f(x) = 1/(sqrt(2 pi) sigma) e^-((x - mu)^2/(2 sigma^2))}where \eqn{\mu}{mu} is the mean of the distribution and\eqn{\sigma}{sigma} the standard deviation.}\seealso{\code{\link{runif}} and \code{\link{.Random.seed}} about random numbergeneration, and \code{\link{dlnorm}} for the \emph{Log}normal distribution.}\examples{dnorm(0) == 1/ sqrt(2*pi)dnorm(1) == exp(-1/2)/ sqrt(2*pi)dnorm(1) == 1/ sqrt(2*pi*exp(1))}\keyword{distribution}