(not so good) Estimations of the mean and sd
Using the data gender
again and assuming that the variable Weight
follows a Gaussian distribution, we can estimate the mean and the standard deviation following the previous estimation procedure. The idea is to realize that this procedure does not always work because the data can be formed by more than one distribution.
This exercise is part of the course
Mixture Models in R
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Estimation of the mean
___ <- gender %>%
pull(___) %>%
___()
mean_estimate
# Estimation of the standard deviation
sd_estimate <- ___ %>%
pull(___) %>%
___()
sd_estimate