# Two-point LOD score for phase-known meioses, version 1.0.2

genetics-lod-score\@1.0.2: 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; Z(θ) as Ott, Wang and Leal 2015, Fig. 2b and 3; lower relative precision near Z = 0, stated; no linkage call. Reference kind: our own exact-arithmetic script and a hand-worked case.**

Checked 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 the stated reference within the stated tolerance. 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 version of this method](https://www.drybench.com/methods/m/genetics-lod-score) · [Every method](https://www.drybench.com/methods/m) · [What the levels mean](https://www.drybench.com/methods/levels)

## Version 1.0.2

**Level: Checked against a reference; Z(θ) as Ott, Wang and Leal 2015, Fig. 2b and 3; lower relative precision near Z = 0, stated; no linkage call. Reference kind: our own exact-arithmetic script and a hand-worked case.** `genetics-lod-score@1.0.2`

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.

**Verification statement:** The two-point LOD for phase-known meioses, Z(θ) = log10\[θ^R(1 − θ)^(N − R)/½^N\], as Ott, Wang and Leal 2015 print it for no recombinants (Fig. 2b) and as their Fig. 3 maxima for one and six recombinants in ten bear out, read at source 17 November 2026 (PMC4440411, SHA-256 1d90897e…8dac); the form for R recombinants is our generalisation of the printed one, and θ̂ = min(R/N, ½) is the capped maximum-likelihood fraction, θ = k/n as they state for phase-known pedigrees. Morton 1955 not read. Checked in exact arithmetic (fractions and mpmath at 50 digits) and against two second implementations in Python by separate agents of the same model family: a fresh agent's, written to this record and Ott (58 cases, 25 of them its edge cases; four against the printed maxima), and an earlier agent's (33 cases; 7 with the flag left out for its path order). Where Z nearly cancels, the tool differs from the correctly rounded value as the reporting rule states. Not a p-value and not a probability of linkage.

The base-ten log of the binomial likelihood ratio of a recombination fraction θ against one half, for R recombinants among N phase-known meioses, at the maximum-likelihood fraction R/N capped at one half and at any fractions the caller states. Ranges: N from one to a million meioses, R from zero to N, each θ from zero to one half, and at most fifty-one θ values. RECOMBINANTS\_ABOVE\_HALF qualifies, in this order, result.maximumLikelihoodFraction then result.lodAtMaximum.

- **How results are reported:** Each of the two log terms to full double precision; Z is their sum, so where they nearly cancel (Z near 0) Z's relative precision is lower: 2.0e-14 relative of the correctly rounded value on stored reference values#theta-max-items (N = 4, R = 1, at θ = 0.08, where Z ≈ −0.0014), and 6.1e-11 relative on stored reference values#nmax-just-below-half (N = 10^6, R = 499 999, where Z ≈ 8.7e-7). These two relative figures are measured on those cases, not bounds: as Z approaches 0 its relative error grows without limit. The quantity to rely on is the absolute error, which is a few units in the last place of the larger log term and so grows with N (our estimate, not a proof; measured at most 2.2e-16 and 5.3e-17 on those cases).
- **Uncertainty:** A likelihood ratio on the caller's counts; no interval on the fraction is given.
- **Every reply through it says:** A base-ten log likelihood ratio, not a p-value or a probability of linkage; no linkage call is made, and thresholds depend on study design.
- **Reference, as its record states it:** Exact arithmetic: Python fractions and mpmath at 50 digits on the definition, written before the engine, with hand-worked cases; two second implementations in Python by separate agents of the same model family; Ott, Wang and Leal 2015's printed maxima
- **Level confirmed by this project's ruling of** 17 November 2026

[What this page can and cannot show](#what-this-page-can-and-cannot-show)

### What was checked

103 cases in 3 files, linked by this exact version.

Run through the tool at build against our own exact-arithmetic script and a hand-worked case: 66 agree within the tolerance the file states, 37 refuse as the case expects, 0 differ, 0 were not run.

- **File 1, 12 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-11
  - **Reference:** mpmath with Python fractions, 1.3.0; licence BSD-3-Clause
  - **Tolerance as the file states it:** LOD absolute 1e-9 in log10(1); recombination fractions absolute 1e-15; statuses, codes, units, flags and withheld rules exact

- **File 2, 33 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-17
  - **Reference:** second implementation by a separate agent (Python 3.13), 2026-11-17; licence BSD-3-Clause
  - **Tolerance as the file states it:** every number relative 1e-15 (absolute 1e-30 below 1e-15, in each value's unit); statuses, codes, flags, withheld rules and units exact

- **File 3, 58 cases**
  - **Where the expected values came from:** our own exact-arithmetic script and a hand-worked case
  - **Recorded on:** 2026-11-17
  - **Reference:** second implementation by a fresh agent (Python 3.13), 2026-11-17; licence BSD-3-Clause
  - **Tolerance as the file states it:** every number relative 1e-15 (absolute 1e-30 below 1e-15, in each value's unit); statuses, codes, flags, withheld rules and units 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

Morton 1955 was not read (its PMC scan is behind a reCAPTCHA); Ott, Wang and Leal 2015 print the no-recombinant form and three maxima, not a table of LOD scores, and the binomial form for R recombinants is this record's generalisation of theirs; only their printed maxima, to one decimal, are compared. Phase-unknown meioses, pedigrees, sex-specific fractions and multipoint LODs are outside the method. Whether the caller's meioses are phase-known and the recombinants correctly counted is the caller's.

### Definition or model

A closed form: the result follows from the inputs by the equations alone.

### Equations

**Equation 1**

```equation
θ̂ = min(R/N, ½)
```

| Symbol | Meaning and unit |
| --- | --- |
| θ̂ | maximum-likelihood recombination fraction, capped at one half |
| R | recombinant meioses counted by the caller |
| N | phase-known meioses scored |

Source: Ott J, Wang J, Leal SM. Genetic linkage analysis in the age of whole-genome sequencing. Nature Reviews Genetics 2015; 16(5): 275–284, section Approaches for linkage analysis, LOD scores: in phase-known pedigrees the recombinant (k) and non-recombinant (n − k) events can be counted directly, and the estimate of the recombination fraction is then θ = k/n. The cap at ½ is this record's, consistent with Figure 3's maximum of 0 at θ = 0.5 for k = 6 of 10, the accepted author manuscript in PubMed Central, PMC4440411 (NIHMS688965), as NCBI efetch's PMC XML; the version of record is the journal's; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 1d90897e127f. Free to read (To be checked: © 2015 Macmillan Publishers Limited, all rights reserved; PMC states the file is available for text mining and fair use; formulas and printed values used, no text copied), checked 2026-11-17. No erratum found (searched the PMC record's related-article and correction links in the efetch XML), 2026-11-17.

**Equation 2**

```equation
Z(θ) = log10[θ^R (1 − θ)^(N − R) / ½^N] = R·log10(2θ) + (N − R)·log10(2(1 − θ)), with 0^0 = 1
```

| Symbol | Meaning and unit |
| --- | --- |
| Z(θ) | LOD score at recombination fraction θ, log10(1) |
| θ | recombination fraction, from 0 to one half |
| R | recombinant meioses |
| N | phase-known meioses |

Source: Ott J, Wang J, Leal SM. Genetic linkage analysis in the age of whole-genome sequencing. Nature Reviews Genetics 2015; 16(5): 275–284, section Figure 2b legend: for five phase-known offspring with no recombination events, Z(θ) = log10\[(1 − θ)^5/(½)^5\], maximum 1.5 at θ = 0; Glossary: the LOD score is the log of the likelihood ratio, numerator under linkage, denominator under no linkage (θ = ½); Figure 3 legend: maxima 3.0, 1.6 and 0 for k = 0, 1 and 6 of 10. The likelihood θ^R (1 − θ)^(N − R) for R recombinants is this record's generalisation of the printed k = 0 form, consistent with Figure 3's printed maxima, the accepted author manuscript in PubMed Central, PMC4440411 (NIHMS688965), as NCBI efetch's PMC XML; the version of record is the journal's; read in full on 2026-11-17 by an AI-assisted session; not yet checked by a person. Read from the file itself, SHA-256 beginning 1d90897e127f. Free to read (To be checked: © 2015 Macmillan Publishers Limited, all rights reserved; PMC states the file is available for text mining and fair use; formulas and printed values used, no text copied), checked 2026-11-17. No erratum found (searched the PMC record's related-article and correction links in the efetch XML), 2026-11-17.

### Constants

Constants: none used.

### Worked example

Worked example: one case of genetics-lod-score\@1.0.2, 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**

- meioses = 20
- recombinants = 2

**Steps**

1. thetaHat = 0.1, from recombinants, meioses; by equation 1; gives maximumLikelihoodFraction.
2. z = 3.1969651 log10(1), from meioses, recombinants, thetaHat; by equation 2; gives lodAtMaximum.

The working, as the case writes it:

```equation
theta-hat = 2/20 = 0.1. Z = log10(0.1^2 x 0.9^18 / 0.5^20) = 2 log10 0.1 + 18 log10 0.9 + 20 log10 2 = -2 - 0.8236540 + 6.0205999 = 3.1969651.
```

**Answer**

- `maximumLikelihoodFraction` = **0.1**
- `lodAtMaximum` = **3.1969651 log10(1)**

Where these values came from: our own exact-arithmetic script and a hand-worked case; stored reference values: fractions and mpmath 1.3.0 at 50 digits on the definition.

At build the tool returned this answer within the tolerance the file states: LOD absolute 1e-9 in log10(1); recombination fractions absolute 1e-15; statuses, codes, units, flags and withheld rules exact.

Who worked this case: not recorded.

### What it refuses, and its input ranges

- `RECOMBINANTS_ABOVE_MEIOSES` (invalid input): the recombinants counted exceed the meioses scored

### Flags and notes a reply may carry

A flag says a number must be read differently:

- `RECOMBINANTS_ABOVE_HALF`: Recombinants exceed half the meioses: the fraction is capped at one half, where the LOD is zero by definition.

### Changes

No correction is logged for genetics-lod-score\@1.0.2.

## Tools that use it

- [`genetics_lod_score`](https://www.drybench.com/methods/tools/genetics-lod-score)

## Cite this version

Two-point LOD score for phase-known meioses. Drybench; genetics-lod-score\@1.0.2; [https://www.drybench.com/methods/m/genetics-lod-score/1.0.2](https://www.drybench.com/methods/m/genetics-lod-score/1.0.2) (accessed \[date\]).
