Use the kurt and skew functions to compare the shape of a Weibull and a normal distribution.
1. Define and plot the following distributions:
2. Compare the peak of the distributions by calculating the kurtosis of the distributions.
The bins of the histogram account for the slight deviation of the kurtosis of the normal distribution from zero. The kurtosis of the Weibull distribution indicates that it is slightly peaked compared to a normal distribution.
Population kurtosis can be estimated by the following sample kurtosis coefficient:
3. Compare the skew of the distributions.
The Weibull distribution tails off to the right.
Skewness in a population can be estimated by the following sample skewness coefficient: