Interview practice question
Bootstrapping confidence intervals efficiently
Data Analyst · Python and Pandas · Experienced
You need bootstrapped confidence intervals for a ratio metric across 50 segments, and a naive loop is too slow. How would you make it efficient?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Vectorise resampling with NumPy (index matrices).
- Resample at user level.
- Poisson bootstrap for streaming/large data.
- Parallelise across segments (joblib).
- Fix seed; check stability.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.