Expected Distinct Stocks in a Bootstrap Resample of the Universe
Last updated: November 29, 2026
Quick Overview
You bootstrap a 3,000-stock universe by drawing 3,000 stocks uniformly with replacement to test a signal's robustness. What is the expected number of distinct stocks in a resample, and roughly how many draws would you need before every stock appears at least once?
Trexquant
November 29, 20260
0
0 solved
You bootstrap a 3,000-stock universe by drawing 3,000 stocks uniformly with replacement to test a signal's robustness. What is the expected number of distinct stocks in a resample, and roughly how many draws would you need before every stock appears at least once?
Quick probability questions open many quant research screens, and this one ties to resampling stocks to check that a signal is not driven by a few names. The interviewer checks indicator-variable linearity of expectation and a clean limit argument.
What the Interviewer Expects
- Defines an indicator per stock and uses linearity of expectation
- Derives n(1 - (1 - 1/n)^k) and the e^{-1} limit
- Gives the numeric answer near 1,897 (63.2%)
- Recognizes the second part as the coupon collector problem with n H_n
- Approximates H_n with ln n plus the Euler constant
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- What is the variance of the number of distinct stocks?
- How does this explain the out-of-bag fraction in bagging?
- If stocks are drawn proportional to market cap, does the expected count go up or down?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
n = 3000 stocks, k = 3000 independent uniform draws with replacement. Part one wants E[number of distinct stocks]; part two wants the expected number of draws to see all n....
Approach
Let if stock j appears at least once. Then and , no independence needed. For part two, split the wait into stages: after seeing i distinct stocks, ...