Normal distribution
The normal distribution is a ubiquitously useful distribution that turns up all over the place in statistics. You're probably already familiar but let's make sure you are:
Pick a mean value (start somewhere between and ) and a variance (which must be positive - for example, is a good starting choice). Then plot the density of the normal distribution over the continuous range .
Note. the normal distribution density is given by dnorm() in R, but you have to specify the standard deviation (i.e. the square root of the variance) instead of the variance:
dnorm( x, mean = mu, sd = sqrt(v) )
How does the distribution differ as you vary and ?
The normal distributino density formula is:
Can you implement that directly, without dnorm()?
Cumulative desnity
Just like binom, the normal distribution has a cumulative version called pnorm(). Plot that now.
The cumulative function is the result of adding up (integrating) the values in the normal distribution density from left to right.
The graph of pnorm() goes up to on the right - why?
Quantile function
The quantiles tell you where in the range of the mass of the distribution is located.
It is computed by qnorm().
For example, let's find the range on the left of a standard normal where at least 10% of the mass is:
qnorm(
p = 0.1,
mean = 10,
sd = 1
)
and the range on the right:
qnorm(
p = 0.1,
mean = 10,
sd = 1,
lower.tail = FALSE
)
Question. Where is 95% of the mass?