Calculating confidence intervals
We can use the cumulative distribution function and its inverse to calculate confidence intervals in R. You'll do so with the Spotify data now.
แบบฝึกหัดนี้เป็นส่วนหนึ่งของหลักสูตร
Sampling in R
แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำ
ลองทำแบบฝึกหัดนี้โดยเติมโค้ดตัวอย่างนี้ให้สมบูรณ์
# Generate a 95% confidence interval using the quantile method
conf_int_quantile <- bootstrap_distribution %>%
___
# See the result
conf_int_quantile