เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

Compare sampling and bootstrap means

To make calculation easier, the distributions from the previous exercise have been included in tibbles. mean_popularity_2000_samp is in the sample_mean column of sampling_distribution, and mean_popularity_2000_boot is in the resample_mean column of bootstrap_distribution.

spotify_population, spotify_sample, sampling_distribution, and bootstrap_distribution are available; dplyr is loaded.

แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร

Sampling in R

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ

ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์

# Calculate the true population mean popularity
pop_mean <- ___


# Calculate the original sample mean popularity
samp_mean <- ___


# Calculate the sampling dist'n estimate of mean popularity
samp_distn_mean <- ___


# Calculate the bootstrap dist'n estimate of mean popularity
boot_distn_mean <- ___


# See the results
c(pop = pop_mean, samp = samp_mean, sam_distn = samp_distn_mean, boot_distn = boot_distn_mean)
แก้ไขและรันโค้ด