An ancestral recombination graph records ancestral coalescences and genetic recombination events for sampled chromosomal material. Backwards in time, each pair of ancestral lineages merges at rate one in standard diploid coalescent units, while a lineage splits at a recombination breakpoint at rate times the genetic span of the material it carries. The breakpoint splits that lineage's ancestral material into two parental contributions. Waiting times are exponential with the sum of the current event rates. At each genomic position, retaining the ancestry at that position gives a marginal phylogenetic tree with the neutral Kingman's coalescent distribution. Different positions have dependent trees because they share parts of the graph.
// Target: biology.bigb
With proper prior independent of the neutral Kingman's coalescent times, propose from their joint prior and accept with probability . The accepted density is proportional to the prior times the observed-count likelihood, hence is the posterior given . The acceptance rate is the prior predictive probability . For , divide the acceptance function by its maximum , achieved at , to improve the rate to without altering the accepted distribution. For , .
Genetic drift 2026-10-13
Genetic drift is random variation of allele frequencies due to finite-population reproduction. In the neutral ancestry description, randomly sampled gene copies merge into common ancestors according to Kingman's coalescent.
The epoch lengths in Kingman's coalescent are independent random variables. Conditional on these lengths, mutation counts on disjoint tree pieces are independent Poisson random variables. Their conditional laws depend only on the corresponding epoch length, so integrating the product of conditional laws against the independent epoch laws leaves independent unconditional epoch mutation counts. This justifies adding their variances, rather than assuming independence from conditional independence alone.
Kingman's infinite coalescent Created 2026-10-05 Updated 2026-10-14
The consistent partition process on whose finite restrictions are Kingman's coalescent. It starts with infinitely many singleton blocks.
In Kingman's coalescent, the epoch with ancestral lineages lasts , independently across epochs. If each lineage carries an independent Poisson process of mutations with rate , its epoch mutation count satisfies . The total mutation count is . Under the infinite sites mutation model, this also counts segregating sites; without that assumption it still counts mutation events, which need not correspond one-to-one to observed polymorphisms.
For a haploid population with possible parents, each pair of ancestral lineages merges backward at rate in the Kingman's coalescent approximation. With lineages there are pairs. Hence the mean phylogenetic epoch duration is
Thus , and . For an autosomal sample from diploid individuals, replace the number of gene copies by , giving . A mitochondrial sample naturally uses a haploid maternal effective population size; the common factor cancels in the ratios below.
Under the stated topology probabilities, and . Averaging the branch lengths from part (b), the expected length producing the folded class is
The factor in type A includes both the one-descendant and three-descendant root branches. The expected length producing the class is
With a common mutation rate per unit branch length, it cancels from the ratio of expected counts in this folded site frequency spectrum:
For the Yule process,
For Kingman's coalescent,
These are ratios of ensemble expected mutation counts, not the expected value of the random ratio in one tree. The stipulated topology weights apply to both processes, and their waiting-time rates depend only on the current number of branches.
The observed folded site frequency spectrum has a larger to ratio than either expectation in part (d), and is closer to the Yule process expectation than to the constant-size Kingman's coalescent expectation. Both models can nevertheless produce deviations in one finite sample, especially because all mitochondrial sites largely share one genealogy; this observation alone is not a formal model-selection result.
For the Yule process, one possible violation is a recent reduction in the per-lineage branching rate rather than a constant . Lengthening the terminal four-branch interval adds one-descendant branch length and therefore preferentially increases the class.
For Kingman's coalescent, one possible violation is recent population expansion rather than a constant effective population size. Backward in time, coalescence is slow in the large recent population and faster in the smaller ancestral population. The resulting long external branches tend to increase the class relative to the class.
During the epoch with ancestral lineages, Kingman's coalescent has waiting time . In the stated time units, each lineage accumulates mutations at rate , so the mutation count on a neutral coalescent tree decomposes as
The law of total expectation and the mean of an exponential distribution give . Therefore
This calculation counts mutation events. Equating the count with observed segregating sites additionally uses the infinite sites mutation model.
Let , with all , and put . The independent exponential epoch times have joint density
Take a proper prior distribution density on , independent of the neutral genealogy. Independence is appropriate because the specified neutral Kingman's coalescent does not depend on the mutation parameter. The conditional observed-count likelihood function is
Its prior predictive probability, or Bayesian model evidence, is
Assuming , Bayes' theorem gives the joint posterior of mutation rate and coalescent times:
It is zero outside the prior support and positive-time region. For , use the usual convention in the Poisson mass. An improper prior cannot be sampled as the proposal in the following algorithm, even in cases where its formal posterior can be normalized.
Use standard diploid coalescent time units of generations, where is the fixed effective population size, and take . In the neutral Kingman's coalescent, each unordered pair of ancestral lineages merges at rate one. With lineages, the next coalescence time therefore has an exponential distribution with rate
The memoryless construction and the Markov property make these epoch durations independent. During epoch there are branches, each of duration , so the total branch length of a neutral coalescent is
By linearity of expectation,
The ancestral branch above the sample's most recent common ancestor is excluded: mutations there would be shared by all sampled chromosomes and would not create segregating sites.
An ancestral recombination graph, or ARG, is the directed ancestry of a sample of chromosomal segments when ancestral lineages can both coalesce and undergo genetic recombination. It records which ancestral material each lineage carries, the times of events and the recombination breakpoints. At any fixed genomic position, following only the ancestral material at that position gives a marginal phylogenetic tree. Different positions can have different trees, while sharing substantial parts of their history. The graph is acyclic in time, although its underlying undirected graph can have loops because a lineage splits backwards and its ancestors can later rejoin.
For the standard neutral, constant-size, randomly mating diploid model, measure time in generations and set , where is the recombination rate across the whole segment. The backward process is a continuous-time Markov jump process on collections of lineages carrying ancestral material:
  • Each unordered pair of current lineages coalesces at rate one. The parent lineage carries the union of their ancestral material, with common ancestry recorded at overlapping positions. With lineages the total coalescence rate is . The full ARG permits a pair to merge even when its carried material is disjoint; such an event creates no merger in a local tree at that instant.
  • A lineage splits into two parental lineages at a recombination breakpoint. With a uniform recombination map on a segment of normalized length one, the intensity of breakpoints along a fully ancestral lineage is per unit length. If a lineage carries only part of the segment, only cuts leaving ancestral material on both sides need be retained, giving rate , where is the span between its leftmost and rightmost ancestral positions. Material to the left goes to one parent and material to the right to the other. A gap within that span still permits a cut that separates two carried pieces.
