Abstract
How ecosystems maintain stability is an active area of research. Inspired by applications of random matrix theory in nuclear physics, May showed decades ago that in an ecosystem model with many randomly interacting species, increasing species diversity decreases the stability of the ecosystem. There have since been many additions to May’s efforts, one being an improved understanding the effect of mutualistic, competitive, or predator-prey-like correlations between pairs of species. Here we extend a random matrix technique developed in the context of spin-glass theory to study the effect of high-order correlations among species interactions. The resulting analytically solvable models include next-to-nearest-neighbor correlations in the species interaction network, such as the enemy of my enemy is my friend, as well as higher-order correlations. We find qualitative differences from May and others’ models, including nonmonotonic diversity-stability relationships. Furthermore, inclusion of particular next-to-nearest-neighbor correlations in predator-prey as opposed to mutualist-competitive networks causes the former to transition to being more stable at higher species diversity. We discuss potential applicability of our results to microbiota engineering and to the ecology of interpredator interactions, such as cub predation between lions and hyenas as well as companionship between humans and dogs.
I. INTRODUCTION AND BACKGROUND
Many ecosystems are composed of a large number of species that interact with each other in a plethora of ways. The extreme case of the Amazon rainforest is estimated to house several million species, ranging from carnivorous plants [1] to freshwater sharks [2]. Our own gut microbiome contains hundreds of microbial species that coevolve with us [3–5]. The complexity of such ecosystems makes it challenging to model and understand them [6].
A celebrated attempt to understand large ecosystems was made by May in the early 1970s [7–9], which we detail here. Consider an ecosystem with N species, each with continuous, time-dependent abundance zi(t) where i = 1,2, …, N, which represent the elements of the abundance vector . The species interact with each other, which determines how their abundances change over time. Assume that the dynamics of zi(t) are governed by a system of coupled ordinary differential equations admitting a steady-state vector of species abundances , around which the system can be linearized. Thus, the introduction of small changes in species abundances around the steady state, denoted xi(t) = zi(t) − si with corresponding vector , will dictate the dynamics according to
| (1) |
where M is the Jacobian matrix evaluated at . Following precedent, we will refer to this matrix as the community matrix [8] where element mij of M encodes an interaction between the species pair j and i.
May considered a community matrix model of the form M1 = G − R. Here −R is a diagonal matrix representing the self-regulation of the species, which for convenience is taken to be −R = −RI where I is the identity matrix and R is a positive constant. G is a random matrix with independent and identically distributed entries: The entry distribution has mean 0 and finite standard deviation σ and is otherwise arbitrary. The parameter σ sets the range of the interaction strength between species pairs and we will simply refer to it as the interaction strength [10]. Note that M1 is not symmetric; the effect of species i on j will differ from that of j on i. May focused on the local stability (hereafter referred to as stability) of the steady-state species abundance of this ecosystem model. In general, small perturbations of abundances around a stable steady state are suppressed and the system returns back to the steady state, while those around an unstable one lead to divergence from the steady state. The stability can simply be determined from the eigenvalues of M1: If none of its eigenvalues have a real part greater than 0, then the steady state is stable. Thus, one can address the question of stability in May’s model through the distribution of eigenvalues of M1.
According to the circular law conjecture [11,12], in the limit of large N, the eigenvalues of G are uniformly distributed on the disk of radius centered at the origin in the complex plane, with the largest real part of its eigenvalues consequently being . The circular law conjecture has been proven in its most general form only a decade ago by Tao, Vu, and Krishnapur [13], who provide a universal result agnostic to the details of the matrix entry distribution. Thus, a simple change of variables in the eigenvalue distribution for G leads to for the largest real eigenvalue part of M1. This implies that the ecosystem is stable when . One way to incorporate the fact that not all species pairs necessarily interact with each other is to introduce a connectivity fraction C, which randomly sets a fraction C of the entries of G to 0. This simply modifies the inequality to , bringing us to the particular diversity – stabilityrelationship proposed by May [7], which emphasizes a trade-off among σ, N, and C within this ecosystem model. Thinking of the species interaction strength σ as a control parameter, we can define a criticalinteractionstrength σc after which the ecosystem is always unstable [10]. For May’s model, [see Fig. 1(a) where connectivity C is dropped following rest of the manuscript; see Results]. It is important to note that this analysis does not say anything about “feasibility,” i.e., having physically allowable (positive) values for the abundances in the steady-state vector around which the system is linearized. The study of feasibility requires consideration of the original system before linearization, which the models in this manuscript will be mostly agnostic to. Relatedly, the models discussed in this manuscript, including those by May [7] and Ref. [14], do not take into account any effect of the steady-state vector of abundances on the Jacobian matrix at steady state and hence any effect of it on stability [8]. It is interesting to contrast this to the case of simple generalized Lotka-Volterra models, where species interactions are typically linear with respect to species abundances [8,15] and the steady-state Jacobian matrix accordingly has an explicit dependence on the steady-state abundances. We refer interested readers to a fraction of many revealing pieces of work on different models regarding feasibility and stability by Refs. [16–20].
FIG. 1.

