Define what is compared and why
A comparative study asks whether a pattern across species tells us something about evolution, function or ecology. The design starts by stating three things: the traits (genetic, morphological, physiological, behavioural or ecological), the taxonomic scope, and the hypothesis that links them. "Do species with broader diets have relatively larger brains?" is a comparative question; "Which species has the largest brain?" is not.
The comparative approach draws inferences from patterns repeated across many species rather than from one remarkable organism. Penick et al. (2022) illustrate this for bio-inspired design, using lattice structures in several unrelated groups and phylogenetic analysis to identify shared principles rather than copying a single "champion" species. The same logic applies in population genetics: Leiva et al. (2022) compared genetic structure in five Southern Ocean species to ask whether a common pattern of connectivity existed, which no single-species study could show.
Decide early whether your question concerns species averages, individuals within species, or both, because this fixes the unit of analysis. Most interspecific hypotheses concern species-level traits, but the values are estimated from individuals, and that estimation brings its own error.
Match the design type to the claim
Comparative studies range from descriptive to experimental, and each supports a different kind of claim. Descriptive studies document how a trait varies across a clade and are often the first step in a new system. Correlational studies, the commonest type, test whether two traits, or a trait and an environmental variable, evolve together across species. They can show association but not, on their own, cause, because a third factor may drive both traits.
Experimental comparative designs measure several species under the same controlled conditions, for example a common-garden or common-environment experiment, so that differences between species are less likely to reflect the environments in which animals were caught. They are more demanding but answer questions that field data cannot, such as whether a difference in thermal tolerance is fixed or plastic. State which type your study is and phrase conclusions to match: "is associated with" for correlational designs, and causal language only where the design supports it.
Species are not independent data points
Felsenstein (1985) showed that species share parts of their evolutionary history, so their trait values are correlated through common ancestry. Treating them as independent in an ordinary regression or correlation inflates the apparent sample size and the rate of false positives. He proposed phylogenetically independent contrasts, differences between sister lineages that are independent under a Brownian motion model of trait evolution.
Phylogenetic generalised least squares (PGLS), developed from Grafen (1989), generalises this idea: it fits a regression in which the residuals are allowed to covary according to the phylogeny. Pagel's lambda scales the strength of that covariance between 0, equivalent to ordinary least squares, and 1, equivalent to Brownian motion (Pagel, 1999). Freckleton et al. (2002) found that phylogenetic dependence is common in comparative data but varies in strength, which argues for estimating it rather than assuming it is absent or complete.
Two refinements matter at the design stage. Revell (2010) showed that the need for a phylogenetic correction depends on phylogenetic signal in the residuals of the model, not in the traits themselves, so lambda should be estimated jointly with the regression. Uyeda et al. (2018) warn that a strong correlation can be driven by a single evolutionary event, such as one clade that differs in both traits; statistical methods cannot replace the biological judgement of how many independent origins the data really contain.
Sampling species and individuals
Choose species to answer the question, not because they are convenient. A strong design spans the full range of the predictor and includes several independent evolutionary transitions, for example multiple lineages in which a dietary shift arose separately. Phylogenetically paired designs, which compare closely related species that differ in the trait of interest, are an efficient way to obtain replicated contrasts.
Within each species, decide how many individuals to measure and which sex, age class and season to sample. Ives et al. (2007) showed that ignoring within-species variation and measurement error can bias comparative estimates, and described methods that include them. In practice, record the number of individuals and the standard error for each species mean, and use the same protocol and units for every species.
Sampling also applies to measurement spaces. Bishop et al. (2023) developed an "intelligent sampling" algorithm that explores the high-dimensional space of possible joint poses by concentrating effort where viable poses are likely, instead of testing every combination. The principle generalises: when a trait is high-dimensional, plan how it will be sampled before data collection begins.
Natural history knowledge underpins all of these choices. Nanglu et al. (2023) argue that direct knowledge of organisms in their environments remains fundamental to ecology and evolution, and it is often what allows a researcher to judge whether a trait is measured comparably across species and what an unexpected pattern means.
Build the phylogeny into the design
Identify a dated phylogeny that covers your species before you finalise the species list, since gaps in the tree limit the analysis. Phylogenies are estimates. Large-scale trees are often published as a posterior set of trees rather than a single tree; Jetz et al. (2012) provided such sets for birds, which allow analyses to be repeated across many trees so that conclusions do not depend on one topology.
Where the question concerns long timescales, fossil taxa can add time depth, provided their traits are measured with the same definitions as living species and their placement on the tree is justified. Record the source, version and any pruning of the tree so that the analysis can be reproduced.
Plan the analysis at the same time as the sampling. Write down the response and predictor variables, any transformations (body mass and many size-related traits are usually log-transformed), how body size will be controlled, and which evolutionary model the residuals are assumed to follow. Decide in advance how you will check the model, for example by inspecting residuals and influential species, and how you will report the estimated lambda with its confidence interval alongside the slopes. A pre-specified plan protects against trying several models and reporting the one that happens to give a significant result.
Automated tools and ethics
Computer vision and machine learning now support species identification, behavioural scoring and morphometrics, and can process far more images or recordings than manual methods (Zhang et al., 2023). They are measurement instruments, so validate them against expert manual scoring on a subset of your own data, check that performance holds across species, and report the model, training data and accuracy.
Ethical design follows the same logic as in any animal research. Where existing data, museum specimens or non-invasive observation can answer the question, prefer them. Where live animals are handled or experimented on, obtain the required permits and approvals and report the work to ARRIVE 2.0, including species, numbers, housing, procedures and how bias was reduced (Percie du Sert et al., 2020).
An illustrative design
The following example is hypothetical and shows design choices only, not results. A student asks whether diet breadth is associated with relative brain size across birds.
| Design element | Illustrative choice |
|---|---|
| Hypothesis | Broader diets are associated with larger brains relative to body mass |
| Species | Species from several orders, chosen so that broad and narrow diets arise in many separate lineages |
| Traits | Brain mass and body mass from the same individuals; diet breadth from a stated source |
| Individuals | Target a minimum per species, both sexes, with species means and standard errors recorded |
| Phylogeny | A posterior set of published trees, pruned to the sampled species |
| Model | PGLS of log brain mass on log body mass and diet breadth, lambda estimated jointly |
| Robustness | Repeat across trees; check whether one clade drives the result |
Writing the design in this form before collecting data shows an examiner that the analysis was planned, and exposes weak points, such as too few independent transitions, while they can still be fixed.
Design checklist and common mistakes
| Decide before data collection | Why it matters |
|---|---|
| Hypothesis, traits and taxonomic scope | Defines what counts as evidence |
| Unit of analysis: species, individuals or both | Fixes the model and the sample size |
| Number of independent evolutionary transitions | Determines how much replication you really have |
| Individuals per species and protocol | Controls within-species variation and comparability |
| Phylogeny source and treatment of uncertainty | Makes the analysis reproducible and robust |
| Model (for example PGLS) and how lambda is estimated | Accounts for shared ancestry |
| Validation plan for automated measurements | Shows the instrument is accurate across species |
| Permits and ARRIVE 2.0 reporting for animal work | Meets ethical and journal requirements |
- Analysing species values with ordinary regression and no account of phylogeny.
- Testing phylogenetic signal in each trait and using that to decide whether to correct.
- Claiming a general relationship from a contrast between two clades.
- Mixing measurement protocols, sexes or units across species.
- Using a single consensus tree as if it were certain.
- Trusting automated measurements without validation against manual scoring.
- Using causal language for a correlational comparison.
A useful final test is to sketch the phylogeny with your predictor mapped onto it and count how many times the predictor changes state or shifts markedly. If the answer is once or twice, the design needs more lineages, whatever the number of species. Discussing that sketch with a supervisor or mentor early can save months of data collection that could not answer the question.
Key takeaways
- Species share history, so comparative analyses must account for phylogeny (Felsenstein, 1985).
- PGLS with an estimated lambda lets the data set the strength of phylogenetic correction (Grafen, 1989; Freckleton et al., 2002).
- Assess phylogenetic signal in the model residuals, not in the raw traits (Revell, 2010).
- Count independent evolutionary transitions, not just species (Uyeda et al., 2018).
- Plan for within-species variation and phylogenetic uncertainty from the start (Ives et al., 2007; Jetz et al., 2012).
