1. Learn
  2. /
  3. Courses
  4. /
  5. Sampling in R

Exercise

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.

Instructions 1/2

undefined XP
    1
    2

Generate a 95% confidence interval using the quantile method.

  • Summarize to get the 0.025 quantile as lower, and the 0.975 quantile as upper.