P90StatisticsAdvancedImplement16 min
Implement a Bootstrap Confidence Interval for a Median
Implement a compact bootstrap interval for uncertainty around a sample median.
#implement#bootstrap#median
Scenario
A product team has a sample of delivery times and wants uncertainty around its median without assuming a normal distribution.
Problem statement
Implement a bootstrap percentile interval and explain what the result does and does not establish.
Your Task
- Sample with replacement repeatedly.
- Compute a median for each resample.
- Use empirical quantiles and state the interpretation.
Input
delivery_minutes = np.array([28, 31, 34, 35, 40, 44, 48])Related Concepts
BootstrapConfidence intervalsSampling uncertainty
Ready to count this problem?
Mark it complete when you have reasoned through the solution in your own words.