통계적 사고 사례 연구
Justin Bois
Lecturer, Caltech
"탐색적 데이터 분석이 모든 것을 담을 수는 없지만, 그 어떤 것도 기초 단계인 첫 번째 단계를 대체할 수는 없다."
--John Tukey

np.mean(nuclear_incident_times)
87.140350877192986

데이터를 재샘플링한 배열
# Resample nuclear_incident_times with replacement
bs_sample = np.random.choice(
nuclear_incident_times,
replace=True,
size=len(inter_times)
)




부트스트랩 복제본: 부트스트랩 표본에서 계산된 통계량
데이터셋에서 부트스트랩 복제본을 추출하는 함수
# Draw 10000 replicates of the mean from
# nuclear_incident_times
bs_reps = dcst.draw_bs_reps(
nuclear_incident_times, np.mean, size=10000
)

측정을 반복했을 때, 관측값의 p%가 p% 신뢰 구간 내에 포함됩니다
np.percentile(bs_reps, [2.5, 97.5])
array([ 73.31505848, 102.39181287])
통계적 사고 사례 연구