May’s model and three-species correlations. (a) The eigenvalues of May’s community matrix M1 are uniformly distributed in a disk of radius centered at the point (−R, 0) on the real axis in the complex plane. We have dropped the connectivity fraction C in May’s original model for the remainder of the manuscript. As drawn, the system is stable. When σ > σc (purple radius larger than orange radius), the largest real eigenvalue component is larger than 0, and the ecosystem is unstable. (b) The interspecies interactions encoded in G can be represented in a weighted directed graph (left panel) where each node represents a species and each directed link weight equals the interaction effect of one species on another. Here only one of the two links (one direction) between species pairs is shown. Left panel shows an arbitrary subset of the three-species paths from species i to k. In the right panel, hik is the modification to the interaction effect of k on i introduced when going from May’s model M1 to M2,1.
While the assumptions underlying May’s approach have been questioned [8,9,17,21–23], it provides an interesting null model and has inspired further investigations using random matrix approaches. An avenue of interest in ecology is the study of the effects of correlations among species interactions, which is assumed to not exist in May’s model. This is potentially one way nature avoids May’s diversity-stability constraint, with species interactions in different ecosystems having empirically different correlations [21,24–26]. A common example of correlations in an ecosystem can be seen in ecosystems rich in predator-prey (also known as exploitive interaction) pairs, where it is expected to find more pairs of species that directly affect each other in an opposite manner, that is, through an interaction beneficial for one but detrimental to the other. Beyond that, it is possible that there are prevalent higher-order correlations in the direct interactions of species, such as those between the common predators of a prey, though this is not well understood at the ecosystem level, potentially due to difficulties in experimental ecology (see Discussion).
An important case of correlations in ecosystems was addressed by Allesina and Tang [14] in a May-like model where diagonally symmetric elements of the community matrix were set to have pairwise correlations by drawing the pair of elements from a general bivariate distribution with correlation ρ. Through theory and simulations, they showed that the functional form of May’s diversity-stability relationship undergoes simple modifications in the presence of such correlations. For example, a perfect predator-prey limit of the community matrix (ρ chosen such that mijmji < 0 with marginal means of interactions 0) was shown to increase the critical interaction strength σc to compared to the in May’s model. Empirical evidence suggests that correlations contribute to stability in more ways than described in Ref. [14], but the theoretical basis is not clear [24]. There have indeed been other computational and theoretical advances on the effect of correlations among species interactions [26–31]. However, the topic is far from exhausted and enjoys only a small collection of analytical results [21]. More generally, the addition of complexity to models of large numbers of interacting species has proven challenging but is critical to understand and make predictions regarding complex ecosystems [3,5,6].
While random matrix theory has helped achieve milestones in the modeling of ecological systems [9,10,14,17,20,26], it has also been extensively applied in finance [32], neural information processing [33], and throughout physics [34–39]. One application includes the introduction of a “squared interaction matrix” to study the effect of next-to-nearest-neighbor correlations in a fully connected spin-glass model in a simple, analytically tractable manner [40]. Here we extend this approach to study three-species (next-to-nearest-neighbor) and higher-order correlations in direct interspecies interactions using a particular set of correlation structures, which are easily generated by incorporating random matrices raised to integer powers in our models. For clarity, we would like to note that we do not study indirect interactions [41–43]. Indirect interactions arise, for example, when species A directly interacts with species B and alters the abundance of species B, which then leads to species A indirectly affecting the other species, C, that is directly interacting with species B (“linked chains of direct interactions”) [42]. We also note that the high-order correlations we study are distinct from what are defined as high-order “interactions,” where there is a direct interaction between two species that is governed by a third species through, for example, its abundance [10,44–46] (this at times has been referred to as an indirect interaction as well [42]; for a rigorous discussion of high-order interactions, see Ref. [47]). In contrast, we instead study a system of linearized differential equations, with high-order correlations among terms corresponding to the direct pairwise interactions of species. We show that with one correlation structure, the addition of high-order correlations beyond three species to May’s model (such as the friend of the enemy of my enemy helps me) can cause the critical interaction strength to vary nonmonotonically with species diversity. Thus the maximum critical interaction strength is achieved at finite values of species diversity, unlike in May’s model. We then show that for a related correlation structure, predator-prey networks transition to being more stable than mutualist-competitive networks at higher species diversity. Overall, the correlation structures in our linear models give rise to analytically tractable, complex diversity-stability relationships. We discuss how our results may fit into broader ecological and evolutionary frameworks.
II. RESULTS
We build on May’s model [7], where we drop the connectivity fraction C, which gives the diversity-stability relationship . Following literature, we refer to σ as the interaction strength and focus on the critical interaction strength σc above which the ecosystem is always unstable for given N [10]. In May’s model, where the critical interaction strength is seen to decrease linearly with increasing [Fig. 1(a)]. Throughout the manuscript, we analyze modifications to May’s model, and keep working in the large-N limit. Finally, we refer to entries of G in May’s model as pairwise interactions between species unless we need to distinguish gij from gji. In this case, we refer to gij as the interaction effect of species j on i.
A. Positive n-species correlations
Now, instead of May’s model M1 = −R + G, we first analyze a modified ecosystem with community matrix
| (2) |
where, again, each matrix is of dimensions N × N with N being species diversity. β is a positive constant (0 < β ⩽ 1) determining the level of mixing of the rightmost term with the rest of the terms. We will be looking at the effect of increasing β, which we will show to correspond to increasing next-to-nearest-neighbor correlations in M2,β. Note that for a given instantiation of the random community matrix M2,β, G2 is simply the square of the random matrix G whose entries are already drawn. First, let us focus on the rightmost term, . The introduction of implies a particular next-to-nearest-neighbor correlation structure in the ecosystem. Each element hik of the matrix by definition equals to where gijgjk is the product of the interaction effect of species j on i (in G) and the interaction effect of species k on j (in G). Thus the element hik of represents the average of all pairwise interaction effects (in G) of k on other species, each weighted by the interaction effect (in G) of those species on species i. N corresponds to the number of three-species paths between the two species i and k [Fig. 1(b)]. Finally, note that the operator norm of is fold that of G. Dean and Ritort, in a similar vein, introduced GGT (instead of G2) to the respective Hamiltonian in the squared interaction matrix Sherrington-Kirkpatrick model of spin glasses to study another form of next-to-nearest-neighbor correlations [40].
Coming back to the community matrix , we see that increasing β decreases the critical interaction strength σc at which the ecosystem destabilizes [Fig. 2(a)]. This is not surprising since we are simply increasing the largest real eigenvalue component of May’s community matrix by βσ2. This is seen from a fact that we will be repeatedly using throughout the manuscript: In general, if v is an eigenvalue of G, and χ is a polynomial, then χ(v) is an eigenvalue of χ(G) (see the Appendix). In this case, which for large N behaves like the critical interaction strength of May’s model, . Now let us set β = 1, M2 ≡ M2,1 and consider the inclusion of higher-order correlations in May’s model, that is, longer species paths when modifying the direct interspecies interactions. Instead of only including three-species correlations, we will include up to (F+1)-species correlations with the analogous structure, which gives the community matrix
| (3) |
FIG. 2.

