시작하기무료로 시작하기

표본추출 평균과 부트스트랩 평균 비교하기

계산을 쉽게 하기 위해, 이전 연습 문제에서 계산했던 것과 유사한 분포를 샘플 크기 5000으로 다시 제공했습니다.

spotify_population, spotify_sample, sampling_distribution, bootstrap_distribution을 사용할 수 있고, pandasnumpy는 일반적인 별칭으로 불러와져 있습니다.

이 연습은 강의의 일부입니다

Python으로 살펴보는 표본추출(Sampling)

강의 보기

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Calculate the 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 = ____

# Print the means
print([pop_mean, samp_mean, samp_distn_mean, boot_distn_mean])
코드 편집 및 실행