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.
Let be the mutation rate per chromosomal segment per generation, and use the population-scaled parameter . In -generation coalescent units, mutations occur on each ancestral lineage at rate . Independent mutations on all branches of a given phylogenetic tree superpose to give a Poisson distribution with mean .
Under the infinite sites mutation model, each mutation occurs at a distinct position, and every mutation below the sample's common ancestor separates a nonempty proper subset of sampled chromosomes from the remainder. Thus the mutation count is exactly the segregating site count, giving
By the law of total expectation and the previous branch-length formula,
This also gives the Watterson estimator as an unbiased moment estimator of . Here all sample segregating sites are counted, including singletons; filtering sites by a minimum sample frequency or by external SNP discovery would introduce genetic-study ascertainment and change this calculation.
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 the joint prior density as the proposal for rejection sampling. Since the Poisson probability lies in , the following algorithm is valid:
  • Draw from the proper prior distribution .
  • Independently draw from the exponential distributions with rates , for , and calculate .
  • Draw uniformly on , independently of all previous draws. Retain if ; otherwise restart.
The joint density of a proposed pair together with its acceptance event is . Its integral is , so conditioning on acceptance gives precisely , the desired posterior density. Repeating independent proposal trials until each acceptance produces independent posterior observations. This is Bayesian rejection sampling for a segregating-site count.
An equivalent implementation simulates and accepts exactly when . Its acceptance probability is the same Poisson mass. Propose from the joint prior and accept according to the exact observed-count likelihood. No approximation to the posterior distribution is involved in the accepted draws.
Integrating the acceptance probability over the joint-prior proposal gives
The mean number of independent proposal trials per acceptance is , by the geometric distribution. To make the acceptance rate explicit for an arbitrary specified prior, define the segregating-site likelihood under the neutral coalescent by . Then
For the last identity, is the sum of independent exponential variables with rates ; combine their Laplace transforms with the conditional Poisson probability generating function. If an explicit mass is wanted, also has density : it is the maximum of independent unit exponential variables, whose successive spacings have exactly these exponential rates. Expanding and integrating the Poisson mass gives
Use for . The positive integral or generating-function expression may be numerically preferable to this alternating sum.
A sharper rejection envelope improves the algorithm without changing its proposal. For , maximize the Poisson mass over :
It increases until and decreases afterwards, so its maximum is . For , the maximum is . Replace the acceptance rule by . This is bounded by one, and its accepted density is unchanged because the factor cancels on normalization. Thus
For it is strictly more efficient, with improvement factor by Stirling's formula. For this envelope improvement gives no increase. Evaluating the Poisson mass and using a uniform draw also avoids generating a Poisson count only to discard it. A proposal concentrated near the posterior can improve efficiency further, but then its density and a valid rejection bound must be included.
The accepted values have marginal posterior density
Estimate this one-dimensional density by a histogram or kernel density estimation from the simulated values. Where , likelihood reconstruction from posterior simulation gives
Use bins or a sufficiently fine grid, and refine near the maximum. For a histogram with bins , its posterior mass divided by prior mass estimates a prior-weighted average of the likelihood in that bin:
Narrowing the bins gives pointwise likelihood reconstruction at continuous positive-prior points. A flat proper prior over the search interval makes the highest posterior-density bin approximately the highest-likelihood bin. With a nonconstant prior, maximizing the posterior alone gives a maximum a posteriori estimate, generally different from maximum likelihood estimation. Choose prior support covering the intended search region and include a possible boundary maximum; for , decreases with , so the maximum-likelihood estimate is .
The sampled genealogies provide a second likelihood reconstruction when the one-dimensional prior integral is computable. Put
Their posterior density is . Therefore, for any trial value ,
This is an importance sampling estimate of the likelihood curve using the posterior genealogies. It can be maximized over a grid without estimating a posterior density in , provided wherever the target integrand is positive and the weights are numerically usable. The ordinary moment estimate is not automatically a maximum-likelihood estimate: it uses only the mean equation, while the likelihood integrates the entire random branch-length distribution.

Articles by others on the same topic (0)

There are currently no matching articles.