Nonmonotonic stability relationships arise from beyond three-species correlations. (a) Increasing β decreases the critical interaction strength σc of community matrix M2,β. As β approaches 0, σc for May’s community matrix M1 is recovered (dashed blue). (b) The critical interaction strengths of M2 and May’s community matrix M1 monotonically decrease, while the community matrices including beyond three-species correlations have a nonmonotonic relationship between their critical interaction strength and species diversity. The inset shows the same plot with different scaling of the axes. R is set to 106 for all curves.
The term Gp takes into account all possible (p+1)-species paths between a pair of species, which total to Np−1 terms. In the case of M3 we find that σc no longer monotonically decreases with N, as opposed to the case of M2, and it peaks at a nonzero species diversity [Fig. 2(b); see the Appendix]. This is interesting in part due to its qualitative difference from May’s model where the highest possible critical interaction strength occurs at species diversity N = 0.
We should note that the observed nonmonotonicity in σc in the case of F = 3 is, as expected, due to the emergence of a high integer power of σ, with a cooperating factor of N, in the equations to solve for the largest eigenvalue real component and thus is not particularly special to the inclusion of correlations (see the Appendix 1). However, it is possible that the correlation structure we use is a natural way in which those terms can arise (see Discussion). In any case, we see that this approach allows for relatively easy analytical treatments of random matrix models with high-order correlations among the direct interspecies interactions.
We now look at the community matrix containing up to even higher-order correlations, where we take lim F → ∞ in MF. If we assume , then, using the Taylor series for (1 − x)−1, we easily find (see the Appendix). This limit exhibits a broader peak for σc than in the M3 case [Fig. 2(b)]. One may be further interested in modifying the community matrix MF, such as with certain prefactors to the terms. A simple case is when we penalize each term (p!)−1 fold, resulting in the community matrix . Here, using the Taylor series for the matrix exponential of G, it is straightforward to find for ME [Fig. 2(b); see the Appendix].
B. Negative three-species correlations in predator-prey, mutualistic, and competitive networks
We move on to analyze a different correlation structure. First, instead of May’s community matrix M1 = −R + G, following Allesina and Tang [14], we start with a more general community matrix, Mc = −R + Gc. The N × N matrix Gc has pairwise correlation ρ among its diagonally symmetric entries gij and gji (i ≠ j). In the construction of Gc, its entries gij and gji (i ≠ j) are sampled from a general bivariate distribution with correlation −1 < ρ < 1, marginal means 0 and marginal standard deviation (interaction strength) σ. When ρ < 0, Mc is biased toward having more predatorprey-like (gijgji < 0) interactions. When ρ > 0, Mc is instead biased toward having more mutualistic (gij > 0; gji > 0) and competitive (gij < 0; gji < 0) interactions which we call mutualist-competitive biased. The case of ρ = 0 reduces to May’s model.
To investigate the stability of the ecosystem governed by the community matrix Mc, we need to determine its largest real eigenvalue components. This was done by Allesina and Tang [14] with the help of preceding theoretical results [48]. The eigenvalues of Gc were shown to be distributed uniformly inside an ellipse centered at the origin in the complex plane, where the ellipse intercepts the real axis at and the imaginary axis at . The stability criterion for Mc is thus and the critical interaction strength . This analysis reveals a simple relationship where predator-prey biased interactions provide more stability than mutualist-competitive biased interactions.
We will now modify Mc to introduce a different form of three-species correlations than we studied before, which is the addition of to Mc where we note the choice of the minus sign. This choice is partially due to the rich stability behavior it will be shown to generate. We will thus focus on the stability of the ecosystem governed by the community matrix
| (4) |
Following a similar procedure to the previous section leads to a piecewise analytical solution for the critical interaction strength σc for Mc,−2 (Fig. 3; see the Appendix). An important feature of this solution is that as the species diversity decreases, including more positive as opposed to more negative pairwise correlation ρ in Gc will transition from decreasing σc to increasing σc [Fig. 3(b)]. This is as opposed to Mc where decreasing ρ increases σc for all N [Fig. 3(a)].
FIG. 3.

