Univariate models

The evoTS package contains a range of univariate models that expand and supplement the models available in paleoTS.

The paleoTS package contains functions to fit general random walk (GRW) and unbiased random walk (URW), stasis (modeled as a white noise process, i.e., uncorrelated variation around a constant mean), strict stasis (no real evolutionary change) and an Ornstein-Uhlenbeck (OU) process assuming a fixed optimum (Hunt 2006; Hunt et al. 2008). The paleoTS package also contains models of a punctuated mode of evolution where punctuations (jumps in phenotype space) separate different parameterizations of the stasis model (Hunt 2008). A few other mode shift models (where the model of evolution shifts at some point during the evolutionary sequence) has also been implemented in paleoTS (Hunt 2008; Hunt et al. 2015).

The following additional univariate models have been implemented in the evoTS package:

Below, we will give a theoretical introduction to the univariate models.

Stasis and strict stasis

The stasis model is a white noise process composed of two parameters, the optimal phenotype ($\theta$) and the variance ($\omega$). The trait means are normally distributed with the mean equal to $\theta$ and the variance equal to $\omega$ (Hunt 2006). The expected trait mean and its variance and covariance are given by the following expressions:

\[E[z_i] = \theta\] \[Var[z_i] = \omega + \epsilon_i\] \[Cov[z_i, z_j] = 0\]

where

When the variance is zero, there are no true fluctuations around the optimum (except those explained by sampling error alone), and the model collapses to strict stasis with only one parameter ($\theta$; Hunt et al. 2015).

The stasis model can be fitted using the paleoTS::opt.joint.Stasis function, and strict stasis using the paleoTS::opt.joint.StrictStasis function.

Unbiased random walk and general random walk

In an unbiased random walk, trait changes are drawn randomly from a normal distribution of evolutionary “steps” (instead of a normal distribution of trait means across time). The distribution has a mean ($\mu_{step}$) that decides the average direction of the trait changes over time and a variance ($\sigma^2_{step}$) determining the magnitude of the fluctuations around the mean. When the mean is zero, we have an unbiased random walk with no specific direction (Hunt 2006).

Unbiased random walk Figure from Kinneberg and Voje (2026)

When the mean is not equal to zero, the changes have an average direction and are biased towards an increase (positive $\mu_{step}$) or decrease (negative $\mu_{step}$) of the trait mean over time. This biased version of the model is what is often referred to as a general random walk model, biased random walk, trend model, or directional evolution. Here, we will use the term general random walk. Both the unbiased and general random walk are originally composed of the two parameters $\mu_{step}$ and $\sigma^2_{step}$, with a third parameter, the ancestral state ($z_0$), which is part of the calculation of the expected mean trait at time $t_i$. The expected trait mean and its variance and covariance are given by the following expressions:

\[E[z_i] = z_0\] \[Var[z_i] = \sigma^2_{step} t_i + \epsilon_i\] \[Cov[z_i, z_j] = \sigma^2_{step} t_{min}\]

where

The unbiased random walk model can be fitted using the paleoTS::opt.joint.URW function, and general random walk using the paleoTS::opt.joint.GRW function.

Decelerated and accelerated evolution

In the models described above, the evolutionary rate is constant. To allow for change in the rate through time, it is possible to extend the unbiased random walk model to include a decline or increase in the rate through time (Voje 2020, 2023). The additional parameter, $r$, describes the exponential change in rate. If $r$ is larger than zero, the rate will accelerate through time. If $r$ is less than zero, the rate will decelerate. We refer to these models as accelerated and decelerated evolution (Voje 2023). These models are closely related to the early and late burst models developed for phylogenetic comparative data (e.g., Harmon et al. 2010; Cooper and Purvis 2010; Blomberg et al. 2003), but describes a reduced or increased rate of evolution with time within a lineage and not within a clade. Similar to the random walk model (Hunt 2006), the expected evolutionary divergence between ancestor and descendant populations is always zero in the model of decelerated and accelerated evolution. The expected trait mean and its variance and covariance are given by the following expressions:

\[E[z_i] = z_0\] \[Var[z_i] = \sigma^2_{step_0}\left[\frac{e^{rt_i}-1}{r}\right] + \epsilon_i\] \[Cov[z_i, z_j] = \sigma^2_{step_0}\left[\frac{e^{rt_{min}} - 1}{r}\right]\]

where

The decelerated model of evolution can be fitted to a time series using the evoTS::opt.joint.decel function, and the accelerated model by using the evoTS::opt.joint.accel function.

Ornstein-Uhlenbeck models

The last three single-mode models are different versions of an Ornstein-Uhlenbeck (OU) process. The OU process consists of a stochastic and a deterministic part. The stochastic part is similar to the unbiased random walk, while the deterministic part allows the trait to evolve towards an optimal trait value ($\theta$). The strength of attraction towards the optimum is determined by the $\alpha$ parameter (Hansen 1997; Hunt et al. 2008). In the simplest OU model, the optimum is fixed (Hunt et al. 2008). The OU model with a moving optimum is defined when allowing for the optimum to move according to an unbiased random walk with the variance $\sigma^2_{\theta}$ (Hansen et al. (2008); Voje 2023). A special case of this latter model is when the ancestral trait state has the same value as the ancestral optimum (Voje 2023).

The Ornstein-Uhlenbeck models adjusted to describe phenotypic evolution within a single lineage has the expected trait mean, variance and covariance given by the following expressions:

OU with fixed optimum

\[E[z_i] = e^{-\alpha t_i}z_0 + (1-e^{-\alpha t_i})\theta\] \[Var[z_i] = \left[\frac{\sigma^2_{step}}{2\alpha}\right] (1-e^{-2\alpha t_i}) + \epsilon_i\] \[Cov[z_i, z_j] = \left[\frac{\sigma^2_{step}}{2\alpha}\right] e^{-\alpha t_{ij}} (1-e^{-2\alpha t_{min}})\]

OU with moving optimum

\[E[z_i] = e^{-\alpha t_i}z_0 + (1-e^{-\alpha t_i})\theta\] \[Var[z_i] = \left[\frac{\sigma^2_{step} + \sigma^2_{\theta}}{2\alpha}\right] (1-e^{-2\alpha t_i}) + \sigma^2_{\theta} t_i \left[\frac{1-2(1-e^{-\alpha t_i})}{\alpha t_i} \right] + \epsilon_i\] \[Cov[z_i, z_j] = \left[\frac{\sigma^2_{step} + \sigma^2_{\theta}}{2\alpha}\right] (1-e^{-2\alpha t_a}) e^{-\alpha t_{ij}} + \sigma^2_{\theta} t_a \left[\frac{1-(1+e^{-\alpha t_{ij}})(1-e^{-\alpha t_a})}{\alpha t_i} \right]\]

where

The OU model with a fixed optimum can be fitted using the paleoTS::opt.joint.OU function. The OU model with a moving optimum can be fitted using the evoTS::opt.joint.OUBM function. The OU model with a moving optimum and with the ancestral state at optimum can be fitted using the evoTS::opt.joint.OUBM function together with the argument opt.anc = TRUE.


In the next section, we will learn how to apply these models to actual data in evoTS.