Abstract
Organismal traits show dramatic variation in phylogenetic patterns of origin and loss across the Tree of Life. Understanding the causes and consequences of this variation depends critically on accounting for heterogeneity in rates of trait evolution among lineages. Here, we describe a method for modeling among-lineage evolutionary rate heterogeneity in a trait with two discrete states. The method assumes that the present-day distribution of a binary trait is shaped by a mixture of stochastic processes in which the rate of evolution varies among lineages in a phylogeny. The number and location of rate changes, which we refer to as rate-shift events, are inferred automatically from the data. Simulations reveal that the method accurately reconstructs rates of trait evolution and ancestral character states even when simulated data violate model assumptions. We apply the method to an empirical dataset of mimetic coloration in snakes and find elevated rates of trait evolution in two clades of harmless snakes that are broadly sympatric with dangerously venomous New World coral snakes, recapitulating an earlier analysis of the same dataset. Although the method performed well on many simulated data sets, we caution that overall power for inferring heterogeneous dynamics of single binary traits is low.