開始使用免費開始

比較抽樣與自助法的標準差

就像先前用抽樣分配與自助法分配來估計母體平均數一樣,現在你要看看它們如何用來估計變異,或更精確地說,是估計母體的標準差。

已提供 spotify_populationspotify_samplesampling_distributionbootstrap_distribution;已載入 dplyr

本練習屬於課程

R 的抽樣

檢視課程

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

# Calculate the true population std dev popularity
pop_sd <- ___


# Calculate the true sample std dev popularity
samp_sd <- ___


# Calculate the sampling dist'n estimate of std dev popularity
samp_distn_sd <- ___


# Calculate the bootstrap dist'n estimate of std dev popularity
boot_distn_sd <- ___


# See the results
c(pop = pop_sd, samp = samp_sd, sam_distn = samp_distn_sd, boot_distn = boot_distn_sd)
編輯並執行程式碼