표본추출과 부트스트랩의 표준편차 비교
표본분포와 부트스트랩 분포로 모평균을 추정하는 방법을 살펴본 것과 같은 방식으로, 이제는 모수의 변동성, 더 정확히는 모집단의 표준편차를 어떻게 추정할 수 있는지 살펴보겠습니다.
spotify_population, spotify_sample, sampling_distribution, bootstrap_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)