Work

How Can We Improve Accuracy of Macroevolutionary Rate Estimates?

Year: 2012
Type: article
Abstract: Nee et al. (1994) presented likelihood equations for estimating speciation and extinction rates based on phylogenies of only extant species; in particular their method can infer extinction patterns without extinct species data. Meanwhile, even for the simplest model of speciation and extinction, namely, the constant rate birth–death process, a number of studies have been published using different likelihood equations (Thompson 1975; Rannala and Yang 1996; Yang and Rannala 1997; Gernhard 2008; Stadler 2009). The likelihood functions differ due to conditioning the likelihood on different quantities, like the age of the tree, survival of the tree, or the number of species in the tree. Which conditionings yield the most accurate speciation and extinction rate estimates? In order to answer this question, I present an overview of 7 likelihood functions (which have been published in previous articles), conditioning on different aspects of the tree. I investigate and discuss the impact of the different conditionings toward accuracy of the maximum-likelihood rate estimates by inferring rates based on simulated phylogenies. The second part of this article discusses a possible bias in speciation and extinction rate estimates when analyzing incomplete phylogenies, that is, phylogenies in which not all extant species are included. The analytic considerations reveal that we cannot estimate the fraction of nonsampled species, but have to know it, when estimating speciation and extinction rates. The conclusions reached in this article, assuming the simple constant rate birth–death model, will also apply when assuming the more realistic macroevolutionary models allowing for nonconstant rates (Rabosky 2007; Alfaro et al. 2009; FitzJohn et al. 2009; Morlon et al. 2011; Stadler 2011a; Silvestro et al. 2011; Etienne et al. 2012), as these general models all contain the constant rate birth–death model as a special case. This article ends with contrasting these different method implementations (Table 1) and providing some recommendations for end users in order to facilitate model comparison across packages. Comparison of different implementations estimating speciation and extinction rates The expressions in the column “likelihood” specifies the value being returned by the implementation. If using different packages for the same data set, it is essential to make sure to add the appropriate constants such that likelihoods are comparable across packages. Comparison of different implementations estimating speciation and extinction rates The expressions in the column “likelihood” specifies the value being returned by the implementation. If using different packages for the same data set, it is essential to make sure to add the appropriate constants such that likelihoods are comparable across packages. I will first define the considered macroevolutionary model, the constant rate birth–death process, and then present seven functions describing the likelihood of a phylogeny on only extant species under this model. The constant rate birth–death process starts at a time t0 in the past with one species. At all times, each species gives rise to new species with a constant rate λ and goes extinct with a constant rate μ. After a speciation event, we distinguish between the two descending species (e.g., call them “left” and “right”). The process is stopped after time t0, the present. Each extant species is sampled with a probability ρ, and we denote the number of sampled extant species by n. The resulting tree where all nonsampled and extinct species are pruned is called the reconstructed tree. The n − 1 speciation times in a reconstructed tree with n species are t1 > t2> ··· > tn−1, with the present being time 0, meaning a speciation time measures the amount of time before present; Figure 1 shows an example of a reconstructed tree on n = 5 species. Note that in the reconstructed tree, we distinguish between the “left” and “right” descendant of each branching event, such trees are also called oriented trees (Ford et al. 2009). I emphasize that the orientation “left” and “right” is introduced to distinguish all species at all points in time in a convenient way when deriving the likelihood functions (namely each species is characterized by a sequence of “left” and “right” when following edges from the origin to the species). A tree with the extant species being labeled can readily be obtained from the oriented tree by labeling the extant tips and possibly dropping the “left” and “right” labels. As pointed out below, parameter inference will not be influenced by a particular orientation or labeling. Complete phylogeny of age t0 (left) and corresponding reconstructed phylogeny (right). In the reconstructed phylogeny, all extinct and nonsampled extant species are pruned, only the sampled species (denoted with a black circle) are included. The time t0 is also called stem age, and the time t1 is also called crown age. We emphasize that the birth–death process has four parameters t0, λ,μ, and ρ, and typically λ and μ are the parameters that are being inferred based on a reconstructed phylogeny using the likelihood function, whereas t0 and ρ are fixed prior to the inference. In the literature, the probability density (which is the normalized likelihood function) of a reconstructed phylogeny is calculated frequently; the probability density is essentially a function of p0(t),p1(t), and q(t). However, due to different assumptions, slightly different formulae were obtained for the probability density. In the following, I will present, discuss, and compare the different probability densities and point out where they were originally derived. We recall that the constant rate birth–death process has 4 parameters t0,λ,μ, and ρ, and we typically want to estimate λ and μ based on a reconstructed phylogeny. When calculating the probability density of a reconstructed phylogeny, we assume ρ to be a fixed parameter. Seven different possibilities for t0 are considered: We can (1) simply condition on the process starting at a time t0 (i.e., fix the parameter t0, meaning L(t0) = 1). Additionally, we can (2) condition on the process between time t0 and 0 to survive, that is, to produce at least one sampled species, yielding a stem age t0 (for this condition, we use the shorthand t0 = tstem, instead of L(t0) = 1 and survival). The rationale for this condition is that we typically do not have information on how many clades are unobserved due to extinction of the clade, or nonsampling of the clade. Thus our data analysis being based on an observed reconstructed phylogeny is implicitly conditioned on observing a tree, that is, on survival. Additionally, we can (3) also condition on observing precisely n sampled species (Ls(0) = n), the rationale being that we know the number of sampled species n with certainty and thus may want to condition on it. Often, we do not have knowledge about t0, the stem age of the tree. However, at time t1, we observe two lineages, thus analog to above, we can (4) condition on two birth–death processes starting at time t1 (L(t1) = 2). We can (5) also condition on both of these processes surviving to the present, meaning t1 is the age of the most recent common ancestor of the extant species (also called crown age tcrown, we write for this condition t1 = tcrown, being short for L(t1) = 2 and survival), or we can (6) condition on the number of species being n with tcrown = t1. Finally, when no knowledge about t0 is available, the process has alternatively been conditioned (7) on n extant species (Ls(0) = n), integrated over all possible t0 (assuming a uniform prior on (0,∞) for t0). The rationale here is that we are certain about the number of sampled species n while we are uncertain about the stem age t0 (or the crown age t1). Note that a uniform prior on t0 is assumed without knowing the number of extant species in the clade. The probability density of t0 given n sampled extant species in the clade is nonuniform and given in Gernhard (2008, Theorem 3.2). Interestingly, assuming that the clade of consideration and its sister clade have the same speciation and extinction rate yields the same probability for t0 given n extant species as the uniform prior assumption (Hallinan 2012), and thus may be a biological justification for the uniform prior assumption. Equation (1) has been derived in Stadler (2010, Theorem 3.5). Dividing Equation (1) by the probability of the process having sampled species at the present (1 − p0(t0)) leads to Equation (2). Dividing Equation (1) by the probability of observing n extant species at the present (pn(t0)) yields Equation (3). Equation (4) follows directly from Equation (1) by acknowledging that the two trees descending the two lineages at time t1 can be calculated using Equation (1). Equation (5) is established equivalent to Equation (2), that is, by dividing with the probability of survival of the two lineages at time t1. Equation (7) has been established in Stadler (2009) by integrating Equation (3) over t0. It remains to derive Equation (6). This establishes Equation (6). Remarks: Equation (4) appears in Thompson (1975, p. 58), Equation (3.4.6) for ρ = 1. The author states that this expression p1(t1)2Πi=2n−1λp1(ti) is the density of a tree conditioned on the most recent common ancestor of the extant species being at time t1, that is, (see also Thompson's Figure 3.4). However, Thompson actually calculated (Equation (4)). Equation (5) has been derived in Nee et al. (1994, p. 308). Equation (6) is provided in Yang and Rannala (1997). For ρ = 1, Equation (6) was first derived in Rannala and Yang (1996, Equation (8)). Note that the authors derive Equation (6) by using from Thompson (1975). As stated in Remark 1, Thompson actually derived (and not ⁠). Because Rannala and Yang (1996) divide this density by p(Ls(0) = n,t1 = tcrown|L(t1) = 2), the correct density for ⁠, t1= tcrown) is obtained. For a tree with unknown origin t0, we could estimate t0,λ,μ (instead of fixing t0 and estimating only λ,μ) based on a tree with speciation times t1,...,tn−1. For t0 = t1, Equation (2) multiplied by n equals Equation (7). In particular, the maximum-likelihood parameter estimates are the same if t0 approaches t1. Equations (1–7) hold for reconstructed trees where the descendants of each branching event are distinguished by “left” and “right” (oriented trees). For obtaining the probability density of the more commonly used labeled tree, that is, the tree where each tip has a unique label but the “left” and “right” is ignored, we need to divide Equations (1–7) by the number of labelings (n!) and multiply by the number of “left” and “right” assignments (2n−1). Note, however, that the factor 2n−1/n! does not change the likelihood of a tree. Furthermore, under the constant rate birth–death process, it has been established that branching times are independent of the tree shape (Aldous 2001). In fact, for a given vector of branching times, there are (n − 1)! different oriented trees, and each of them is equally likely. Thus, for obtaining the probability density of the branching times, we need to multiply Equations (1–7) by (n − 1)!. The R packages ape, laser, geiger, diversitree, DDD, and TreePar (Paradis et al. 2004; Harmon et al. 2008; FitzJohn et al. 2009; Rabosky 2009; Stadler 2011a; Etienne and Haegeman 2012), as well as R code provided in Morlon et al. (2011) and the Python implementation BayesRates (Silvestro et al. 2011), all estimating macroevolutionary rates under a range of models, allow to condition on survival for most of the implemented models, in particular for all methods assuming the constant rate birth–death process (Table 1). Note in particular that if a method assumes no extinction and complete sampling (μ = 0, ρ = 1), then conditioning on survival or not yields the same result (as p0(t) = 0 for all t). The R packages diversitree, TreePar, BayesRates, and Morlon's implementation allow for uniform taxon sampling where each extant species has probability ρ of being sampled; DDD allows for uniform taxon sampling where n out of m species are being sampled (see Supplementary Material of Etienne et al. 2012). BayesRates allows for clade-specific sampling probabilities, and diversitree allows for trait-specific sampling probabilities. Medusa in geiger and TreePar can further analyze incomplete phylogenies in which some clades are collapsed to a single tip, and only the number of species represented by that tip is known. Note that TreePar multiplies each branching event by two in order to allow the likelihood to be compared with general models where branching events are asymmetric such that we need to label the two descendants; for example, the two descendants may be ancestor and offspring, resulting from peripatric speciation (or transmission between hosts if considering virus phylogenies). For the simple constant rate birth–death process, assigning the left descendant “ancestor” and the right descendant “offspring” or vice versa result in the same likelihood of the tree, as the constant rate birth–death process is memoryless, thus the factor 2. I simulated 1000 trees on 100 and 1000 extant species using the function sim.bd.taxa in the R package TreeSim (Stadler 2011b), and then reestimated the speciation and extinction rates. I chose λ = 1, ρ = 1, and varied the turnover μ/λ = 0.00,0.05,0.25,0.50,0.75,0.95 (note that for different values of λ, the time scale is changed, but the results are the same). When estimating parameters, I fixed ρ = 1 (because we cannot estimate the sampling fraction, see the section below). The parameter estimates obtained using Equations (1–7) are shown in Figures 2 and 3. Maximum-likelihood speciation rate estimates (white boxplot) and extinction rate estimates (gray boxplot) based on 1000 simulated trees on 100 species (for each parameter combination). The true speciation and extinction rates are indicated by the horizontal lines: speciation rate is set to 1; each panel corresponds to a different extinction rate. In each panel, the estimates from left to right correspond to using Equations (1)–(7). Maximum-likelihood speciation rate estimates (white boxplot) and extinction rate estimates (gray boxplot) based on 1000 simulated trees on 1000 species (for each parameter combination). The true speciation and extinction rates are indicated by the horizontal lines: speciation rate is set to 1; each panel corresponds to a different extinction rate. In each panel, the estimates from left to right correspond to using Equations (1)–(7). First, I note that simulating trees on a fixed number of species (here 100 and 1000) is performed by choosing any tree with n species uniformly at random. This procedure implicitly assumes a uniform prior on (0,∞) for the age of the tree (Hartmann et al. 2010), and thus Equation (7) is the appropriate equation for this simulated data. The seven methods perform similarly well, and in particular for the trees of size 1000, the seven methods produce on average correct estimates with a very small variance across the simulated trees. Empirical trees are typically smaller than size 1000. Based on the simulations for trees with moderate size (100 tips), I observe important differences in performance of the seven likelihood functions, in summary: Is the stem age t0 important? Equations (1–3) use the information of the stem age t0, whereas Equations (4–6) neglect it. We observe that the corresponding Equations (1) (2) and (3) (6) produce equivalent that is, the stem age does not information for trees. This with our the stem age is the while both methods use branching that is, the stem age only about information when analyzing trees with 100 species. However, when analyzing phylogenies, some branching times be accurate than and an accurate stem age estimate add more than of Thus, an accurate stem age estimate is available, it be included. This is in particular for small trees. we condition on on survival the extinction rates compared with only conditioning on tree age (Equation (1) (4) This is we only analyze surviving if we use Equation (1) that not condition on the method estimates extinction rates as the method only surviving trees and is implicitly that no trees thus that extinction was I that for turnover it is very important to condition on survival. However, for very extinction the parameter estimates are using Equation (1) than Equation (2) This is μ is from by if we condition on also some μ are and thus the variance in extinction rates As for most clades we a extinction rate based on the I to condition on survival in the we condition on the number of sampled If we condition on age and on the number of species the variance in parameter estimates compared with not conditioning on n. This is by conditioning on the parameter estimates are not any more by the number of species after time t0 t1). We after time t0 to observe n = n = species (for ρ = 1), and the method use of this information for as as we do not condition on n. Thus, I to not condition on both age and number of sampled species (i.e., to not use Equation (3) or conditioning is In if we condition on more (e.g., n in to age as in the we information in the data conditioning on and thus the estimates In the of conditioning on all speciation times of the phylogeny, each parameter has the same likelihood thus no information is left in the data. is the of Equation I simulated trees on a fixed number n of species, thus Equation (7) is the appropriate equation for our We Equations which are slightly the to not perform It out that Equations (2) and (5) perform as well as Equation meaning these equations are toward of the assumption. to this I to use Equations (2) and Furthermore, from a point of using the assumption of a uniform prior for stem age in Equation and in for more models, it not be possible to over all possible stem which is to Equation (7). We can estimate turnover than This is based on the that the variance in extinction rate estimates for turnover This that for small in μ/λ change the tree whereas for small small in μ/λ change the tree I performed all simulations using ρ = 1. to parameter this actually information also for ρ Based on this all tree densities of Equations (1) and (4) are functions of only and This that we cannot estimate the parameters one parameter has to be Maximum-likelihood speciation rate estimates (white boxplot) and extinction rate estimates (gray boxplot) based on 1000 simulated trees on 100 species (for each parameter with incomplete sampling = The true speciation and extinction rates are indicated by the horizontal each panel corresponds to a different extinction rate. In each panel, the estimates from left to right correspond to using Equations (2), Note that we could not use Equations (1) and (4) as we used for the estimates in Figure 2 such that we for ρ = this only for Equations (2), This that only two out of parameters can be will be as as obtaining estimates However, the for sampling and speciation as well as extinction is The tree densities in Equation (1) the probability density of the process after time t0 t1). If we were to many trees of age t0 and estimate the parameters based on the of trees, the extinct trees, we However, by only estimating parameters based on trees, we bias our estimates toward extinction rates. I by the results of this The macroevolutionary model considered in this article, the constant rate birth–death process, has 4 parameters, the speciation rate λ, the extinction rate the sampling probability ρ, and the stem age of the tree of stem age, we can also crown age as a crown age is the stem age of the two clades the first branching event in the reconstructed tree. First, the sampling probability ρ cannot be with λ and μ based on a reconstructed phylogeny. The likelihood function can only about two parameters while we have to fix the Thus, one answer to the in the of the article, can we accuracy of macroevolutionary rate is by a knowledge about the sampling probability the stem age of the tree is typically fixed to the observed value when estimating speciation and extinction rates. When we estimate rates based on reconstructed phylogenies of moderate size (here 100 tips), we condition the likelihood function on survival (Equation (2) or in order to accuracy of macroevolutionary rate If not conditioning on we The bias of extinction if we were to knowledge about the fraction of clades having however, this information is typically not As an conditioning the likelihood function on the number of species but over all possible stem (Equation is provided that a uniform prior for the time of origin We not the two if we condition on the number of species in the tree in to fixing the tree age (Equation (3) or the estimates as we information from the data conditioning on For phylogenies (here 1000 tips), the different conditionings performed equally In the simulations that given the trees under a constant rate birth–death process, the extinction rate can be in particular if the turnover is I want to emphasize that under more models with extinction turnover to estimate while rate can be obtained see for example, the results of Stadler in estimating turnover as turnover estimates are very toward model Rabosky simulated phylogenies under a model with constant turnover while speciation rates varied in a across a constant rate birth–death model to these trees turnover both a turnover of and one was Furthermore, many data reveal an extinction rate estimate of while the shows patterns of extinction Thus, a will be to which trees as well as data in order to more turnover In this article, accuracy and of parameter estimates were by simulating a set of trees, and then the of likelihood parameter the obtained are For trees, a set of trees or trees can be It is important to note that the obtained parameter the of the likelihood estimates toward in the phylogeny. In order to the shape of the likelihood function, the of the likelihood has to be The the in parameter where the likelihood is at most from the The value on the number of parameters and the the likelihood functions can be used in an analysis (instead of a likelihood analysis as in this yielding for each parameter. I to analyze the trees or the trees than the clade tree or the tree, as these trees do not very well (e.g., may be When the simple constant rate birth–death process a more model, it is important that the two likelihoods are meaning that they were obtained using the same conditionings and For example, if the probability of extinction of the clade is then the likelihood obtained from Equation (5) is than that obtained from Equation (4) by a factor of If is then the factor even to As a if using Equation (5) for the constant rate birth–death model while using the analog of Equation (4) for the model, the likelihood is in the constant rate birth–death likelihoods do not have to be the different packages use different 1 which conditionings and constants are used in the which will facilitate comparison of models implemented in different packages. packages which are and constants are used to facilitate comparison with the packages. I want to with some recommendations to end models across I that end users under the simple constant rate birth–death model, the same maximum-likelihood value and parameter estimates are obtained with any of the packages For the packages constants have to be to the likelihoods as in 1. In order to extinction rate I using the on if it is in all of the considered packages. This was by the I the the and an for very on the
Language: English
Subfield: Paleontology
Open Access status: bronze
OpenAlex ID: W2128506944
FWCI: 5.076
Cites: 28
Cited by: 121
Related to: 9