Shape of normal distribution
All normal distributions are symmetric and have a bell-shaped density curve with a single peak.
The normal distribution takes two parameters: the mean (\(\mu\)) and the variance (\(\sigma^2\)). The notation of the normal distribution is \(N(\mu, \sigma^2)\). The mean indicates where the peak of the density curve occurs, and the variance indicates the spread of the bell curve.
The standard deviation (\(\sigma\)) is the square root of variance (\(\sigma^2\)). The rnorm()
function takes the standard deviation (sd
) as an argument.
We will review descriptive statistics in the next chapter.
In this exercise, you will generate samples from three different normal distributions and visualize their distributions.
The libraries tidyr
and ggplot2
have been preloaded for this exercise.
This exercise is part of the course
Practicing Statistics Interview Questions in R
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
