Active-cell frequency from a limiting dilution assay by the single-hit model, with its interval, version 1.1.1
limiting-dilution-frequency@1.1.1: this 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, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference; statsmodels 0.15.0 GLM on the estimate only; no outside check of the interval; score and SE our derivation. Reference kind: an outside program, CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); the source's own worked example, CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 80 digits: the score equation by bisection, z by the inverse error function, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 240 bits: the score equation and the one-sided bounds by bisection to 2^-200, z by the inverse error function, rounded once; not an outside program.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 1.1.1
Level: Checked against a reference; statsmodels 0.15.0 GLM on the estimate only; no outside check of the interval; score and SE our derivation. Reference kind: an outside program, CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); the source's own worked example, CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 80 digits: the score equation by bisection, z by the inverse error function, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 240 bits: the score equation and the one-sided bounds by bisection to 2^-200, z by the inverse error function, rounded once; not an outside program. limiting-dilution-frequency@1.1.1
Built, not hosted. Generated from a snapshot of the library's records taken on 2026-11-25, as committed on 2026-11-25. A later snapshot replaces this one, so these records and this page can change.
The active-cell fraction λ and frequency 1/λ by maximum likelihood under the single-hit model (a binomial GLM with complementary log-log link and log-dose offset, slope fixed at 1; Hu & Smyth 2009 §4.1), with cells as a Poisson dose or counted exactly (§4.2), the Wald interval on log λ, and exact one-sided bounds when no culture or every culture is positive (§4.5). Roots are found by bisection on α over [−60, 30] with at most 200 halvings; for every accepted input the bracket holds the root (the builder's proof, spot-checked by Drybench at the extremes), so the fit cannot fail to converge.
- How results are reported: none: full double precision
- Uncertainty: Wald on the GLM intercept, Hu & Smyth §4.1 and §4.2 (log λ for a Poisson dose, log(−log(1 − λ)) for counted cells); with no positive or no negative cultures, the exact one-sided bound of §4.5; its coverage is not checked
- Every reply through it says: Assumes the single-hit Poisson model: one active cell suffices for a positive culture. This tool does not test that assumption. When more than one note on an active fraction above one fires, the notes appear in this order: the estimate's, the upper end's, the lower end's.
- Iterates: bisection, at most 200 iterations, between α = −60 and α = 30
- Computes through this project's own routines: z = Φ⁻¹(1 − (1 − level)/2) for the Wald interval
- Reference, as its record states it: the frequencies Hu & Smyth print; statsmodels 0.15.0 GLM (binomial, complementary log-log link, offset log dose, intercept only) run offline, on the estimate of the active fraction only; and a second implementation in Python by a separate agent of the same model family. The interval and the one-sided bounds have no outside comparison
- Level confirmed by this project's ruling of 21 November 2026
What this page can and cannot show
What was checked
238 cases in 4 files, linked by this exact version.
Run through the tool at build against an outside program, CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); the source's own worked example, CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 80 digits: the score equation by bisection, z by the inverse error function, rounded once; not an outside program; a reference program this project wrote itself, second implementation (Python 3.13), 2026-11-14, mpmath 1.4.1 at 240 bits: the score equation and the one-sided bounds by bisection to 2^-200, z by the inverse error function, rounded once; not an outside program: 174 agree within the tolerance the file states, 64 refuse as the case expects, 0 differ, 0 were not run.
File 1, 21 cases
- Where the expected values came from: an outside program, CPython decimal at 60 digits, checked against statmod elda() CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29)
- Recorded on: 2026-11-11
- Reference: CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); licence PSF-2.0
- Tolerance as the file states it: Frequencies and active fractions relative 1e-9 with a floor of 1e-21 below 1e-12; statuses, codes and withholding rules exact
File 2, 7 cases
- Where the expected values came from: the source's own worked example, Hu & Smyth 2009 (the authors' preprint), Table 2 and sections 3.2 and 3.4, read 11 November 2026
- Recorded on: 2026-11-11
- Reference: CPython decimal at 60 digits, checked against statmod elda(), CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); licence PSF-2.0
- Tolerance as the file states it: Frequencies and active fractions relative 1e-9 with a floor of 1e-21 below 1e-12; statuses, codes and withholding rules exact
File 3, 54 cases
- Where the expected values came from: an outside program, second implementation (Python 3.13) 2026-11-14
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
- Tolerance as the file states it: fractions and frequencies relative 1e-10 (absolute 1e-30 below 1e-20); notes, statuses and codes exact
File 4, 156 cases
- Where the expected values came from: an outside program, second implementation (Python 3.13) 2026-11-14
- Recorded on: 2026-11-14
- Reference: second implementation (Python 3.13), 2026-11-14; licence BSD-3-Clause
- Tolerance as the file states it: fractions and frequencies relative 1e-10 (absolute 1e-30 below 1e-20); notes, statuses and codes exact
Apart from the worked example, the cases and their values are not printed here. This shows agreement with this project's recorded cases. It does not show that a method suits your work, and it is not a qualification.
What was not checked
The outside comparison is statsmodels 0.15.0 GLM (binomial, complementary log-log link, offset log dose), on the estimate of the active fraction only; the Wald interval and the one-sided bounds have no outside comparison, and the interval's coverage is not checked. An active fraction above one (the estimate or an interval end, which a Poisson dose allows since λ = e^α is unbounded) is served unclipped with a note; how often real data give it is not measured. With every culture positive and cells counted, the bound solves section 4.5 in section 4.2's form (1/211.56 for Table 4); the paper prints 1/218, which its own equations do not give (its Table 3 pair obeys the section 4.2 relation, its Table 4 pair does not), and statmod 1.5.0 stops on the case, so the counted bound is checked through the Poisson bound and the section 4.2 map, not against a second program. Group comparison and the goodness-of-fit test (sections 4.3, 4.4) are not built.
Equations
Equation 1
Σ [r·θ/(e^θ − 1) − (n − r)·θ] = 0 with θ = e^α·d, solved for α
λ = e^α (Poisson dose) or λ = 1 − exp(−e^α) (cells counted). The score of the binomial likelihood under Hu & Smyth's model 1 − p = exp(−λ·d) (their eq. 1
§4.2 for counted cells): this record's derivation, re-derived by a second agent of the same model family, not an equation the paper prints
| Symbol | Meaning and unit |
|---|---|
| α | the GLM intercept: log λ, or log(−log(1 − λ)) when cells are counted |
| θ | e^α times the dose |
| d | cells per culture |
| n | cultures tested at the dose |
| r | cultures positive at the dose |
| λ | active-cell fraction |
Ruling of this project: 14 November 2026, section "The CSO on raising limiting dilution, detection limits and minimum detectable activity (D-0219 item 2), 14 November 2026". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Equation 2
α ± z·se(α), se = (Σ n·θ²/(e^θ − 1))^(−1/2), z = Φ⁻¹(1 − (1 − level)/2)
each end mapped to λ as α is, and never clipped. The Wald interval on the intercept is Hu & Smyth's (§4.1)
se from the expected information is this record's derivation, re-derived by a second agent of the same model family, not an equation the paper prints
| Symbol | Meaning and unit |
|---|---|
| α | the GLM intercept |
| se | standard error of α from the expected information |
| z | normal quantile for the two-sided level |
| level | confidence level stated by the caller |
Ruling of this project: 14 November 2026, section "The CSO on raising limiting dilution, detection limits and minimum detectable activity (D-0219 item 2), 14 November 2026". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Equation 3
No culture positive: Π (1 − p)^n = 1 − level over the doses, with p = 1 − exp(−λ·d) (Poisson) or p = 1 − (1 − λ)^d (counted) the probability that a culture at dose d is positive (§4.5's pᵢ written in this record's symbols)
that is exp(−λ·Σ n·d) = 1 − level (Poisson) or (1 − λ)^(Σ n·d) = 1 − level (counted), solved for the upper bound λ0
| Symbol | Meaning and unit |
|---|---|
| λ | the one-sided upper bound on the active-cell fraction |
| n | cultures tested at a dose |
| d | cells per culture |
| p | the probability that a culture at dose d is positive (§4.5's pᵢ at the i-th dose): 1 − exp(−λ·d) for a Poisson dose, 1 − (1 − λ)^d for counted cells, both equal to 1 − exp(−e^α·d) |
| level | confidence level stated by the caller |
Source: Hu Y, Smyth GK. ELDA: extreme limiting dilution analysis for comparing depleted and enriched populations in stem cell and other assays. J Immunol Methods 2009;347:70-78, section 4.5, the authors' preprint on their own site (the version of record is paywalled); read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0d0c05a5248d. Free to read (the authors' preprint, free to read; © Elsevier for the version of record), checked 2026-11-11. No erratum found (searched Crossref metadata: update-to, updated-by and relation fields of the DOI), 2026-11-11.
Equation 4
Every culture positive: Π p^n = 1 − level over the doses, with p = 1 − exp(−e^α·d) the probability that a culture at dose d is positive (§4.5's pᵢ written in this record's symbols, in both modes)
that is Π (1 − exp(−e^α·d))^n = 1 − level, solved for α
the lower bound λ0 = e^α (Poisson dose) or 1 − exp(−e^α) (cells counted)
| Symbol | Meaning and unit |
|---|---|
| α | the GLM intercept at the bound |
| λ0 | the one-sided lower bound on the active-cell fraction |
| n | cultures tested at a dose |
| d | cells per culture |
| p | the probability that a culture at dose d is positive (§4.5's pᵢ at the i-th dose): 1 − exp(−λ·d) for a Poisson dose, 1 − (1 − λ)^d for counted cells, both equal to 1 − exp(−e^α·d) |
| level | confidence level stated by the caller |
Source: Hu Y, Smyth GK. ELDA: extreme limiting dilution analysis for comparing depleted and enriched populations in stem cell and other assays. J Immunol Methods 2009;347:70-78, section 4.2 and 4.5, the authors' preprint on their own site (the version of record is paywalled); read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0d0c05a5248d. Free to read (the authors' preprint, free to read; © Elsevier for the version of record), checked 2026-11-11. No erratum found (searched Crossref metadata: update-to, updated-by and relation fields of the DOI), 2026-11-11.
Equation 5
cells per active cell = 1/λ
| Symbol | Meaning and unit |
|---|---|
| 1/λ | cells per active cell |
| λ | active-cell fraction |
Source: Hu Y, Smyth GK. ELDA: extreme limiting dilution analysis for comparing depleted and enriched populations in stem cell and other assays. J Immunol Methods 2009;347:70-78, section 4.1, the authors' preprint on their own site (the version of record is paywalled); read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 0d0c05a5248d. Free to read (the authors' preprint, free to read; © Elsevier for the version of record), checked 2026-11-11. No erratum found (searched Crossref metadata: update-to, updated-by and relation fields of the DOI), 2026-11-11.
Equation 6
a call is checked in this order, and the first rule it meets answers: (1) an unknown or misspelt argument, UNKNOWN_ARGUMENT
(2) cellDose: missing, CONVENTION_REQUIRED (invalid input, naming the two choices), a value other than poisson or counted, INVALID_OPTION
(3) confidenceLevel: missing, MISSING_ARGUMENT, then its type and unit, then below 0.5 or above 0.999, OUT_OF_RANGE
(4) cultures: missing, MISSING_ARGUMENT, then fewer than 1 or more than 100 doses and each dose in the order given (an unknown field, a type, a unit
d not above 0, n below 1 or above 10,000, r above 10,000, OUT_OF_RANGE), all invalid input
(5) refused: any dose with d below 1e-6 or above 1e12, DOSE_OUTSIDE_RANGE, before any check of (6) on any dose
the range includes both ends, so d = 1e-6 and d = 1e12 are computed
(6) each dose in the order given: r above n, POSITIVE_ABOVE_TESTED, then, with counted cells, d not a whole number, NOT_AN_INTEGER. A missing cellDose and a missing confidenceLevel have separate codes: CONVENTION_REQUIRED and MISSING_ARGUMENT
| Symbol | Meaning and unit |
|---|---|
| d | cells per culture at a dose (cultures[*].cells) |
| n | cultures tested at the dose |
| r | cultures positive at the dose |
Ruling of this project: 14 November 2026, section "The CSO on six fixes with fresh line-2 evidence, 14 November 2026". Not yet published; its effect is stated on this page. A choice this project made, not a value from the literature.
Conventions
ONE_SIDED_BOUND_LEVEL= one-sided at the stated level when no culture or every culture is positive; otherwise two-sided: Fixed by the method; not an argument. With no positive or no negative cultures, the bound is one-sided at the stated level, as in Hu & Smyth's section on one-sided confidence intervals; otherwise the interval is two-sided.
What each mode computes:
cellDose = poisson: the cells per culture are a mean, dispensed by dilution and Poisson-distributed; the frequency is 1/λ with λ = e^αcellDose = counted: the cells per culture are counted exactly; the frequency is 1/λ with λ = 1 − exp(−e^α)
Constants
Constants: none used.
Worked example
Worked example: one case of limiting-dilution-frequency@1.1.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- cellDose = poisson
- confidenceLevel = 0.95
- cultures[0].cells = 100
- cultures[0].tested = 9
- cultures[0].positive = 0
- cultures[1].cells = 200
- cultures[1].tested = 6
- cultures[1].positive = 0
Steps
- lam = 0.0014265392, from cultures, confidenceLevel; by equation 3; gives activeFraction.upper.
- freq = 700.99722, from lam; by equation 5; gives cellsPerActiveCell.fewest.
The working, as the case writes it:
No culture positive: exp(−λ·Σ n·d) = 0.05 with Σ n·d = 9 × 100 + 6 × 200 = 2100
λ = ln 20/2100 = 1.4265345e-3
at least 1/λ = 2100/ln 20 = 700.99722 cells per active cell (the paper prints 701). A two-sided bound would use 0.025 and give about 569.
Answer
activeFraction.upper= 0.0014265392cellsPerActiveCell.fewest= 700.99722
Where these values came from: an outside program, CPython decimal at 60 digits, checked against statmod elda() CPython 3.13.18; statmod 1.5.0 on R version 4.3.3 (2024-02-29); Hu & Smyth 2009 sections 4.1, 4.2 and 4.5, in 60-digit decimal arithmetic.
At build the tool returned this answer within the tolerance the file states: Frequencies and active fractions relative 1e-9 with a floor of 1e-21 below 1e-12; statuses, codes and withholding rules exact.
Who worked this case: not recorded.
What it refuses, and its input ranges
DOSE_OUTSIDE_RANGE: a dose is outside the range over which the fit's bracket is proven to hold its root Next: No change of input makes this computable on these data.POSITIVE_ABOVE_TESTED(invalid input): a dose has more positive cultures than cultures tested
Input ranges: cultures[*].cells: at least 0.000001 and at most 1000000000000; outside it, refused (DOSE_OUTSIDE_RANGE).
Flags and notes a reply may carry
A note a reply may carry:
ACTIVE_FRACTION_ABOVE_ONE: The estimated active fraction is above one, which no fraction can be, so the cells per active cell are fewer than one: the data contradict the single-hit model. The estimate is served as computed, not clipped.ACTIVE_FRACTION_UPPER_ABOVE_ONE: The upper end of the active fraction's interval, or its one-sided upper bound, is above one, so the fewest cells per active cell are fewer than one. The end is served as computed, not clipped, so the interval's coverage is unchanged.ACTIVE_FRACTION_LOWER_ABOVE_ONE: The lower end of the active fraction's interval, or its one-sided lower bound, is above one, so the most cells per active cell are fewer than one: the data contradict the single-hit model. The end is served as computed, not clipped, so the interval's coverage is unchanged.COUNTED_ALL_POSITIVE_PRINTED_EXAMPLE_DIFFERS: With counted cells and every culture positive, this bound solves Hu & Smyth's one-sided equation in the counted form; the paper's printed example for this case differs from that equation by about three per cent, and the authors' current program does not compute it.
Changes
No correction is logged for limiting-dilution-frequency@1.1.1.
Tools that use it
Cite this version
Active-cell frequency from a limiting dilution assay by the single-hit model, with its interval. Drybench; limiting-dilution-frequency@1.1.1; https://www.drybench.com/methods/m/limiting-dilution-frequency/1.1.1 (accessed [date]).