$$\Pr(D|T, \mu)$$
We're Bayesians: we need a probability distribution for $T$!
Standard application of Bayes theorem gives the posterior:
$$P(T,\mu,\theta|D) = \frac{\Pr(D|T,\mu, \theta)P(T,\mu,\theta)}{\Pr(D)}$$But most phylogenetic models assume that $\theta$ only effects the probability of the data via the tree $T$, and likewise that $\mu$ has no effect on the tree branching process, leading to:
$$P(T,\mu,\theta|D) = \frac{1}{\Pr(D)}\Pr(D|T,\mu)P(T|\theta)P(\mu,\theta)$$
Because of the way we've factorized the joint probability for the data and model parameters, we are implicitly assuming that our alignment could have been produced in the following fashion:
Separating the process of tree generation from that of sequence evolution implies neutrality.
MCMC works by simulating a stochastic trajectory according to: $$p_{i+1}(x)=\int p_i(x')W(x|x')\mathrm{d}x'$$ where $$W(x'|x) = q(x'|x)\alpha(x'|x) + \left(1-\int q(x''|x)\alpha(x''|x)\mathrm{d}x''\right)\delta(x'-x)$$
A sufficient (but unnecessary!) condition for $\pi(x)$ to be the equilibrium distribution is detailed ballance, which implies:
$$\pi(x')q(x|x')\alpha(x|x')=\pi(x)q(x'|x)\alpha(x'|x)$$which is satisfied by the following acceptance probability:
$$\alpha(x'|x)=\min\left[1, \frac{\pi(x')}{\pi(x)}\times\frac{q(x|x')}{q(x'|x)}\right]$$
$$\alpha(x'|x)=\min\left[1, \frac{\pi(x')}{\pi(x)}\times\frac{q(x|x')}{q(x'|x)}\right]$$
Need to identify a set of proposals $q_j(x'|x)$ when $x$ is a point in the space of rooted time trees.
- How can we tell when a phylogenetic MCMC calculation has reached equilibrium?
- How do we know when we've collected enough samples?
The AWTY application applies a number of different statistics to assess the convergence of the tree state. It relies heavily on comparing the result of multiple runs.
Logs of individual parameters can be considered samples from the marginal posteriors of those parameters.
In BEAST, summary trees are produced using the MCC tree method via the program TreeAnnotator.
Popular Bayesian phyogenetic inference software:
Some software implementing special models:
... there are many others!