For a state with lineages, independent exponential event clocks give total rate
The next waiting time has exponential distribution with rate ; choose its event type in proportion to the corresponding rate. A coalescing pair is uniform among unordered pairs; a recombining lineage is selected with weight and its breakpoint is uniform over its active span. With a nonuniform genetic map, use the corresponding integrated intensity and map-weighted breakpoint distribution. Initially all sample lineages span the whole segment, so the initial rate is . Ancestral material no longer needed after its sample copies have found their local common ancestor can be pruned.
Mutations are placed independently on the resulting ancestral branches, with local rate in coalescent units for a locus having scaled mutation parameter . Without recombination, the graph reduces to a single Kingman's coalescent tree. With recombination, each individual locus still has that marginal coalescent distribution, but trees at different loci are dependent. The ARG combines backward pairwise mergers with backward recombination splits; local trees are its position-specific projections. The neutral two-locus construction is developed in Hudson's two-locus model.
In a neutral Moran model, a population has labelled individuals; reproduction copies one individual's type to a uniformly chosen other individual, keeping population size fixed. One convenient time convention puts independent rate- Poisson arrows on each ordered pair of distinct individuals. Backwards in time, two sampled ancestral lineages merge whenever one copies the other, at total rate per unordered pair. In the convention where each individual reproduces at rate , this pair rate is if the parent cannot replace itself, and time must be rescaled accordingly.
Kingman's coalescent on labels is the continuous-time Markov chain on partitions of , initially all singleton blocks, in which each pair of distinct blocks merges at rate . With blocks, the waiting time is exponential of rate , and the merging pair is uniform. Kingman's infinite coalescent is the consistent partition process on whose restriction to each finite label set has this law; consistency and the extension theorem construct it. These time conventions are part of the definition.
Let be the number of blocks in the first labels. The expected time to reach at most blocks is
Markov inequality gives . As increases these counts increase to the total number of infinite-coalescent blocks, so the same bound holds for that number. Letting shows it is finite almost surely for each . Apply this simultaneously to positive rational times; monotonicity of the block count then covers every positive real time. Hence Kingman's infinite coalescent comes down from infinity almost surely.
Population genetics 2026-10-13
Population genetics studies the frequencies of alleles and genotypes in populations, and their changes through inheritance, mutation, selection, migration and random sampling. Kingman's coalescent describes a neutral sample's ancestry backward in time.