(不太理想的)平均數與標準差估計
再次使用 gender 資料,並假設變數 Weight 服從高斯分配(Gaussian distribution),你可以依照前面的估計流程,估計平均數與標準差。重點在於理解:這個流程不一定總是有效,因為資料可能是由一個以上的分配所組成。
本練習屬於課程
R 中的混合模型
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Estimation of the mean
___ <- gender %>%
pull(___) %>%
___()
mean_estimate
# Estimation of the standard deviation
sd_estimate <- ___ %>%
pull(___) %>%
___()
sd_estimate