# Probability that profiled cells hold enough cells of a rare type

singlecell-sampling-probability is a method that Drybench's tools and apps run. This page gives each version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, what was not checked, and what changed.

## What this page can and cannot show

Its calculation passed Drybench's full check: source read, a separately written implementation, edge and refusal cases, and an outside comparison where one exists. It stays below the top level because no measured prediction error is available for the model.

**Level: Calculation fully checked; model error not measured; Binomial sampling model; independent, unbiased capture assumed; no measured prediction error. Reference kind: a reference program this project wrote itself, mpmath (arithmetic: mpf powers and products), 1.3.0, direct summation of the binomial terms in mpmath 1.3.0 at 400 decimal digits; no special function; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13, mpmath), 2026-11-14, mpmath sums at 100 to 120 significant digits, rounded once to a double; not an outside program.**

Tested by this project, not independently reviewed. Every method on this page has its equations, constants, sources and cases on record, and its cases agree with a separately written implementation within the stated tolerance; no measured prediction error is available for its model. A reader can follow each method's worked example by hand; that shows the stated method gives the stated answer for one set of inputs, and does not test the code. The other cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed them.

[Every method](https://www.drybench.com/methods/m) · [What the levels mean](https://www.drybench.com/methods/levels) · [How cases are checked](https://www.drybench.com/methods/verify)

## Versions

- [Version 1.0.1](https://www.drybench.com/methods/m/singlecell-sampling-probability/1.0.1) · `singlecell-sampling-probability@1.0.1` · Calculation fully checked; model error not measured

## Tools that use it

- [`singlecell_sampling_probability`](https://www.drybench.com/methods/tools/singlecell-sampling-probability)
