Why Rare-Population Planning Needs Two Counts
A population can be biologically important yet appear in only a small fraction of cells. Planning then has two linked questions: how many usable cells should be obtained from each donor, and how many donors should be included? A large total cell count does not by itself answer either question. If most cells come from a few donors, the data may contain many cells but little chance of observing the population in several independent donors.
The key complication is that prevalence may differ among donors. A population with an average prevalence of 0.5% might be near that level in every donor, or it might be common in some donors and nearly absent in others. Those situations have the same average prevalence but different probabilities of detection. The calculations below concern observing a population, not the power of a later test for a condition effect.
This model treats the sampled cells from a donor as draws from that donor's cell population. It assumes the \(m\) cells are sampled without strong cell-level dependence, the target population can be identified with adequate accuracy, and donors are independent draws from the donor population relevant to the study. If cell capture or classification is imperfect, the prevalence used for planning should reflect the probability that a target cell is both captured and recognized, or that loss should be represented explicitly.
Cells per Donor When Prevalence Is Fixed
First suppose every donor has the same known prevalence \(p\). Then \(K_i\sim\operatorname{Binomial}(m,p)\), and the probability of observing no target cells in a donor is \((1-p)^m\). Therefore, the probability of at least one detection in that donor is \(1-(1-p)^m\). To require a detection probability of at least \(1-\alpha\), choose the smallest integer \(m\) satisfying the resulting inequality.
Both logarithms in the ratio are negative, so the ratio is positive. The integer requirement is obtained by rounding the bound upward. This is a per-donor detection target: it does not guarantee detection in every donor, nor does it guarantee a specified total number of target cells.
Worked Example: Cells Needed for a 95% Per-Donor Detection Probability
Suppose the hypothetical target prevalence is \(p=0.002\), or 0.2%, in every donor. How many usable cells per donor give at least a 95% chance of observing one or more target cells?
Set \(\alpha=0.05\). The condition is \(1-(1-0.002)^m\ge 0.95\), equivalently \(0.998^m\le 0.05\). Taking logarithms gives
The smallest qualifying integer is \(m=1497\) usable cells per donor. At this value, \(0.998^{1497}\approx 0.04994\), so the detection probability is approximately \(1-0.04994=0.9501\). At \(m=1496\), it is approximately \(1-0.05004=0.9500\), slightly below the target. This calculation assumes the prevalence is the same in all donors and that the usable-cell count is actually achieved.
Allowing Prevalence to Vary Across Donors
When donor prevalences vary, use a distribution for \(P_i\), rather than substituting only its mean into the fixed-prevalence formula. A convenient model is \(P_i\sim\operatorname{Beta}(a,b)\), independently across donors. Its mean is \(\mu=a/(a+b)\). The parameters \(a\) and \(b\) control the spread as well as the mean; knowing \(\mu\) alone is not enough to determine detection reliability.
A simpler alternative for transparent planning is to specify a discrete mixture of plausible donor prevalences. If prevalence is \(p_j\) with probability \(w_j\), where the weights sum to one, then \(q_m=\sum_j w_j[1-(1-p_j)^m]\). This explicitly describes the donor variation being assumed and can be useful when pilot information suggests distinct prevalence levels.
The effect of variation has a useful justification. For \(m\ge 2\), the function \(f(p)=(1-p)^m\) is convex on \(0\le p\le 1\), since \(f''(p)=m(m-1)(1-p)^{m-2}\ge 0\). Jensen's inequality therefore gives \(\operatorname{E}[(1-P_i)^m]\ge (1-\operatorname{E}[P_i])^m\). Consequently, at a fixed mean prevalence, variation increases the average probability of a zero-cell donor and reduces the average detection probability compared with assuming every donor has the mean prevalence. This result concerns detection in a donor; it does not say that variation reduces the expected total number of target cells.
Worked Example: Comparing Variable and Constant Prevalence
Consider a hypothetical population in which half the donors have prevalence \(0.001\) and half have prevalence \(0.009\). The mean prevalence is \((0.001+0.009)/2=0.005\), or 0.5%. Suppose \(m=500\) usable cells are sampled per donor.
For the lower-prevalence donors, the detection probability is \(1-0.999^{500}\approx 1-0.6064=0.3936\). For the higher-prevalence donors, it is \(1-0.991^{500}\approx 1-0.01089=0.9891\). Averaging over the two equally likely donor types gives
If instead every donor were assigned the mean prevalence \(0.005\), the calculation would be \(1-0.995^{500}\approx 0.9184\). Thus, under the stated mixture, the chance of detecting at least one target cell in a randomly selected donor is about 69.1%, not 91.8%. The mean prevalence alone would substantially overstate per-donor detection reliability.
Choosing the Number of Donors
Once the per-donor detection probability \(q_m\) is specified, the donor-level planning calculation is straightforward if donors are independent and share that probability. Let \(R\) be the number of donors in which at least one target cell is observed. Then \(R\sim\operatorname{Binomial}(D,q_m)\). A study can choose \(D\) to make the probability of detecting the population in at least \(r\) donors exceed a target probability.
For a beta prevalence model, this formula applies after integrating over the prevalence distribution to obtain \(q_m\), provided donor prevalences are independent and identically distributed. If donor groups have different prevalence distributions, calculate their detection probabilities separately; a single binomial model with one common \(q_m\) may not be appropriate.
Worked Example: Donors Needed for Detection in at Least Four Donors
Continue the hypothetical two-prevalence mixture, with \(m=500\) cells per donor and \(q_m\approx0.6914\). Find the smallest \(D\) giving at least a 95% probability of detecting the population in four or more donors.
For \(D=8\), the probability of fewer than four detected donors is
Therefore \(P(R\ge4)\approx 1-0.0649=0.9351\), below 95%. For \(D=9\), the corresponding calculation is
Thus, under this model and allocation, nine donors are the smallest number meeting the 95% target. Each contributes 500 usable cells, for 4,500 usable cells in total. This total is not a substitute for the donor-level condition: concentrating those same cells in fewer donors would change the probability of seeing the population in at least four donors.
Expected Counts, Diagnostics, and Alternatives
With \(m\) cells per donor and mean prevalence \(\mu=\operatorname{E}[P_i]\), the expected total number of observed target cells across \(D\) donors is \(Dm\mu\). This follows because \(\operatorname{E}[K_i]=m\operatorname{E}[P_i]=m\mu\). But this expected count does not determine the probability of meeting a practical target, such as detecting at least one cell in several donors or obtaining at least a specified total count. For those targets, use the relevant count distribution or simulate the complete donor-and-cell sampling process.
A Poisson approximation can simplify the fixed-prevalence calculation when \(p\) is small and \(m\) is large: \(P(K_i=0)=(1-p)^m\approx e^{-mp}\), so \(q_m\approx1-e^{-mp}\). With variable prevalence, the corresponding approximation averages \(e^{-mP_i}\) over donors; it is not generally \(1-e^{-m\mu}\). For a required total number of cells, a beta-binomial or simulation-based calculation can account for prevalence heterogeneity and the variation in counts among donors.
Useful diagnostics and planning checks include the following:
- Compare the assumed prevalence distribution with pilot or prior donor-level data. A mean without a measure of between-donor spread cannot establish reliable donor detection.
- Check that \(m\) means usable cells per donor, not merely cells loaded, sequenced, or retained before quality control. If usable yield varies, model that variation or plan for a conservative yield.
- Examine whether the rare population is consistently identifiable. Low sensitivity lowers effective detection, while false-positive classifications can make apparent detection unreliable.
- Check independence and representativeness assumptions. Related donors, clustered recruitment, or a study population that differs from the target population can invalidate the simple donor-binomial calculation.
- Report the target explicitly: probability of at least one detected cell per donor, number of detected donors, or total number of cells. These are different design goals.
The homogeneous binomial model is the simplest alternative and is adequate when prevalence is genuinely similar across donors or when a conservative design has been checked against plausible heterogeneity. The beta-binomial model represents continuous donor variation with a compact two-parameter distribution; a discrete mixture represents specified scenarios directly. Simulation is more flexible when cell yields, prevalence, classification sensitivity, or donor-specific features vary together, but it depends on the accuracy of the simulated assumptions. No model can compensate for an unrepresentative pilot or an incorrectly defined target population.
Check Your Understanding
Try each question, then compare your reasoning with the solutions below.
- At fixed prevalence \(p=0.01\), write the probability of detecting at least one target cell in \(m\) cells from one donor.
- Why can two donor populations with the same mean prevalence have different per-donor detection probabilities?
- If a donor's detection probability is \(q_m\), what distribution describes the number of detected donors among \(D\) independent donors?
- What is the expected total target-cell count for \(D\) donors, \(m\) cells per donor, and mean prevalence \(\mu\)? Why does it not by itself establish reliable detection?
Solutions. (1) The probability is \(1-(1-0.01)^m=1-0.99^m\), under independent cell sampling at fixed prevalence. (2) Detection depends on the full prevalence distribution through \(\operatorname{E}[(1-P_i)^m]\), not only on \(\operatorname{E}[P_i]\); heterogeneity increases the zero-cell probability for \(m\ge2\). (3) The detected-donor count is \(R\sim\operatorname{Binomial}(D,q_m)\), assuming independent donors with a common detection probability. (4) The expectation is \(Dm\mu\). It is an average count, not the probability of reaching a chosen detection target; that probability requires the relevant sampling distribution.