Mutualist-competitive and predator-prey correlations shape effect of a three-species correlation structure. (a) Critical interaction strength σc for community matrix Mc decreases with increasing ρ for all N. (b) σc for community matrix Mc,−2 is described by a piecewise function, with the two pieces joining at the respective threshold species diversity for the given curve, marked with a black dot. For Mc,−2, increasing ρ increases σc for small N while it decreases σc for large N. R is set to 3000 for all curves.
III. DISCUSSION
A. Summary
In this manuscript, we modified May’s random community matrix model [7] with simple high-order correlations among species interactions by using random matrices raised to integer powers. We showed in Sec. IIA that high-order correlations can lead, in a number of ways, to maximum possible critical interaction strengths occurring at finite values of species diversity. One implication of this is that, unlike May’s model, systems with fewer species can be more unstable. A similar effect has also been observed when high-order species interactions, instead of correlations, were included in May-like models [10]. In Sec. IIB, we studied a three-species correlation structure which resulted in predator-prey networks transitioning to being more stable than mutualist-competitive networks at higher species diversity. Our work adds to the limited number of analytical studies that involve application of random matrices with high-order correlations among their elements [14,40,49].
B. Motivating the models
It is interesting to think about how high-order correlations in species interactions may arise in nature. Lions, hyenas, and cheetahs, who compete for many prey species, actively kill each others’ cubs, suggestive of similarities with high-order (three-species) negative correlations as in Sec. IIA. To illustrate how parts of our models could potentially map to such biological settings, we provide a few speculative examples. Let us focus on a hypothetical scenario inspired by the interaction between lions and hyenas and show one specific way increased interspecies aggression may come about in an ecosystem where high-order correlations are developing in a manner consistent with our models. What we will effectively be doing is restating the mathematics of our model in words. The species names are mostly symbolic for our purposes. Interspecies aggression is known to have evolved between lions and hyenas. Let us assume that they exist in an ecosystem with some “initial” community matrix Q (where we will ignore the self-regulation term), and that lions eat prey A (qLA > 0; qAL < 0 where L is the index for lion, A is the index for prey A, and q is an element of the matrix Q) and hyenas also eat prey A (qHA > 0; qAH < 0 where H is the index for hyenas). The lions and hyenas also exhibit some initial but small level of direct interaction, such that qHL and qLH are approximately zero.
We are interested in high-order correlations in an ecological network. High-order correlations could in theory come about in numerous ways—for example, new interactions may simultaneously emerge through evolution and change predator-prey and predator-predator interactions altogether to new “values” that are unrelated to the pre-evolved values of the interactions that lacked high-order correlations. Or high-order correlations may have already been part of the ecosystem from its original formation and could continue remaining within an ecosystem, as the ecosystem evolves.
However, perhaps an alternative attractive possibility is that ecological networks vary in their level of interspecies interaction correlation over time, and correlations arise due to previous (pre-evolved) interactions feeding into how the new interactions evolve. So in the lion and hyena example, one way this could happen is if qLA and qAH feed into the evolved kLH (where k is an element of the newly evolved matrix K) in this new, evolved ecological network and likewise for qHA, qAL, and kHL. A simple model would be to take the new kLH to be proportional to qLA and qAH, which gives kLH ~ qLAqAH—that is, the interaction of each with their common prey feeds into the interaction they are developing, and it does so in a directly proportional manner. If there are multiple common prey species (prey A, B, C, and D), then a simple model would be to take the average of qLAqAH, qLBqBH, qLCqCH, qLDqDH. At the same time, kHL would also evolve in an analogous manner, in addition to interactions of other pairs of species. Thus, this reasoning shows how one can arrive to a term similar to the addition of in our random matrix models [Fig. 1(b)]. If the mechanism described here for the arising of correlations repeats over time as the ecosystem (and consequently its community matrix) evolves further, then higher powers of Q than 2 will also arise. This can be seen through the following logic: Say the evolved ecosystem with correlations as above has the community matrix αQ + βQ2 (where α, β are arbitrary constants), as opposed to the original starting ecosystem with interaction matrix αQ (the addition of βQ2 is responsible for the already evolved correlations). If this evolved ecosystem with community matrix αQ+ βQ2 undergoes another “step” of evolution to generate correlations (just like the starting interaction matrix did), then the new community matrix in this second step of evolution will include a term proportional to (αQ+ βQ2)2 and thus will include higher powers of Q, namely Q3 and Q4. Mechanistically, when considering the evolution of interspecies aggression among predators, a high-order correlation, it is interesting to consider the historical selection pressure of indirect interactions (e.g., depletion of the common prey population by the other predator) and high-order interactions (e.g., driven by physical encounters of the common prey, hyena and lion). Similar arguments can be made for potential prey species that share a common predator and need to compete for sheltering territory (a high-order interaction), which may be expected to later correlate with evolution of interspecies aggression among the prey species. However, whether and how our models may apply to the full variety of species interactions in large ecosystems is an interesting avenue for future investigation.
We believe the “mappings” in this section are extremely speculative, despite being mathematically interesting. The hypothetical lion-hyena example helps motivate the correlation structure in Sec. IIA of our manuscript, and in particular the positive sign in front of G2 as well as the integer powers of our matrices. Overall, it would be interesting to study the interspecies aggression behavior of other higher predators that occur independent of the abundance of their common prey species and look for patterns within ecosystems across many predators for high-order negative correlations in species interactions and their effects on ecological stability (see patterns discussed in Ref. [50]).
On the other hand, ancient humans and ancient dogs who shared many prey species likely hunted together: a high-order interaction, as opposed to a high-order correlation in their direct interaction, since it depends on presence of another species. However, they later seem to have developed a direct interaction of companionship independent of their shared prey; such companionship among predators could be an interesting angle to investigate high-order positive correlations as in Sec. IIB. Thus, in order to motivate the matrix structure in Sec. IIB, we focus on another hypothetical scenario inspired by the interaction of ancient humans and dogs, which again is meant to be mostly symbolic. We will take rabbits as their common prey. Let us assume ancient humans fed on rabbits (qHR > 0, qRH < 0) and dogs fed on rabbits (qDR > 0, qRD < 0). Then, cooperative hunting evolved (a high-order interaction, not correlation: humans hunted rabbits more efficiently in the presence of dogs). However, humans then over time also evolved a direct companionship with dogs, where even in the absence of rabbits, humans provided shelter for dogs. Here, if we take the same approach as the lion and hyena model to calculate the newly evolved kHD, then we see that qHRqRD would be negative. Thus, for a direct favorable interaction between humans and dogs, we take kHD to be proportional to −qHRqRD. This motivates the negative sign in front of G2 in Sec. IIB.
In this hypothetical ancient human-dog example, we reasoned that the evolution of high-order interactions (e.g., cooperative hunting) could lead to evolution of high-order correlations in direct interactions. We are not aware of any conclusive evidence for this being a realistic mechanism, but it seems like an attractive possibility.
C. Future avenues
We dropped the connectivity fraction from May’s model, effectively setting it to 1, since it becomes more subtle in our framework—the connectivity in general increases as we raise our matrices to different powers, which introduces interactions among otherwise noninteracting (disconnected) species. A future avenue for investigation would thus be the implications of different levels as well as patterns of connectivity in our community matrices and the matrices that are used to construct them. Furthermore, it would be interesting to study the introduction of matrices with high-order correlations as community matrices into generalized Lotka-Volterra models. Likewise, comparing our matrices with steady-state Jacobian matrices from different models of high-order interactions should also be informative.
Importantly, as mentioned, future investigations are required to understand whether and how our models make sense when the full variety of species interactions in a large ecosystem are considered. We also acknowledge that even if high-order correlations do arise in a qualitatively similar fashion to our models, the appropriate quantitative description for them may still be different. For example, the proportionality we describe above as well as the way we do our averaging with N (for example, the factor in front of G2) are, after all, particular choices in our model that made sense to us [see Fig. 1(b) and description in Sec. IIA]. Additionally, while it seems likely that high-order correlations among species interactions do exist in some form in nature, it is of course unknown whether high-order correlations in practice even produce any of the various ecological stability behaviors that we predict. So our model is a very speculative one. Additionally, our models are phenomenological in nature, just like many other ecological models, and thus mechanistic studies (e.g., with evolutionary game theory) are required to check if they at all make sense in the context of evolution.
Although our models can perhaps be modified in the future, in their current form they involve introducing high-order correlations throughout the ecological network for all species, instead of for a few select group of species. In this light, it is interesting to consider the case of Amazonian birds, where many species of birds sharing similar resources, as opposed to just a few pairs, seem to have developed interspecies aggression [51] where they fight, for example, over territory. We think these kinds of settings with many species being involved in interspecies aggression could overall be fitting starting points to study the effect of high-order correlations on stability.
An important orthogonal avenue for consideration for biological relevance of our results is when whole ecosystem properties are under effective selective pressure. Typically, each species within an ecosystem is considered to be individually under selection. However, additional effective selection pressures on whole ecosystems can potentially be the case in microbiota attached to hosts (where the microbiota are taken to be ecosystems on their own): Here, selective pressures may perhaps act on not only individual microbial species but also on the microbial ecosystem as a whole through outputs of the ecosystem [5]. Thus, for example, if stability of the microbial ecosystem is a favorable aspect to the host, then our frameworks in Secs. IIA and IIB show recipes for achieving such favorable regimes that could thus emerge due to selection because of the advantage provided to the host, whatever the mechanistic basis. However, this argument would require evolutionary considerations, such as evolutionary game theory, to test its merits.
Perhaps a particularly important use for our framework could be in reverse, that is, to utilize the forms of correlation structures we propose to achieve stability in engineered ecosystems. While this seems out of reach with current technology, microbiota engineering is a rapidly developing field [52]. It seems reasonable to think that having stable microbiota in the human body could be a desirable feature. As bioengineering progresses, perhaps an improved version of the framework we propose could be utilized to help determine what modifications to make in human microbiota to make it more stable. Our framework is potentially attractive in this sense because it gives a recipe for modifying the stability of the ecosystem by introducing the same operation to each species interaction within the ecosystem, instead of having to specifically target few strongor weak species or perhaps having to know details of the species. It is, however, unclear to us what physical form (e.g., details of what should be included in a potential plasmid library) such a perturbation would take.
Overall, like many ecological models, ours are phenomenological and await consolidation and complementation via input from metabolics, genetics, as well as branches of evolutionary theory [5,53–55]. Understanding finite-size effects in our models is another avenue for future investigation [56,57]. We hope that as experimental challenges in studying species interactions are resolved [6,43,58,59], for example by using microbial communities as models of large ecosystems [5,60–65], our theoretical predictions will be rigorously tested.
ACKNOWLEDGMENTS
E.K. is supported by the Stanford Bio-X Graduate Fellowship and the Biophysics Ph.D. Program at Stanford University. A.R.D. acknowledges the HHMI (Faculty Scholar Award), and the NIH (R35GM130332). We thank Dr. William Gilpin, Dr. Po-Yi Ho, Samuel Bray, Dr. Bo Wang, and Dr. Kerwyn Casey Huang for discussion and feedback on the manuscript. We thank the three anonymous reviewers, whose suggestions helped improve the manuscript. E.K. conceived the idea, conducted the research and wrote the manuscript. E.K. and A.R.D. discussed and prepared the manuscript. The authors declare no competing interests.
APPENDIX
1. Squared interaction matrix Sherrington-Kirkpatrick model
The Sherrington-Kirkpatrick spin-glass model is an Ising model where infinite-ranged random interactions couple the spins in the absence of an external field [66]. The random spin-spin interaction matrix J (the Hessian of the Ising Hamiltonian) has entries that are independent and identically Gaussian distributed. In order to study next-to-nearest-neighbor correlations, Dean and Ritort [40] replaced the interaction matrix in the Sherrington-Kirkpatrick model with a “squared interaction matrix,” namely JJT.
2. Section IIA details
When we refer to the eigenvalue distribution of a finite-sized random matrix, we consider the approximation of the ensemble average eigenvalue distribution from many instantiations of the matrix. For large N [13], the largest eigenvalue real part in the eigenvalue distribution of , where G is defined as in the manuscript, can be found as follows. Note that the last two terms share the same set of eigenvectors, which are also eigenvectors of R = RI where I is the identity matrix. In general, if v is an eigenvalue of G and χ is a polynomial, then χ(v) is an eigenvalue of χ(G). Thus the largest eigenvalue real part in the eigenvalue distribution of M2,β approaches for large N. To find the critical interaction strength σc above which the ecosystem becomes unstable, we equate this limiting largest eigenvalue real part to 0 and solve for σc, which gives for M2,β.
We will approach the community matrix
| (A1) |
similarly. For F = 3, that is, M3, the largest eigenvalue real part approaches for large N. Equating this to 0 and solving for the critical interaction strength gives
| (A2) |
In the case of lim F → ∞, we rewrite MF as . Thus, using the Taylor series (convergent for −1 < x < 1), we get the approached largest eigenvalue real part for limF→∞ MF as for large N as long as . Under the condition , we can solve for when the largest eigenvalue real part, for large N, is equal to 0 which gives .
In the case of the community matrix , we can rearrange to get . The last term is recognized as simply N times the matrix exponential of G, which leads to the largest eigenvalue real part approaching for large N. Thus, we can solve to get .
3. Section IIB details
As described in Appendix 2, we again consider how points map to each other in the eigenvalue distributions. The eigenvalues of Gc lie inside the ellipse in the complex plane for large N. We can calculate real part of eigenvalues of as follows. The eigenvalue x + iy in the eigenvalue distribution of Gc will map to , the corresponding eigenvalue of Mc,−2. At the ellipse boundary of the approached eigenvalue distribution of Gc for large N, and the real part of Ψ becomes . This is maximized when giving . However, the range of possible x is restricted to , so when , that is, , the maximization within the range occurs at .
The largest eigenvalue real part, for large N, thus approaches
for , and
for where .
Thus, when , the ecosystem is stable under the condition m ⩽ 0. This gives a critical interaction strength down to the threshold species diversity N = NT where . Rearranging, we find .
When , the ecosystem is stable as long as m2 ⩽ 0. which gives strength, we start with solving m2 = 0, which gives the curves . Note that when σ = ω−, is not satisfied. Thus in this regime, σc = ω+.
To summarize, after rearranging and simplifications, the final piecewise function for the critical interaction strength σc is
for −1 < ρ < 1.
4. Software
Analytical results were found by hand, using Wolfram Mathematica version 12 and WolframAlpha search engine. Plots were made using Matlab version R2019a and further labeled in Microsoft PowerPoint. Figure 1 was partially made in BioRender (biorender.com).
References
- [1].Guedes FM, Garcia GS, Versieux LM, Matias LQ, and Alves M, Insights on underestimated Lentibulariaceae diversity in northeastern Brazil: New records and notes on distribution, diversity and endemism in the family, Braz. J. Bot 41, 867 (2018). [Google Scholar]
- [2].Karl SA, Castro ALF, Lopez JA, Charvet P, and Burgess GH, Phylogeography and conservation of the bull shark (Carcharhinus leucas) inferred from mitochondrial and microsatellite DNA, Conserv. Genet 12, 371 (2011). [Google Scholar]
- [3].Coyte KZ and Rakoff-Nahoum S, Understanding competition and cooperation within the mammalian gut microbiome, Curr. Biol 29, R538 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [4].Gilbert J, Blaser MJ, Caporaso JG, Jansson J, Lynch SV, and Knight R, Current understanding of the human microbiome, Nat. Med 24, 392 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [5].Foster KR, Schluter J, Coyte KZ, and Rakoff-Nahoum S, The evolution of the host microbiome as an ecosystem on a leash, Nature (London) 548, 43 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [6].Widder S, Allen RJ, Pfeiffer T, Curtis TP, Wiuf C, Sloan WT, Cordero OX, Brown SP, Momeni B, Shou W, Kettle H, Flint HJ, Haas AF, Laroche B, Kreft J-U, Rainey PB, Freilich S, Schuster S, Milferstedt K, van der Meer JR, Großkopf T, Huisman J, Free A, Picioreanu C, Quince C, Klapper I, Labarthe S, Smets BF, Wang H, and Soyer OS, Challenges in microbial ecology: Building predictive understanding of community function and dynamics, ISME J. 10, 2557 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [7].May RM, Will a large complex system be stable? Nature (London) 238, 413 (1972). [DOI] [PubMed] [Google Scholar]
- [8].Allesina S and Tang S, The stability–complexity relationship at age 40: A random matrix perspective, Popul. Ecol 57, 63 (2015). [Google Scholar]
- [9].Namba T, Multi-faceted approaches toward unravelling complex ecological networks, Popul. Ecol 57, 3 (2015). [Google Scholar]
- [10].Bairey E, Kelsic ED, and Kishony R, High-order species interactions shape ecosystem diversity, Nat. Commun 7, 12285 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [11].Ginibre J, Statistical ensembles of complex, quaternion, and real matrices, J. Math. Phys 6, 440 (1965). [Google Scholar]
- [12].Girko VL, Circular law, Theory Probab. Appl 29, 694 (1985). [Google Scholar]
- [13].Tao T, Vu V, and Krishnapur M, Random matrices: Universality of ESDs and the circular law, Ann. Probab 38, 2023 (2010). [Google Scholar]
- [14].Allesina S and Tang S, Stability criteria for complex ecosystems, Nature (London) 483, 205 (2012). [DOI] [PubMed] [Google Scholar]
- [15].Novak M, Yeakel JD, Noble AE, Doak DF, Emmerson M, Estes JA, Jacob U, Tinker MT, and Wootton JT, Characterizing species interactions to understand press perturbations: What is the community matrix? Annu. Rev. Ecol. Evol. Syst 47, 409 (2016). [Google Scholar]
- [16].Ho H-C, Tylianakis JM, and Pawar S, Behaviour moderates the impacts of food-web structure on species coexistence, Ecol. Lett 24, 298 (2020). [DOI] [PubMed] [Google Scholar]
- [17].Stone L, The feasibility and stability of large complex biological networks: A random matrix approach, Sci. Rep 8, 8246 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [18].Dougoud M, Vinckenbosch L, Rohr RP, Bersier L-F, and Mazza C, The feasibility of equilibria in large ecosystems: A primary but neglected concept in the complexity-stability debate, PLoS Comput. Biol 14, e1005988 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [19].Grilli J, Adorisio M, Suweis S, Barabás G, Banavar JR, Allesina S, and Maritan A, Feasibility and coexistence of large ecological communities, Nat. Commun 8, 14389 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [20].Stone L, The Google matrix controls the stability of structured ecological and biological networks, Nat. Commun 7, 12857 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [21].Landi P, Minoarivelo HO, Brännström Å, Hui C, and Dieckmann U, Complexity and stability of ecological networks: A review of the theory, Popul. Ecol 60, 319 (2018). [Google Scholar]
- [22].Fyodorov YV and Khoruzhenko BA, Nonlinear analogue of the May–Wigner instability transition, Proc. Natl. Acad. Sci. U.S.A 113, 6827 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [23].Mougi A and Kondoh M, Diversity of interaction types and ecological community stability, Science 337, 349 (2012). [DOI] [PubMed] [Google Scholar]
- [24].Jacquet C, Moritz C, Morissette L, Legagneux P, Massol F, Archambault P, and Gravel D, No complexity–stability relationship in empirical ecosystems, Nat. Commun 7, 12573 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [25].Allesina S, Grilli J, Barabás G, Tang S, Aljadeff J, and Maritan A, Predicting the stability of large structured food webs, Nat. Commun 6, 7842 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [26].Coyte KZ, Schluter J, and Foster KR, The ecology of the microbiome: Networks, competition, and stability, Science 350, 663 (2015). [DOI] [PubMed] [Google Scholar]
- [27].Kokkoris GD, Jansen VAA, Loreau M, and Troumbis AY, Variability in interaction strength and implications for biodiversity, J. Anim. Ecol 71, 362 (2002). [Google Scholar]
- [28].Tang S, Pawar S, and Allesina S, Correlation between interaction strengths drives stability in large ecological networks, Ecol. Lett 17, 1094 (2014). [DOI] [PubMed] [Google Scholar]
- [29].Gravel D, Massol F, and Leibold MA, Stability and complexity in model meta-ecosystems, Nat. Commun 7, 12457 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [30].Okuyama T and Holland JN, Network structural properties mediate the stability of mutualistic communities, Ecol. Lett 11, 208 (2008). [DOI] [PubMed] [Google Scholar]
- [31].Pearce MT, Agarwala A, and Fisher DS, Stabilization of extensive fine-scale diversity by ecologically driven spatiotemporal chaos, Proc. Natl. Acad. Sci. U.S.A 117, 14572 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [32].Plerou V, Gopikrishnan P, Rosenow B, Amaral LAN, Guhr T, and Stanley HE, Random matrix approach to cross correlations in financial data, Phys. Rev. E 65, 066126 (2002). [DOI] [PubMed] [Google Scholar]
- [33].Bahri Y, Kadmon J, Pennington J, Schoenholz SS, Sohl-Dickstein J, and Ganguli S, Statistical mechanics of deep learning, Annu. Rev. Condens. Matter Phys 11, 501 (2020). [Google Scholar]
- [34].Manning ML and Liu AJ, A random matrix definition of the boson peak, Europhys. Lett 109, 36002 (2015). [Google Scholar]
- [35].Edelman A and Rao NR, Random matrix theory, Acta Numer. 14, 233 (2005). [Google Scholar]
- [36].Edelman A and Sutton BD, From random matrices to stochastic operators, J. Stat. Phys 127, 1121 (2007). [Google Scholar]
- [37].Edelman A and Wang Y, Random matrix theory and its innovative applications, in Advances in Applied Mathematics, Modeling, and Computational Science, Fields Institute Communications, edited by Melnik R and Kotsireas IS (Springer US, Boston, MA, 2013), pp. 91–116. [Google Scholar]
- [38].Franz S, Parisi G, Urbani P, and Zamponi F, Universal spectrum of normal modes in low-temperature glasses, Proc. Natl. Acad. Sci. U.S.A 112, 14539 (2015). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [39].Guhr T, Müller–Groeling A, and Weidenmüller HA, Random-matrix theories in quantum physics: Common concepts, Phys. Rep 299, 189 (1998). [Google Scholar]
- [40].Dean DS and Ritort F, Squared interaction matrix Sherrington-Kirkpatrick model for a spin glass, Phys. Rev. B 65, 224209 (2002). [Google Scholar]
- [41].Tu C, Suweis S, Grilli J, Formentin M, and Maritan A, Reconciling cooperation, biodiversity and stability in complex ecological communities, Sci. Rep 9, 5580 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [42].Wootton JT, The nature and consequences of indirect effects in ecological communities, Annu. Rev. Ecol. Syst 25, 443 (1994). [Google Scholar]
- [43].Wootton JT and Emmerson M, Measurement of interaction strength in nature, Annu. Rev. Ecol. Evol. Syst 36, 419 (2005). [Google Scholar]
- [44].Grilli J, Barabás G, Michalska-Smith MJ, and Allesina S, Higher-order interactions stabilize dynamics in competitive network models, Nature (London) 548, 210 (2017). [DOI] [PubMed] [Google Scholar]
- [45].Terry JCD, Morris RJ, and Bonsall MB, Interaction modifications lead to greater robustness than pairwise non-trophic effects in food webs, J. Anim. Ecol 88, 1732 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [46].Mickalide H and Kuehn S, Higher-order interaction between species inhibits bacterial invasion of a phototroph-p microbial community, Cell Syst. 9, 521 (2019). [DOI] [PubMed] [Google Scholar]
- [47].Sanchez A, Defining higher-order interactions in synthetic ecology: Lessons from physics and quantitative genetics, Cell Syst. 9, 519 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [48].Sommers HJ, Crisanti A, Sompolinsky H, and Stein Y, Spectrum of Large Random Asymmetric Matrices, Phys. Rev. Lett 60, 1895 (1988). [DOI] [PubMed] [Google Scholar]
- [49].Aceituno PV, Rogers T, and Schomerus H, Universal hypotrochoidic law for random matrices with cyclic correlations, Phys. Rev. E 100, 010302 (2019). [DOI] [PubMed] [Google Scholar]
- [50].Palomares F and Caro TM, Interspecific killing among mammalian carnivores, Am. Nat 153, 492 (1999). [DOI] [PubMed] [Google Scholar]
- [51].Robinson SK and Terborgh J, Interspecific aggression and habitat selection by Amazonian airds, J. Anim. Ecol 64, 1 (1995). [Google Scholar]
- [52].Chang C-Y, Vila JCC, Bender M, Li R, Mankowski MC, Bassette M, Borden J, Golfier S, Sanchez PGL, Waymack R, Zhu X, Diaz-Colunga J, Estrela S, Rebolleda-Gomez M, and Sanchez A, Engineering complex communities by directed evolution, Nat. Ecol. Evol 5, 1011 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [53].Thompson JN, The evolution of species interactions, Science 284, 2116 (1999). [DOI] [PubMed] [Google Scholar]
- [54].Hansen SK, Rainey PB, Haagensen JAJ, and Molin S, Evolution of species interactions in a biofilm community, Nature (London) 445, 533 (2007). [DOI] [PubMed] [Google Scholar]
- [55].Allen R and Waclaw B, Antibiotic resistance: A physicist’s view, Phys. Biol 13, 045001 (2016). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [56].Tracy CA and Widom H, The distributions of random matrix theory and their applications, in New Trends in Mathematical Physics, edited by Sidoravičius V (Springer, Netherlands, Dordrecht, 2009), pp. 753–765. [Google Scholar]
- [57].Bai Z and Silverstein JW, Convergence rates of ESD, in Spectral Analysis of Large Dimensional Random Matrices, Springer Series in Statistics, edited by Bai Z and Silverstein JW (Springer, New York, 2010), pp. 181–221. [Google Scholar]
- [58].Carrara F, Giometto A, Seymour M, Rinaldo A, and Altermatt F, Inferring species interactions in ecological communities: A comparison of methods at different levels of complexity, Methods Ecol. Evol 6, 895 (2015). [Google Scholar]
- [59].Harris DJ, Inferring species interactions from co-occurrence data with Markov networks, Ecology 97, 3308 (2016). [DOI] [PubMed] [Google Scholar]
- [60].Nadell CD, Drescher K, and Foster KR, Spatial structure, cooperation and competition in biofilms, Nat. Rev. Microbiol 14, 589 (2016). [DOI] [PubMed] [Google Scholar]
- [61].Stein RR, Bucci V, Toussaint NC, Buffie CG, Rätsch G, Pamer EG, Sander C, and Xavier JB, Ecological modeling from time-series inference: Insight into dynamics and stability of intestinal microbiota, PLoS Comput. Biol 9, e1003388 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [62].Ratzke C, Barrere J, and Gore J, Strength of species interactions determines biodiversity and stability in microbial communities, Nat. Ecol. Evol 4, 376 (2020). [DOI] [PubMed] [Google Scholar]
- [63].Goodman AL, McNulty NP, Zhao Y, Leip D, Mitra RD, Lozupone CA, Knight R, and Gordon JI, Identifying genetic determinants needed to establish a human gut symbiont in its habitat, Cell Host Microbe 6, 279 (2009). [DOI] [PMC free article] [PubMed] [Google Scholar]
- [64].Foster K and Bell T, Competition, Not cooperation, dominates interactions among culturable microbial species, Curr. Biol 22, 1845 (2012). [DOI] [PubMed] [Google Scholar]
- [65].Coyte K, Rao C, Rakoff-Nahoum S, and Foster K, Community assembly in the microbiome: Ecological insights into infant microbiome development, Access Microbiol. 1, 241 (2019). [Google Scholar]
- [66].Sherrington D and Kirkpatrick S, Solvable Model of a Spin-Glass, Phys. Rev. Lett 35, 1792 (1975). [Google Scholar]
