Next Article in Journal
Surrogate Data Preserving All the Properties of Ordinal Patterns up to a Certain Length
Next Article in Special Issue
Information Across the Ecological Hierarchy
Previous Article in Journal
Thermal Optimization of a Dual Pressure Goswami Cycle for Low Grade Thermal Sources
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Communication

Derivations of the Core Functions of the Maximum Entropy Theory of Ecology

by
Alexander B. Brummer
1,2 and
Erica A. Newman
3,*
1
Department of Biomathematics, David Geffen School of Medicine, University of California, Los Angeles, CA 90095, USA
2
Department of Ecology and Evolutionary Biology, University of California, Los Angeles, CA 90095, USA
3
Department of Ecology and Evolutionary Biology, University of Arizona, Tucson, AZ 85721, USA
*
Author to whom correspondence should be addressed.
Entropy 2019, 21(7), 712; https://doi.org/10.3390/e21070712
Submission received: 6 May 2019 / Revised: 15 July 2019 / Accepted: 15 July 2019 / Published: 21 July 2019
(This article belongs to the Special Issue Information Theory Applications in Biology)

Abstract

:
The Maximum Entropy Theory of Ecology (METE), is a theoretical framework of macroecology that makes a variety of realistic ecological predictions about how species richness, abundance of species, metabolic rate distributions, and spatial aggregation of species interrelate in a given region. In the METE framework, “ecological state variables” (representing total area, total species richness, total abundance, and total metabolic energy) describe macroecological properties of an ecosystem. METE incorporates these state variables into constraints on underlying probability distributions. The method of Lagrange multipliers and maximization of information entropy (MaxEnt) lead to predicted functional forms of distributions of interest. We demonstrate how information entropy is maximized for the general case of a distribution, which has empirical information that provides constraints on the overall predictions. We then show how METE’s two core functions are derived. These functions, called the “Spatial Structure Function” and the “Ecosystem Structure Function” are the core pieces of the theory, from which all the predictions of METE follow (including the Species Area Relationship, the Species Abundance Distribution, and various metabolic distributions). Primarily, we consider the discrete distributions predicted by METE. We also explore the parameter space defined by the METE’s state variables and Lagrange multipliers. We aim to provide a comprehensive resource for ecologists who want to understand the derivations and assumptions of the basic mathematical structure of METE.

Graphical Abstract

1. The Maximum Entropy Theory of Ecology

Many of the central questions of macroecology ask how patterns of species richness, abundance, and body size arise from ecosystems, how these patterns scale over increasing area, and how they interrelate [1]. Many macroecological distributions that quantify aspects of community structure, such as the Species–Area Relationship, the Species Abundance Distribution [2], size–density relationships [3,4,5], and the allometric scaling of metabolic rates of biological organisms within a community [6,7,8] have been studied independently, revealing general properties that may be universal across ecosystems. The Maximum Entropy Theory of Ecology (METE) [9,10,11], is a theoretical framework of macroecology that makes a variety of realistic ecological predictions about the diversity and structure of ecological communities [12,13,14,15,16,17,18,19,20]. These predictions relate species richness and abundance to metabolic rate distributions and spatial aggregation of species in a given region. Because METE makes a set of interrelated predictions about community structure, it has the potential to unify disparate parts of macroecology into a single mathematical framework.
The underlying mathematics of METE relies on a method termed “MaxEnt”: the maximization of information entropy. MaxEnt uses the method of Lagrange multipliers to find probability distributions that underlie statistical phenomena. For METE, the MaxEnt method is applied to problems involving measurable “ecological state variables” that describe macroecological properties of an ecosystem (Section 3.1). METE is a “top-down” theory that makes no assumptions regarding the particular details of, or mechanistic interactions between, the species being studied. This is different from other “bottom-up” theories involving the combinatorics of micro-states that result in Boltzmann distributions [21,22,23]. As such, its focus is the maximization of the Shannon information entropy [24,25].
In this paper, we will first demonstrate how information entropy is maximized for the general case of a distribution, which has empirical information that provides constraints on the overall predictions. We then introduce the ecological state variables A 0 , S 0 , N 0 , and E 0 , representing total area, total number of species, total abundance, and total metabolic energy of an ecological system, and use them with the method of information entropy maximization to show how METE’s two core functions are derived. These functions, called the “Spatial Structure Function” and the “Ecosystem Structure Function” are the core pieces of the theory, from which all the predictions of METE follow (including the Species–Area Relationship, the Species Abundance Distribution, and various metabolic distributions). Primarily, we consider the discrete distributions predicted by METE. These derivations are not provided in their entirety in Harte (2011) [10], but are the derivations that will produce the core distributions of the Spatial Structure Function and the Ecosystem Structure Function as presented in that work.
In the process of constructing the core structure functions, we derive the Lagrange multipliers that arise from the MaxEnt process, and characterize the ecosystems modeled by METE. We investigate the parameter space of these Lagrange multipliers, and evaluate some of the simplifying assumptions that have been used previously to estimate the Lagrange multiplier values.
We aim to provide a comprehensive resource for ecologists who want to understand the derivations and assumptions of the basic structure of METE. We hope that by providing explicit derivations of METE, we will encourage other ecologists to modify the framework, apply it to their own systems, and make progress in this valuable area of research.

2. Information Entropy Maximization: A Primer

In this section we present the equations that are necessary for information entropy maximization. We then use these equations to derive the form of the probability distribution resulting from the simplest case of a discrete, one-dimensional distribution. Although this derivation will not be new for regular readers of Entropy, we include it for ecologists who are interested in this theoretical framework, because this chain of logic will be applied to the constraints that characterize METE in subsequent sections.

2.1. Writing Down the Constraints

As observed by Haegeman and Etienne (2010) [26], probability distributions with higher information entropy encode less information. Therefore, a probability distribution that corresponds to empirical data without imputing any additional information will maximize information entropy. This is also true of a probability distribution that conforms to a constraint (as, for example, a constraint on the value of the mean) without making additional assumptions or adding other information. In this sense, maximum information entropy methods give the most impartial estimate of the shape of the underlying probability distribution for an observable. MaxEnt also gives the least biased estimators of the moments of a distribution (which include the range, mean, and variance) [25], meaning that there is no difference, for example, between the estimated mean and the empirical mean of a distribution. This feature of MaxEnt is by design, such that the moments of a probability distribution are constrained by the empirical values of those moments.
Here we present the primary equations that regularly occur in information entropy maximization. The general expression for K constraints on the mean values of the variables f k ( n ) , where n follows the distribution p ( n ) , is expressed as:
n = 1 n = N f k ( n ) p ( n ) = f k .
An additional constraint provides for the normalization of the probability distributions, and is expressed as:
n = 1 n = N p ( n ) = 1 .
The procedure of maximizing entropy results in a particular form of the probability distribution and partition function, proven by Jaynes [25] to result in the least-biased probability p ( n ) that satisfies the constraint equation of Equation (1) and the normalization constraint of Equation (2),
p ( n ) = 1 Z exp k = 1 k = K λ k f k ( n ) ,
where Z is the partition function that serves to normalize the probability distribution, and is expressed as,
Z = n = 1 n = N exp k = 1 k = K λ k f k ( n ) .
Generally, when one wants to use the tools of MaxEnt, one will need to have data from which constraints on the distributions can be inferred (such as average values). Then a process of algebra and numerical methods will begin during which one solves for the Lagrange multipliers λ k . Once the Lagrange multipliers have been determined, then the form of the probability distributions can be inferred (or graphed). For examples using Equations (1)–(4), see Appendix A.1. Equations (3) and (4) are written here for reference, as we will use them repeatedly. In the next section we derive Equations (3) and (4) by maximizing the Shannon information entropy.

2.2. The Method of Lagrange Multipliers and Optimization

Here we derive the generic probability distribution p ( n ) for the specific scenario of a discrete variable with one constraint (beyond normalization). This will serve as a simpler example for deriving the core distributions, or structure functions of METE.
What does it mean for us to “maximize Shannon information entropy”? While the explicit form of the probability distribution, p ( n ) , is unknown, we have information about some of its properties that will serve to constrain its functional form. However, there may exist more than one function p ( n ) that satisfies our constraints, so we must choose between them. By maximizing Shannon information entropy we are maximizing the uncertainty inherent in our function p ( n ) , and choosing the unique form of p ( n ) that represents the least amount of bias in regard to our measurements. The expression for Shannon information entropy [24] is:
H = n = N m i n N m a x p ( n ) ln ( p ( n ) ) .
We know that no matter what the form of the probability distribution is, it should be properly normalized (that is, the sum of the probabilities of all possible outcomes will equal one). This gives us our normalization constraint, which for a single, discrete variable takes the form of
n = N m i n N m a x p ( n ) = 1 .
Finally, we will likely have some information about an aggregated measurement of the variable in our system. This information constitutes our additional constraint, or constraints. Letting f ( n ) represent a measured value dependent on n, and assuming that the aggregated measurement we have is the mean value of f ( n ) , then we can express our knowledge regarding this measurement of an observable quantity that represents some aggregated or average value using the mathematical definition of an average.
n = N m i n N m a x f ( n ) p ( n ) = f .
Thus, the definition itself constitutes our constraint.
To maximize Shannon information entropy subject to our constraints, we employ the tools of variational calculus and the method of undetermined Lagrange multipliers. A concrete example of this is given in Appendix A.1. We begin by constructing the function F , which is an expression that incorporates the measure of Shannon information entropy and the additional constraints.
F = n = N m i n N m a x p ( n ) ln ( p ( n ) ) λ 0 n = N m i n N m a x p ( n ) 1 λ 1 n = N m i n N m a x f ( n ) p ( n ) f .
The constraints are written in such a way so that each constraint is independent of the other, and each term inside the square brackets is zero. In this way, we can incorporate multiple constraints without changing the overall value of F . When we perform the maximization step to find local optima, the presence of the constraints will change the subsequent form of p ( n ) . That is, maximizing F will subsequently maximize the uncertainty represented by the Shannon information entropy, H, subject to the constraints. Thus we seek to solve for the functional form of p ( n ) that results from variations in F , due to variations in p ( n ) . Mathematically this is expressed as δ F / δ p ( n ) = 0 . Practically, this requires evaluating derivatives of each term in F with respect to p ( n ) , and setting the resulting equation equal to zero,
0 = ln ( p ( n ) ) + 1 λ 0 λ 1 f ( n ) .
Note that we can drop the summations at this point. Solving for p ( n ) yields,
p ( n ) = k exp λ 1 f ( n ) ,
where k = exp ( λ 0 + 1 ) . Imposing our normalization constraint n p ( n ) = 1 , we have
n k exp λ 1 f ( n ) = 1 .
Since k is independent of n, we can factor it out of the summation and solve for it to find,
k = 1 n exp λ 1 f ( n ) .
The expression n exp λ 1 f ( n ) comes up so often that it is given its own variable representation Z, the partition function, which will eventually just turn out to be a real-valued number,
Z = n exp λ 1 f ( n ) .
Thus, we can express the probability p ( n ) as,
p ( n ) = 1 Z exp λ 1 f ( n ) = exp λ 1 f ( n ) n exp λ 1 f ( n ) .
To find the explicit form of p ( n ) , one needs further information in the form of data. Having data, it is then possible to use the constraint equations to numerically solve for the undetermined Lagrange multipliers, and thus identify the form of the probability distribution p ( n ) . This relationship between data, the Lagrange multipliers, and the resulting form of the probability distribution is revisited for normal and log-normal distributions in Appendix A.3 and Appendix A.4, and is fundamental to the Maximum Entropy Theory of Ecology.

3. The Structure of METE

In this section, we introduce and discuss the ecological state variables common to macroecology, as used by METE. We apply the MaxEnt method to these ecological state variables to derive the core distributions of METE, namely the Spatial Structure Function, and the Ecosystem Structure Function [10,11].

3.1. A State Variable Theory

Much of macroecology is concerned with detecting patterns in ecosystems, either at large scale, or as an emergent property of scaling over larger aggregates of individuals, species, area, or time [27]. To detect these patterns, we must work with variables that are sufficiently coarse that they capture average conditions of some larger phenomena that is being modeled, or sufficiently aggregated that they apply across systems and capture certain generalities. For example, we may examine average abundance of all individuals in an area. The “average” may refer to an average of repeated measurements in different plots or subplots, for example, which can smooth out heterogeneity and model average conditions on a landscape. The “aggregated” nature of abundance refers to something slightly different, in that abundance measured will be a result of multiple processes, such as birth, death, emigration, and immigration [28]. Abundance therefore represents an “aggregate” metric of all of these processes. Similarly, “species” as an observable may have an average value when measured in many similar sized plots, but is itself an aggregate measure of biodiversity that ignores (or “coarse grains”) genetic variation among individuals, and processes such as hybridization. These variables are easily measured and compared across ecological systems, and have an overall generality and transferability that make them relevant to ecological studies at large scales.
Within METE, variables representing total area, total number of species, total abundance, and total metabolic energy of an ecological system are central to the definitions of the core probability distributions. These ecological state variables are represented as A 0 , S 0 , N 0 , and E 0 , respectively. They are static (not time-dependent), and can be used to model macroecological distributions of interest, such as the Species–Area Relationship, the Species Abundance Distribution, and various metabolic rate distributions, both within a species and across an entire community. This so-called “ASNE” version of METE, where “ASNE" represents the four state variables above, has been the subject of the most study [10], but other constraints featuring additional state variables are possible. In one case, METE has been extended to include higher taxonomic constraints [29].
It is worth clarifying that although “ecological state variables” may call to mind the true state variables of thermodynamics, the use of this term is merely an analogy to thermodynamics concepts [30], but differs in underlying justification and interpretation. Ecological state variables capture information that defines the state of the system at a given point in time and space, but cannot be interpreted as true macroscopic variables for many reasons, including the less-than-ideal behavior of the variables themselves. For example, S 0 , the total number of species in an area, neither adds nor averages when considering larger and larger areas. It is therefore neither truly an intensive nor an extensive variable. “Species” as a defined concept only applies to a fraction of real organisms [31], and is used in macroecology as an aggregating variable, either sorting organisms by their actual species designation, or as a stand-in for phylogenetic relatedness or functional traits [32]. Because of these and other issues, ecological state variables are seen to embody information at an aggregate level, and are not interpreted as direct translation from countable microstates to macrostates, though this has been the subject of some debate [30,33,34,35]. This raises a related issue, which is the use of the Shannon form of entropy in METE and the information-entropy interpretation.
Work with applications of entropy maximization to macroecological patterns began in 2006 with Shipley, Vile, and Garnier’s use of Shannon information entropy in the problem of constructing Species Abundance Distributions [33]. This advance sparked a small explosion of the use of entropy maximization in macroecology, including applications to new problems (variously using frequentist and Bayesian interpretations of MaxEnt), a search for generalities among ecosystems, and among the approaches themselves [9,13,14,17,36,37,38,39,40,41,42,43,44,45]. It also sparked a debate about the use of information entropy in macroecology, in which Shipley [30,33] and Haegeman and Loreau [34,35], discuss the use and justification of Shannon information entropy in ecology. In this exchange, Shipley maintains that ecological systems are more complex in their constraints than systems of particles, and that we may never know (or be able to measure) all of the relevant constraints. He therefore suggests focusing on the most important constraints, and using information entropy to evaluate the constraints and distributions. Although Haegeman and Loreau make a clear argument that the frequentist interpretation of MaxEnt should be complementary to the information entropy interpretation, Shipley disagreed, arguing incorporating all relevant constraints may not be possible for ecological systems, but would be needed for the constraint-based information entropy and state-counting, combinatorics interpretations of entropy to be equivalent. A later exchange between Favretti [21,23] and Harte [22] revisits this topic, and more productive work may be done to address the issues raised in all of these exchanges.
METE follows the logic of Shipley’s arguments about the use of important constraints in complex ecosystems, and uses the information entropy approach. In the following sections, we will demonstrate how METE’s ecological state variables and their ratios are used with the MaxEnt procedure to constrain patterns of individuals over area for the Spatial Structure Function, and patterns of metabolic requirement (or body size) across individuals and abundances per species through the Ecosystem Structure Function.

3.2. The Spatial Structure Function

This distribution goes by multiple names among practitioners, including the “Pi distribution” (informally), the “Species-level Spatial Abundance Distribution” (SSAD) [14,46], and the Spatial Structure Function (SSF) [47], which is how we will refer to it here. The SSF is a by-species prediction of the clustering of individuals over space, and is defined as the “probability that n individuals of a species are found in a cell of area A if it has n 0 individuals in A 0 ” [10]. We derive this distribution before the Ecosystem Structure Function for pedagogical reasons, as it is a one-dimensional distribution for a discrete variable. This variable is the the abundance of a single species, n, at a given scale, A, where A is a smaller area within the total area under consideration, A 0 . The variables that are used to constrain the system are A, A 0 , and the abundance of a single species at the total spatial scale, n 0 . The derivation of the Spatial Structure Function will follow exactly the general approach provided in the previous section. We represent this function as Π ( n | A , n 0 , A 0 ) . To ensure that the Spatial Structure Function is properly normalized, we express our normalization constraint as,
n = 0 n 0 Π ( n ) = 1 .
where we have dropped the conditional variables A , n 0 , and A 0 for notational convenience. Note also that the lower limit on the summation is set to n = 0 . This is because n represents the per-species abundance, and it is possible for a species that has n 0 individuals to have zero abundance in an area A.
Our additional constraint comes from the simultaneous definition and measurement of the average value of the per-species abundance n ¯ . From measurement, n ¯ = n 0 A / A 0 . From definition, n ¯ = n = 0 n 0 n Π ( n ) . Combining these two expressions gives us our other constraint,
n = 0 n 0 n Π ( n ) = n 0 A A 0 .
Now, as we want to maximize uncertainty, or Shannon information entropy, related to the Spatial Structure Function subject to the above two constraints, we construct the function F in the form,
F = n = 0 n 0 Π ( n ) ln ( Π ( n ) ) λ 0 n = 0 n 0 Π ( n ) 1 λ Π n = 0 n 0 n Π ( n ) n 0 A A 0 .
From here we maximize F by evaluating the expression δ F / δ Π ( n ) = 0 . This results in,
0 = ln ( Π ( n ) ) + 1 λ 0 ( 1 ) λ Π n .
From here we can solve for Π ( n ) to arrive at,
Π ( n ) = k exp { λ Π n }
where k = exp { ( λ 0 + 1 ) } . Imposing our normalization constraint, we can write,
n = 0 n 0 k exp { λ k n } = 1 .
Because k is independent of n, we can factor it out of the summation and rewrite as,
k = 1 n = 0 n 0 exp { λ Π n } .
Conventionally this normalization constant is defined as 1 / Z and denoted as the partition function, where,
Z = n = 0 n 0 exp { λ Π n } .
This brings us to the following compact expression for the Spatial Structure Function,
Π ( n ) = 1 Z exp { λ Π n } .
In order to actually calculate, or graph, the Spatial Structure Function for a given set of values A 0 , n 0 , and A, we must first calculate the Lagrange multiplier λ Π using our constraint equation relating the measured average per-species abundance n ¯ = n 0 A / A 0 to the definition of the average per-species abundance n ¯ = n = 0 n 0 n Π ( n ) . This time, substituting our known expression for Π ( n ) , we have,
n = 0 n 0 n Z exp { λ Π n } = n 0 A A 0 .
Recalling that Z is independent of n, it can be pulled out of the summation. Furthermore, substituting our definition of Z, but using m as a dummy index instead of n to avoid mixing up our indices, we can write,
n = 0 n 0 n exp { λ Π n } m = 0 n 0 exp { λ Π m } = n 0 A A 0 .
In principle, the above expression allows one to solve for the Lagrange multiplier λ Π . However, analytical solutions for λ Π are intractable, thus one must resort to numerical methods. We graph the parameter space of the state variables A 0 , n 0 , n and λ Π in Figure 1.

3.3. The Ecosystem Structure Function

The Ecosystem Structure Function (ESF) is the second of METE’s core distributions. Unlike the SSF, it does not have a simple definition, but can be described as a kind of “container function” that describes the probability space, R ( n , ϵ ) , of how abundances are assigned to species, n, and how metabolic energy, ϵ , is partitioned over individuals in a community. As described by Bertram (2015) [49], R ( n , ϵ ) is a joint probability distribution, with R ( n , ϵ ) d ϵ by definition being “the probability that a randomly selected species has abundance n, and that a randomly selected individual from any species with abundance n has metabolic requirement in the interval ( ϵ , ϵ + d ϵ )” (page 55). This definition differs from and corrects the one given in Harte (2011) [10] (also used in [45]), and is consistent with a later correction to the Harte (2011) definition [21] (accepted by Harte [22]). The ESF is the distribution from which the Species Abundance Distribution, Species–Area Relationship, and metabolic rate distributions [14,18] can eventually be derived. Constrained by empirical values measured from real systems, the ESF produces actual predictions of these probability distributions.
As the ESF R ( n , ϵ ) , depends on one discrete variable n, and one continuous variable ϵ , we will this time need to integrate over ϵ in addition to summing over n. Thus, our normalization constraint now takes the form of,
n = 1 N 0 ϵ = 1 E 0 R ( n , ϵ ) d ϵ = 1 .
Note that in the above expression we have specified the lower limit of metabolism as, ϵ m i n = 1 . In so doing we have defined metabolism as a dimensionless quantity. This decision has several consequences. For comparison against data, a researcher must standardize their metabolic measurements to conform with this definition. That is, they divide all metabolic measurements by the smallest measured value [10,14,19]. A second consequence of this decision is that it preempts the need to incorporate reference distributions when expressing Shannon information entropy for a continuous variable [10,25].
Our additional constraints are aggregated measures of variables n and n ϵ , that is f 1 ( n ) = n , and f 2 ( n ϵ ) = n ϵ . The measures themselves are the ratios N 0 / S 0 and E 0 / S 0 , that is f 1 ( n ) = N 0 / S 0 , and f 2 ( n ϵ ) = E 0 / S 0 . This gives us the pair of constraints,
n = 1 N 0 ϵ = 1 E 0 n R ( n , ϵ ) d ϵ = N 0 S 0
n = 1 N 0 ϵ = 1 E 0 n ϵ R ( n , ϵ ) d ϵ = E 0 S 0 .
Now, the function F that we will want to maximize takes the form of
F = n = 1 N 0 ϵ = 1 E 0 R ( n , ϵ ) ln ( R ( n , ϵ ) ) d ϵ λ 0 n = 1 N 0 ϵ = 1 E 0 R ( n , ϵ ) d ϵ 1 λ 1 n = 1 N 0 ϵ = 1 E 0 n R ( n , ϵ ) d ϵ N 0 S 0 λ 2 n = 1 N 0 ϵ = 1 E 0 n ϵ R ( n , ϵ ) d ϵ E 0 S 0 .
As before, we maximize F by evaluating δ F / δ R = 0 . This results in,
0 = ln ( R ( n , ϵ ) ) + 1 λ 0 1 λ 1 n λ 2 n ϵ .
Solving for R ( n , ϵ ) gives,
R ( n , ϵ ) = k exp { λ 1 n λ 2 n ϵ } ,
where k = exp { ( 1 + λ 0 ) } . Using our normalization condition to define Z we have,
Z = n = 1 N 0 ϵ = 1 E 0 exp { λ 1 n λ 2 n ϵ } d ϵ .
This allows us to express the full form of the Ecosystem Structure Function as,
R ( n , ϵ ) = exp { λ 1 n λ 2 n ϵ } m = 1 N 0 ϵ = 1 E 0 exp { λ 1 m λ 2 m ϵ } d ϵ ,
where we have replaced n with m and ϵ and ϵ in the denominator to ensure there is no confusion over which variables belong in the numerator or denominator.
At this point we can simplify the expression for Z by performing the integral over ϵ . Factoring out the term in Z independent of ϵ we have,
Z = m = 1 N 0 exp { λ 1 m } ϵ = 1 E 0 exp { λ 2 m ϵ } d ϵ .
After integrating, we have
Z = m = 1 N 0 exp { λ 1 m } λ 2 m exp { λ 2 m } exp { λ 2 m E 0 } ,
and with further simplification,
Z = 1 λ 2 m = 1 N 0 1 m exp { m β } exp { m σ } ,
where β = λ 1 + λ 2 and σ = λ 1 + E 0 λ 2 .
From here we can examine the constraint Equations (27) and (28). In particular, now that we have an explicit form for the structure function, we can perform the integrals in the constraint equations to fix the values of the unknown Lagrange multipliers in terms of the measured quantities N 0 , E 0 , and S 0 . Upon substitution of our expression for R ( n , ϵ ) into Equation (27) we have,
N 0 S 0 = 1 Z n = 1 N 0 ϵ = 1 E 0 n exp { n ( λ 1 + λ 2 ϵ ) } d ϵ .
Factoring from the integral the term independent of ϵ ,
N 0 S 0 = 1 Z n = 1 N 0 n exp { n λ 1 } ϵ = 1 E 0 exp { n λ 2 ϵ } d ϵ .
Upon integration,
N 0 S 0 = 1 Z n = 1 N 0 n exp { n λ 1 } exp { n λ 2 } exp { n λ 2 E 0 } n λ 2 ,
and with further simplification,
N 0 S 0 = 1 Z λ 2 n = 1 N 0 exp { n β } exp { n σ } ,
where β = λ 1 + λ 2 and σ = λ 1 + E 0 λ 2 .
Turning our attention now to constraint Equation (28), upon substitution of R ( n , ϵ ) we have,
E 0 S 0 = 1 Z n = 1 N 0 ϵ = 1 E 0 n ϵ exp { n ( λ 1 + λ 2 ϵ ) } d ϵ .
Factoring from the integral the term independent of ϵ ,
E 0 S 0 = 1 Z n = 1 N 0 n exp { n λ 1 } ϵ = 1 E 0 ϵ exp { n λ 2 ϵ } d ϵ .
After integrating by parts we have,
E 0 S 0 = 1 Z n = 1 N 0 n exp { n λ 1 } exp { n λ 2 } E 0 exp { n λ 2 E 0 } n λ 2 + exp { n λ 2 } exp { n λ 2 E 0 } ( n λ 2 ) 2 ,
and with further simplification,
E 0 S 0 = 1 Z n = 1 N 0 exp { n β } E 0 exp { n σ } λ 2 + exp { n β } exp { n σ } n λ 2 2 ,
where β = λ 1 + λ 2 and σ = λ 1 + E 0 λ 2 . Substituting in our expression for Z, we can write the integrated versions of the constraint equations in full as,
N 0 S 0 = n = 1 N 0 exp { n β } exp { n σ } m = 1 N 0 exp { m β } exp { m σ } m
E 0 S 0 = n = 1 N 0 exp { n β } E 0 exp { n σ } m = 1 N 0 exp { m β } exp { m σ } m + 1 λ 2 .
The values of λ 1 and λ 2 are often difficult to calculate by conventional means, so some approximations were used in Harte (2011). With the use of the software package meteR [47,48], which implements a number of METE’s predictions and tests them against empirical data sets, these approximations are no longer necessary. However, we consider them in more depth in Appendix B.

4. Relationships between State Variables and Lagrange Multipliers

By using the MaxEnt approach with the METE ecological state variables, we derive three Lagrange multipliers: λ Π associated with the Spatial Structure Function, and λ 1 and λ 2 , associated with the Ecosystem Structure Function. The METE Lagrange multipliers represent all the possible relationships between N 0 , S 0 , and E 0 , and METE’s predicted relationships of n, A, and A 0 . We graph these, along with the ecological state variables in their respective constraints, in Figure 1.
Examining λ 1 in panel (A), we see the greater influence of log( N 0 ) than S 0 on the overall value of the Lagrange multiplier λ 1 , and a compression of λ 1 values at low N 0 . This may correspond to METE’s own stated limitations, and its requirement that N > > 1 [10]. It also implies that λ 1 may be quite sensitive to the total area being sampled in empirical studies, and that this factor should be explicitly controlled for when comparing diversity patterns, such as Species Abundance Distributions, across plots. In panel (B), we can see a near-linear relationship on the log-log scale between λ 2 and log( E 0 ), while S 0 does not affect its value as greatly over this range of values. It is apparent, then, that the METE distributions that rely on λ 2 , such as the species-level energy distributions [14,18] are driven by body size, and may be largely insensitive to species richness, which in turn implies that the metabolic predictions of METE should hold equally well in very different ecosystems that share size characteristics, such as boreal forests and tropical ones.
In panel (C), λ Π is clearly non-linear in both the state variable A 0 , and the smaller area under consideration, A. The graph of λ Π shows that very different values of λ Π may be obtained by varying the ratio of A to A 0 slightly, and this may in turn suggest that it does not have the properties we would desire in a metric describing clustering. It has been demonstrated that the SSF does not always produce reliable predictions for clustering of individuals of a species within a a given area [16,46], and this area of METE could be extended and modified in future work. Further investigations of the relationships of λ 1 and λ 2 with data from varied ecosystems may also allow us to investigate patterns of diversity, abundance, body size, and the relationships between these macroecological variables in new ways. These kinds of parameter space representations are also useful in generating hypotheses about changing ecosystems, and what new distributions are expected as one or more state variable changes.
In Figure 2, we graph the parameter space that is defined by the ESF through the Lagrange multipliers λ 1 and λ 2 . In this graph, the boundaries of the defined parameter space become interesting. High values of λ 1 always correspond to one or more “singleton species”, or species with a single individual, where N 0 = S 0 . This can only happen when a single individual is measured in order to estimate the values of A 0 , N 0 , S 0 , and E 0 (that is, small numbers of measurements), or in cases where there are the most species possible given the number of individuals present (extreme diversity). These cases therefore represent theoretical limits of possible outcomes of measurement. We expect that most real systems will have many measurements of species with more than one individual, and will fall into the range of low λ 1 values. The behavior of the lower values of the graph may therefore be worth investigating further in relation to spatial scale. Comparisons to empirical data sets may yield new, emergent patterns in this parameter space.

5. Summary

In this paper, we provide the explicit chain of logic that produces the core structure functions of Maximum Entropy Theory of Ecology, or METE. These derivations fill a gap in the ecological literature for researchers who would like to see the explicit construction and assumptions of the central equations from which the predictions of METE follow. In presenting this theory, we take a different pedagogical approach than is employed in Harte (2011) [10]. Namely, we provide a general case of a discrete MaxEnt problem in one dimension. We then give worked examples of constraints on moments beyond just the mean of a distribution (in Appendix A). From there, we first construct the simpler Spatial Structure Function, which is a discrete probability distribution, and then work through the logic of the Ecosystem Structure Function, which contains more constraints, and has a combination of discrete and continuous variables.
We do not cover the applications of METE to testing theory against empirical data, which has been done extensively elsewhere [9,10,11,12,13,14,15,16,17,18,19,20], however, we explicitly show the MaxEnt process and how it is applied to the ecological state variables of METE to produce the core structure functions from which all the predictions of METE derive.
Finally, we discuss the three Lagrange multipliers that result from applying the MaxEnt procedure to METE’s ecological state variables, and how these Lagrange multipliers characterize the system being studied. We investigate (in Appendix B) some of the simplifying approximations that were previously used to evaluate the Lagrange multipliers and assess their realism.
The equations presented here should make it easier for other researchers to make advances in MaxEnt-based macroecology, and METE in particular, either by investigating new state variables, or new functional forms of the mathematical constraints, and alternate forms of the entropy function. The Lagrange multipliers, graphed for the first time here, form a parameter space that may be useful to further studies involving comparisons between ecosystems and across scales.

Author Contributions

A.B. and E.A.N. designed and wrote the paper, and performed the analyses in it.

Funding

Funding was provided by the USDA and the Bridging Biodiversity and Conservation Science program to E.A.N.

Acknowledgments

We thank J. Harte, V. Savage, D. Hembry, J. Bertram, D. McKenzie, and B. Enquist for discussions and edits relevant to this manuscript.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Examples of Applying MaxEnt to Known Distributions

Below we include basic equations for the application of MaxEnt to simple problems. This material is included for pedagogical value, and we show it for context. Although regular readers of Entropy may already be familiar with this material and versions available in textbooks (e.g., [50], Chapter 2), we are not aware of any ecological textbooks that contain this information. Readers who come from an ecology background may therefore not be familiar with these equations or approaches.

Appendix A.1. A Fair Three-Sided Die Constrained by the Mean

Consider the case of a three-sided die with sides labeled 1, 2, and 3. Suppose we perform an experiment (that is, rolling a die), and measure the result (that is, reading and recording the outcome of the roll in the form of the number on the face-up side). After performing enough of these experiments, we can determine that the long-term average value of the rolls is to equal to two, by adding up all the outcomes and then dividing by the number of rolls. We take note that this is also the true average of a fair die, where all outcomes are equally probable. Because we chose a fair die in the first place, we are not surprised that our empirical outcome matches the outcome for a fair die. However, we are interested in determining the probability distribution that is associated with rolling any die, fair or not. This mathematical approach will allow us to find our empirical average and figure out what the probabilities of each outcome are, whether or not we have a fair die. To work through the logic, we will use the tools presented in the form of equations Equations (1), (3) and (4).
First, we start by writing Equation (1), and substituting in the values corresponding to our problem. Note that we have only one constraint (knowledge of the empirical mean), so K = 1 , and all sums over k vanish. Thus, f k ( n ) becomes f ( n ) . Next, we can only make three possible observations, corresponding to the values on the three sides of the dice. So f ( 1 ) = 1 , f ( 2 ) = 2 , and f ( 3 ) = 3 . Finally, assuming that we have performed this experiment and have a mean value for f ( n ) to calculate from the possible observations, we can write that f ( n ) = ( 3 + 2 + 1 ) / 3 = 2 . So, Equation (1) becomes,
1 p ( 1 ) + 2 p ( 2 ) + 3 p ( 3 ) = 2 .
This can be read as “the sum of the probabilities of a particular outcome of a roll times the value of that roll equals the empirical average of all outcomes on repeated trials”. Next, we can substitute our problem-specific values into the definitions of the probability distribution p ( n ) and the partition function Z. Doing so makes Equation (3) take on the form:
p ( n ) = 1 Z e λ n
for generic values of n, or specifically,
p ( 1 ) = 1 Z e λ p ( 2 ) = 1 Z e λ 2 p ( 3 ) = 1 Z e λ 3
We have one Lagrange multiplier, here denoted as λ , and the probability of each outcome is expressed in terms of the partition function, as well as a term that involves the actual value of the outcome multiplied by the Lagrange multiplier. The partition function, which is defined in Equation (4), takes on the form:
Z = n = 1 n = 3 e λ n Z = e λ + e λ 2 + e λ 3 .
Remember that in the end, we seek the specific form of the probability distribution function, which means that we have to solve for the Lagrange multiplier, λ , that appears in both the probability distribution and in the partition function. We can now substitute our specified version of the partition function into the specified versions of the probability distributions, and substitute those into the specified version of our constraint equation. We will do this step by step (and technically in reverse order), starting with substituting the probabilities into the constraint, or Equation (A3) into Equation (A2). This gives us,
1 Z e λ + 2 Z e λ 2 + 3 Z e λ 3 = 2 .
Before substituting our partition function, Z, Equation (A4), into the constraint equation, Equation (A2), we will first multiply both sides by the partition function, Z, to simplify the expression, giving,
e λ + 2 e λ 2 + 3 e λ 3 = 2 Z .
Now we will substitute in the expression for the partition function, Z, to arrive at:
e λ + 2 e λ 2 + 3 e λ 3 = 2 ( e λ + e λ 2 + e λ 3 ) .
Here we will make an extra substitution, simply for convenience. The equation above is, at heart, a polynomial expression in e λ . We can therefore substitute e λ = x . Now we will solve for x, and at the end we will see what this tells us about λ . Making this substitution, and performing the necessary algebra, we have,
x + 2 x 2 + 3 x 3 = 2 x + 2 x 2 + 2 x 3 0 = x x 3 0 = x ( 1 x 2 ) .
Thus, we have found that the solutions for x are x = 0 , x = 1 , or x = 1 . Recalling that we made the substitution x = e λ , this means that we really have e λ = 0 , e λ = 1 , or e λ = 1 . With these possibilities, we will need to check if one of these possible solutions is the true answer. The other two solutions will prove to give non-sensible probability distributions (complex numbers or non-physical solutions) for the problem that we have specified. To find out which one of the three is correct we must examine the forms of the probability distributions that they yield. We could do this one of two ways. We could use natural logarithm rules to determine the exact possible values of λ , and substitute back into the probability distribution and partition function formulas to find their forms. Or, since both the probability distribution and partition function formulas are functions of e λ , we could simply substitute the various known values of 0, 1 , or 1 for each occurrence of e λ . We will do the latter, as it involves fewer steps.
If e λ = 0 were the correct answer, then the partition function would take the form of Z = 0 1 + 0 2 + 0 3 = 0 , and the probability distributions would take the form of p ( n ) = 0 n / Z = 0 / 0 . Dividing by zero is clearly a problem, so e λ = 0 is not the correct answer. Alternatively, if e λ = 1 were the correct answer, then the partition function would take the form of Z = 1 1 + ( 1 ) 2 + ( 1 ) 3 = 1 , and the probability distribution would take the form of p ( n ) = ( 1 ) n / 1 = ( 1 ) n . This is also a problem, as it means that every probability for rolling an even number would be negative! So e λ = 1 is also not the correct answer. This means that e λ = 1 must be the correct answer. In this case, the partition function takes the form of Z = 1 1 + 1 2 + 1 3 = 3 , and the probability distribution takes the form of p ( n ) = 1 n / 3 = 1 / 3 . Remembering that we have a fair die, where fair means equal chances of rolling any number, we see that we have indeed found the correct answer.

Appendix A.2. A Fair Three-Sided die Constrained by the Standard Deviation

Here we consider a case similar to that above, but with a minor variation. We will constrain the problem with knowledge regarding the standard deviation of the rolls of the die, instead of knowledge regarding the mean value of the rolls of the die. It is still a fair three-sided die, and we will still use the true value one would get for the standard deviation of actual rolls so that we can check our answer against reality at the end. This problem is of interest to us for several reasons. First, it is possible to contrive a situation where all you may know about your data is the standard deviation, and not the mean, yet you still want to determine the corresponding form of the probability distribution functions (perhaps you are reconstructing data from faded paper articles that originally reported both the mean and the standard deviation). Second, as a recent example of the importance of understanding the moments of distributions, Trait-Driver Theory (TDT) in macroecology suggests potential applications using MaxEnt [51,52]. In TDT, higher-order moments of trait distributions are connected with patterns of variability in the local environment and climate. While efforts to link MaxEnt with such environmental variables are ongoing, it may be that constraints based on higher-order moments will prove to be of use in the near future in forecasting how biological organisms will change in response to climate forcings. Finally, this problem is of interest because even though we start with a different constraint equation than Equation (1), we arrive at the same final result that the most fair distribution is the uniform distribution.
To begin we will point out that we will still be using Equations (A3) and (A4) for the specified versions of the probability distributions and the partition function. However, we must express the general form of our new constraint equation differently via the formula for the standard deviation of a distribution of data as,
n = 1 n = N p ( n ) m = 1 m = N f k ( m ) p ( m ) f k ( n ) 2 = σ k ( n ) ,
where σ k ( n ) is the standard deviation of our data corresponding to the k t h constraint. Note that, in Equation (A9), we have assumed that the mean value of our data, f k ( m ) can be expressed as m = 1 m = N f k ( m ) p ( m ) , which is the same starting expression we have in Equation (1), and thus may be the reason why our approach is still consistent with the central assumptions of MaxEnt.
Continuing on as we did in the previous section, we will substitute everything we know into Equation (A9), starting with the fact that σ k ( n ) = 2 / 3 for a fair three-sided die (this can be calculated with the definition of the standard deviation and a known, equal probability distribution of all outcomes), and that K = 1 for only having one constraint, f k ( n ) = f ( n ) = n , f k ( m ) = f ( m ) = m , and N = M = 3 . Doing so gives us,
n = 1 n = 3 p ( n ) m = 1 m = 3 m p ( m ) n 2 = 2 3 .
From here, the steps are quite similar as before, only the algebra is more tedious. We will start with squaring both sides of the equation and writing out the summations explicitly to arrive at,
p ( 1 ) p ( 1 ) + 2 p ( 2 ) + 3 p ( 3 ) 1 2 + p ( 2 ) p ( 1 ) + 2 p ( 2 ) + 3 p ( 3 ) 2 2 + p ( 3 ) p ( 1 ) + 2 p ( 2 ) + 3 p ( 3 ) 3 2 = 2 3
Substituting p ( n ) = 1 / Z e λ n = 1 / Z x n , where we have also made the substitution of e λ = x for simplification, we have,
x Z x Z + 2 x 2 Z + 3 x 3 Z 1 2 + x 2 Z x Z + 2 x 2 Z + 3 x 3 Z 2 2 + x 3 Z x Z + 2 x 2 Z + 3 x 3 Z 3 2 = 2 3
Multiplying both sides of the above expression by Z 3 to remove all denominators entirely gives,
x x + 2 x 2 + 3 x 3 Z 2 + x 2 x + 2 x 2 + 3 x 3 2 Z 2 + x 3 x + 2 x 2 + 3 x 3 3 Z 2 = 2 3 Z 3
Now comes a lot of distributing and simplifying of terms. Starting with the left-hand-side, and recalling that Z = e λ + e λ 2 + e λ 3 = x + x 2 + x 3 , we arrive at,
x x 2 + 2 x 3 2 + x 2 x + x 3 2 + x 3 2 x x 2 2 = 2 3 x + x 2 + x 3 3 .
Expanding both sides of the expression gives,
x 4 + 5 x 5 + 6 x 6 + 5 x 7 + x 8 = 2 3 x 3 + 2 x 4 + 4 x 5 + 14 3 x 6 + 4 x 7 + 2 x 8 + 2 3 x 9 .
Collecting like terms, we have:
2 3 x 3 + x 4 x 5 4 3 x 6 x 7 + x 8 + 2 3 x 9 = 0 .
Assuming that x = 0 is not a solution that we want (recall the discussion earlier regarding this possible solution) we can divide by x 3 from both sides to yield,
2 3 + x x 2 4 3 x 3 x 4 + x 5 + 2 3 x 6 = 0 .
We used Wolfram Alpha online (https://www.wolframalpha.com/) to perform the factoring, and find that the above expression can be expressed as,
1 3 ( x 1 ) 2 ( x + 2 ) ( 2 x + 1 ) ( x 2 + x + 1 ) = 0
These terms produce the five following solutions of x = 2 , x = 1 / 2 , x = 1 , and x = 1 / 2 ± i 3 / 2 . As discussed before, the solutions for negative values of x are invalid. The solutions x = 1 / 2 ± i 3 / 2 will result in probabilities with non-real (imaginary) terms, so those will also be disregarded. This leaves us with x = 1 , which generates the same uniform distribution of p ( n ) = 1 / 3 as we found in the earlier case for constraining only the mean.

Appendix A.3. The Gaussian/Normal Distribution, or Using n and n2 as “Constraint Functions”

Here we will show that when the “constraint functions” are f k ( n ) = n and f k ( n ) = n 2 , then the resulting probability distribution is Gaussian, or normal. What it means in an ecological context when we specify these constraint functions may not immediately be clear, but there may be some interesting applications of this derivation, as in reconstructing data when publications specify the variance of a measured distribution, but the underlying data have been lost. With or without a useful applied example, following through with the mathematical derivation lends some insight into the behavior of the equations, so it is useful to proceed for that reason. Without specifying an actual problem, we can not solve explicitly for the Lagrange multipliers. Instead, we will investigate what happens to the mathematical form of the probability distribution in Equation (3) when substituting our constraint information.
As we now have two constraints, K = 2 , and we will actually be summing over k from k = 1 to k = 2 . Additionally, our f k ( n ) now have two forms, one being f 1 ( n ) = n and the other being f 2 ( n ) = n 2 . Thus, we could write down the set of constraint equations as,
n = 1 n = N n p ( n ) = n
n = 1 n = N n 2 p ( n 2 ) = n 2 .
However, for this specific example, we don’t actually know the values of n or n 2 , so we will go straight to the probability distribution from here. Substituting our constraint functions into the general definition for the probability distribution in Equation (3), we have,
p ( n ) = 1 Z e ( λ 1 n + λ 2 n 2 ) .
We can extract more insight from this by re-writing the expression by completing the square. We begin by adding and subtracting by λ 1 2 / 4 λ 2 2 , in the argument of the exponential,
p ( n ) = 1 Z e λ 1 n + λ 2 n 2 + λ 1 2 4 λ 2 2 λ 1 2 4 λ 2 2 .
We can now factor the first three terms in the exponential to arrive at,
p ( n ) = 1 Z e λ 1 2 λ 2 + λ 2 n 2 λ 1 2 λ 2 2 .
This is beginning to look more like the general form of a Gaussian distribution in n, aside from the pesky constant term in the argument of the exponential ( λ 1 / 2 λ 2 ) 2 . Fortunately, we can use the rules of exponents to rearrange terms and remove the second squared term from the argument in the exponential. We then get,
p ( n ) = e λ 1 2 λ 2 2 Z e λ 1 2 λ 2 + λ 2 n 2 .
Factoring the λ 2 term in front of n gives,
p ( n ) = e λ 1 2 λ 2 2 Z e n + λ 1 2 λ 2 2 2 1 / λ 2 2 .
Now we have arrived at an expression that is more easily recognizable as the general form for a Gaussian distribution in n. Comparing this expression to a general Gaussian distribution,
f ( x | μ , σ 2 ) = 1 2 σ 2 π e ( x μ ) 2 2 σ 2 .
We can begin to infer what role the Lagrange multipliers have in this scenario. Noting that the term λ 1 / 2 λ 2 2 sits in the place of the distribution mean μ , we can conclude that the distribution mean is actually given by the specific combination of the Lagrange multipliers of λ 1 / 2 λ 2 2 . Similarly, noting that the term 1 / λ 2 2 sits in the place of 2 σ 2 , we can conclude specifically that the standard deviation of the distribution is given by σ = 1 / 2 λ 2 . Matching the overall prefactors tells us that the combination of the partition function and our left over constant from completing the square combine to normalize the distribution.

Appendix A.4. The Log-Normal Distribution, Constraining log(n) and log2(n)

Everything, or more immediately the results, from the above section can be copied and pasted here but replacing every instance of n with log n and n 2 with log 2 n to give us a log-normal distribution.

Appendix B. Approximations in the Original Version of METE

Two common approximations can be made in METE to simplify the above formulas and provide for limited analytic solutions. In the original presentation of the theory, a number of important assumptions are used. We derive them here because they appear in the Harte (2011) [10], as well as various earlier publications exploring the predictions of METE. The steps and assumptions that are used to derive the original approximations may still be worth testing and exploring, as they are likely sources of measurable error. More recently, a software package in the statistical coding language R [48] called “meteR” [47] has implemented a number of predictions of METE and allows easy comparison of predictions to empirical data. With meteR, it is no longer necessary to make approximations to simplify the core equations of METE. We therefore suggest this as an option for those looking to model empirical data.

Appendix B.1. Approximation 1: ∑e−nβ ≈ 1/β

The first approximation used throughout Harte (2011) is presented on pages (149–150) simplifies the relationships between the Lagrange multipliers. We define the relationship β = λ 1 + λ 2 . We consider the first approximation:
e n β 1 / β .
The series e n β is geometric in the variable e β . So, as long as e β 0 , then the series can be expressed exactly as,
n = 1 N e n β = e β e β ( N + 1 ) 1 e β .
Assuming that β N > > 1 , then the second term in the numerator e β ( N + 1 ) 0 , giving,
n = 1 N e n β e β 1 e β .
Furthermore, assuming that β < < 1 , then e β 1 β , and we have,
n = 1 N e n β 1 β β 1 / β .
In deriving the above expression, we made the simultaneous assumptions that β < < 1 and N β > > 1 . This can be expressed in the single expression as 1 / N < < β < < 1 . There are two steps at which these assumptions are employed, thus we could include higher order terms left over from their approximations to get a sense of the resultant order of error associated with their use. It should be clear that this approximation breaks down for small N. “Small N” will be defined in relation to β ; for example, if N = 10, then β must take on values greater (or much greater) than 0.1. Because β is defined to be λ 1 + λ 2 , we can reference Figure 2 to see how likely a possibility this is for all combinations of λ 1 and λ 2 . For single data points, this assumption will always break down, but for large data sets 1 / N < < β may indeed be a valid assumption. However, it should also be clear that β < < 1 will not hold over most of the parameter space that is possible for ecosystems (see Figure 2). That said, for all of the empirical data sets that have examined λ 1 tends to be small (between 0.001 and 0.1), and β < 1 , which may be sufficient for these approximations to hold, as advertised, approximately.
The size of β will predominately be influenced by λ 1 in all cases, and it may be the case that the parameter space is more densely populated in the region where λ 1 is small (as we begin to see in Figure 2).

Appendix B.2. Approximation 2: ∑e−nβ/n ≈ log(1/β)

The series n = 1 N e n β / n is a truncated series expansion for log ( 1 x ) . Specifically, for | x | < 1 ,
log ( 1 x ) = n = 1 x n n
Replacing x with e β and breaking the series expansion into two summations, we have,
log ( 1 e β ) = n = 1 N e n β n n = N + 1 e n β n
Note that this expansion requires | e β | < 1 , which is potentially in conflict with the assumption that β < < 1 (an assumption used later in this approximation). This conflict is due to the case that the smaller the value β has, the closer that e β is to one. Solving the above expression for the partial series expansion, we have
n = 1 N e n β n = log ( 1 e β ) + O e β ( N + 1 ) N + 1 .
Here, the “ O ” represents “order of magnitude of error”, which allows us to quantify the error in the truncation of the series expansion. From our previous Approximation 1, we are simultaneously assuming that N β > > 1 , thus we will drop the O ( e β ( N + 1 ) / ( N + 1 ) ) term to arrive at,
n = 1 N e n β n log ( 1 e β ) .
Now, expressing e β as a series we have,
n = 1 N e n β n log 1 m = 1 ( β ) m m ! .
Recalling again the assumption that β < < 1 , we can truncate the series expansion of e β to e β 1 + β , where we have dropped all terms involving higher powers of β . Doing so, we have
n = 1 N e n β n log ( β )
But, log ( β ) = 0 log ( β ) = log ( 1 ) log ( β ) = log ( 1 / β ) , thus,
n = 1 N e n β n log ( 1 / β ) .
Because we have used the assumption that β < < 1 to derive this result, and this assumption may not hold in many cases (see Appendix B.1), both approximations may introduce substantial sources of error in METE’s predictions in some cases, but may otherwise be useful in cases where the user wants to estimate the relative sizes of λ 1 and λ 2 . We therefore suggest that calculations involving the Lagrange multipliers be done numerically, without the use of simplifying approximations, with meteR [47] or a similar software.

References

  1. Brown, J.H. Macroecology; University of Chicago Press: Chicago, IL, USA, 1995. [Google Scholar]
  2. McGill, B.J.; Etienne, R.S.; Gray, J.S.; Alonso, D.; Anderson, M.J.; Benecha, H.K.; Dornelas, M.; Enquist, B.J.; Green, J.L.; He, F.; et al. Species abundance distributions: Moving beyond single prediction theories to integration within an ecological framework. Ecol. Lett. 2007, 10, 995–1015. [Google Scholar] [CrossRef] [PubMed]
  3. Yoda, K. Self-thinning in overcrowded pure stands under cultivated and natural conditions (Intraspecific competition among higher plants. XI). J. Inst. Polytech. Osaka 1963, 14, 107–129. [Google Scholar]
  4. Damuth, J. Population density and body size in mammals. Nature 1981, 290, 699. [Google Scholar] [CrossRef]
  5. Enquist, B.J.; Niklas, K.J. Invariant scaling relations across tree-dominated communities. Nature 2001, 410, 655. [Google Scholar] [CrossRef] [PubMed]
  6. West, G.B.; Brown, J.H.; Enquist, B.J. A general model for the origin of allometric scaling laws in biology. Science 1997, 276, 122–126. [Google Scholar] [CrossRef] [PubMed]
  7. Gillooly, J.F.; Brown, J.H.; West, G.B.; Savage, V.M.; Charnov, E.L. Effects of size and temperature on metabolic rate. Science 2001, 293, 2248–2251. [Google Scholar] [CrossRef] [PubMed]
  8. Brown, J.H.; Gillooly, J.F.; Allen, A.P.; Savage, V.M.; West, G.B. Toward a metabolic theory of ecology. Ecology 2004, 85, 1771–1789. [Google Scholar] [CrossRef]
  9. Harte, J.; Zillio, T.; Conlisk, E.; Smith, A.B. Maximum entropy and the state-variable approach to macroecology. Ecology 2008, 89, 2700–2711. [Google Scholar] [CrossRef]
  10. Harte, J. Maximum Entropy and Ecology: A Theory of Abundance, Distribution, and Energetics; Oxford University Press: Oxford, UK, 2011. [Google Scholar]
  11. Harte, J.; Newman, E.A. Maximum information entropy: A foundation for ecological theory. Trends Ecol. Evol. 2014, 29, 384–389. [Google Scholar] [CrossRef]
  12. Harte, J.; Smith, A.B.; Storch, D. Biodiversity scales from plots to biomes with a universal species–area curve. Ecol. Lett. 2009, 12, 789–797. [Google Scholar] [CrossRef]
  13. White, E.P.; Thibault, K.M.; Xiao, X. Characterizing species abundance distributions across taxa and ecosystems using a simple maximum entropy model. Ecology 2012, 93, 1772–1778. [Google Scholar] [CrossRef] [PubMed]
  14. Newman, E.A.; Harte, M.E.; Lowell, N.; Wilber, M.; Harte, J. Empirical tests of within-and across-species energetics in a diverse plant community. Ecology 2014, 95, 2815–2825. [Google Scholar] [CrossRef]
  15. Harte, J.; Kitzes, J. Inferring regional-scale species diversity from small-plot censuses. PloS ONE 2015, 10, e0117527. [Google Scholar] [CrossRef] [PubMed]
  16. McGlinn, D.; Xiao, X.; Kitzes, J.; White, E.P. Exploring the spatially explicit predictions of the Maximum Entropy Theory of Ecology. Glob. Ecol. Biogeogr. 2015, 24, 675–684. [Google Scholar] [CrossRef]
  17. Wilber, M.Q.; Kitzes, J.; Harte, J. Scale collapse and the emergence of the power law species–area relationship. Glob. Ecol. Biogeogr. 2015, 24, 883–895. [Google Scholar] [CrossRef]
  18. Xiao, X.; McGlinn, D.J.; White, E.P. A strong test of the maximum entropy theory of ecology. Am. Nat. 2015, 185, E70–E80. [Google Scholar] [CrossRef] [PubMed]
  19. Harte, J.; Newman, E.A.; Rominger, A.J. Metabolic partitioning across individuals in ecological communities. Glob. Ecol. Biogeogr. 2017, 26, 993–997. [Google Scholar] [CrossRef]
  20. Shoemaker, W.R.; Locey, K.J.; Lennon, J.T. A macroecological theory of microbial biodiversity. Nat. Ecol. Evol. 2017, 1, 0107. [Google Scholar] [CrossRef]
  21. Favretti, M. Remarks on the maximum entropy principle with application to the maximum entropy theory of ecology. Entropy 2017, 20, 11. [Google Scholar] [CrossRef]
  22. Harte, J. Maximum Entropy and Theory Construction: A Reply to Favretti. Entropy 2018, 20, 285. [Google Scholar] [CrossRef]
  23. Favretti, M. Maximum Entropy Theory of Ecology: A Reply to Harte. Entropy 2018, 20, 308. [Google Scholar] [CrossRef]
  24. Shannon, C.E. A mathematical theory of communication. Bell Syst. Tech. J. 1948, 27, 379–423. [Google Scholar] [CrossRef]
  25. Jaynes, E.T. Information theory and statistical mechanics. Phys. Rev. 1957, 106, 620. [Google Scholar] [CrossRef]
  26. Haegeman, B.; Etienne, R.S. Entropy maximization and the spatial distribution of species. Am. Nat. 2010, 175, E74–E90. [Google Scholar] [CrossRef] [PubMed]
  27. McGill, B.J. The what, how and why of doing macroecology. Glob. Ecol. Biogeogr. 2019, 28, 6–17. [Google Scholar] [CrossRef]
  28. Hubbell, S.P. The Unified Neutral Theory of Biodiversity and Biogeography (MPB-32); Princeton University Press: Princeton, NJ, USA, 2001. [Google Scholar]
  29. Harte, J.; Rominger, A.; Zhang, W. Integrating macroecological metrics and community taxonomic structure. Ecol. Lett. 2015, 18, 1068–1077. [Google Scholar] [CrossRef]
  30. Shipley, B. Limitations of entropy maximization in ecology: A reply to Haegeman and Loreau. Oikos 2009, 118, 152–159. [Google Scholar] [CrossRef]
  31. Mayr, E. The biological species concept. In Species Concepts and Phylogenetic Theory: A Debate; Columbia University Press: New York, NY, USA, 2000; pp. 17–29. [Google Scholar]
  32. Harte, J.; Kitzes, J.; Newman, E.A.; Rominger, A.J. Taxon Categories and the Universal Species-Area Relationship: (A Comment on Šizling et al.,“Between Geometry and Biology: The Problem of Universality of the Species-Area Relationship”). Am. Nat. 2013, 181, 282–287. [Google Scholar] [CrossRef]
  33. Shipley, B.; Vile, D.; Garnier, É. From plant traits to plant communities: A statistical mechanistic approach to biodiversity. Science 2006, 314, 812–814. [Google Scholar] [CrossRef]
  34. Haegeman, B.; Loreau, M. Limitations of entropy maximization in ecology. Oikos 2008, 117, 1700–1710. [Google Scholar] [CrossRef]
  35. Haegeman, B.; Loreau, M. Trivial and non-trivial applications of entropy maximization in ecology: A reply to Shipley. Oikos 2009, 118, 1270–1278. [Google Scholar] [CrossRef]
  36. Pueyo, S.; He, F.; Zillio, T. The maximum entropy formalism and the idiosyncratic theory of biodiversity. Ecol. Lett. 2007, 10, 1017–1028. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  37. Banavar, J.; Maritan, A. The maximum relative entropy principle. arXiv 2007, arXiv:0703622. [Google Scholar]
  38. Dewar, R.C.; Porté, A. Statistical mechanics unifies different ecological patterns. J. Theor. Biol. 2008, 251, 389–403. [Google Scholar] [CrossRef] [PubMed]
  39. Dewar, R. Maximum entropy production as an inference algorithm that translates physical assumptions into macroscopic predictions: Don’t shoot the messenger. Entropy 2009, 11, 931–944. [Google Scholar] [CrossRef]
  40. Shipley, B. From Plant Traits to Vegetation Structure: Chance and Selection in the Assembly of Ecological Communities; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
  41. He, F. Maximum entropy, logistic regression, and species abundance. Oikos 2010, 119, 578–582. [Google Scholar] [CrossRef]
  42. McGill, B.J. Towards a unification of unified theories of biodiversity. Ecol. Lett. 2010, 13, 627–642. [Google Scholar] [CrossRef]
  43. Frank, S.A. Measurement scale in maximum entropy models of species abundance. J. Evol. Biol. 2011, 24, 485–496. [Google Scholar] [CrossRef] [Green Version]
  44. Zhang, Y.J.; Harte, J. Population dynamics and competitive outcome derive from resource allocation statistics: The governing influence of the distinguishability of individuals. Theor. Popul. Biol. 2015, 105, 53–63. [Google Scholar] [CrossRef] [Green Version]
  45. Bertram, J.; Newman, E.A.; Dewar, R. Maximum entropy models elucidate the contribution of metabolic traits to patterns of community assembly. bioRxiv 2019. [Google Scholar] [CrossRef]
  46. Newman, E.A.; Wilber, M.Q.; Kopper, K.E.; Moritz, M.A.; Falk, D.A.; McKenzie, D.; Harte, J. Disturbance macroecology: Integrating disturbance ecology and macroecology in different-age post-fire stands of a closed-cone pine forest as a case study. bioRxiv 2018. [Google Scholar] [CrossRef]
  47. Rominger, A.J.; Merow, C. meteR: An r package for testing the maximum entropy theory of ecology. Methods Ecol. Evol. 2017, 8, 241–247. [Google Scholar] [CrossRef]
  48. R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2019. [Google Scholar]
  49. Bertram, J. Entropy-Related Principles for Non-Equilibrium Systems: Theoretical Foundations and Applications to Ecology and Fluid Dynamics. Ph.D. Thesis, Australian National University, Canberra, Australia, 2015. [Google Scholar]
  50. Kapur, J.N. Maximum-Entropy Models in Science and Engineering; John Wiley & Sons: Hoboken, NY, USA, 1989. [Google Scholar]
  51. Enquist, B.J.; Norberg, J.; Bonser, S.P.; Violle, C.; Webb, C.T.; Henderson, A.; Sloat, L.L.; Savage, V.M. Scaling from traits to ecosystems: Developing a general trait driver theory via integrating trait-based and metabolic scaling theories. In Advances in Ecological Research; Elsevier: Amsterdam, The Netherlands, 2015; Volume 52, pp. 249–318. [Google Scholar]
  52. Wieczynski, D.J.; Boyle, B.; Buzzard, V.; Duran, S.M.; Henderson, A.N.; Hulshof, C.M.; Kerkhoff, A.J.; McCarthy, M.C.; Michaletz, S.T.; Swenson, N.G.; et al. Climate shapes and shifts functional biodiversity in forests worldwide. Proc. Natl. Acad. Sci. USA 2019, 116, 587–592. [Google Scholar] [CrossRef] [PubMed]
Figure 1. The relationship between the Maximum Entropy Theory of Ecology (METE)’s Lagrange multipliers λ 1 , λ 2 , and λ Π , and the ecological state variables in the mathematical constraints that produce them. Values for each λ were generated with the software package meteR [47] in the statistical computing language R [48], and a surface was interpolated to aid in visualization. In panel (A), we see the greater influence of log( N 0 ) than S 0 on the overall value of the Lagrange multiplier λ 1 , and a compression of λ 1 values at low N 0 . In panel (B), we can see a near-linear relationship on the log-log scale between λ 2 and log( E 0 ), while S 0 does not affect its value as greatly over this range of values. In panel (C), we see a highly non-linear relationship between λ Π , the state variable A 0 , and the smaller area under consideration, A.
Figure 1. The relationship between the Maximum Entropy Theory of Ecology (METE)’s Lagrange multipliers λ 1 , λ 2 , and λ Π , and the ecological state variables in the mathematical constraints that produce them. Values for each λ were generated with the software package meteR [47] in the statistical computing language R [48], and a surface was interpolated to aid in visualization. In panel (A), we see the greater influence of log( N 0 ) than S 0 on the overall value of the Lagrange multiplier λ 1 , and a compression of λ 1 values at low N 0 . In panel (B), we can see a near-linear relationship on the log-log scale between λ 2 and log( E 0 ), while S 0 does not affect its value as greatly over this range of values. In panel (C), we see a highly non-linear relationship between λ Π , the state variable A 0 , and the smaller area under consideration, A.
Entropy 21 00712 g001
Figure 2. The parameter space of ecosystems as defined by the METE Lagrange multipliers λ 1 , corresponding to the constraint on N 0 S 0 , and λ 2 , corresponding to the constraint on E 0 S 0 . The highest values of λ 1 for any value of λ 2 correspond to values of N 0 S 0 = 1 (shown in purple), or situations where there is only one individual per species (small numbers of measurements or high diversity). Most real ecosystems and empirical systems with more than a few individuals are expected to fall closer to the low λ 1 values for any given λ 2 value (shown in green).
Figure 2. The parameter space of ecosystems as defined by the METE Lagrange multipliers λ 1 , corresponding to the constraint on N 0 S 0 , and λ 2 , corresponding to the constraint on E 0 S 0 . The highest values of λ 1 for any value of λ 2 correspond to values of N 0 S 0 = 1 (shown in purple), or situations where there is only one individual per species (small numbers of measurements or high diversity). Most real ecosystems and empirical systems with more than a few individuals are expected to fall closer to the low λ 1 values for any given λ 2 value (shown in green).
Entropy 21 00712 g002

Share and Cite

MDPI and ACS Style

Brummer, A.B.; Newman, E.A. Derivations of the Core Functions of the Maximum Entropy Theory of Ecology. Entropy 2019, 21, 712. https://doi.org/10.3390/e21070712

AMA Style

Brummer AB, Newman EA. Derivations of the Core Functions of the Maximum Entropy Theory of Ecology. Entropy. 2019; 21(7):712. https://doi.org/10.3390/e21070712

Chicago/Turabian Style

Brummer, Alexander B., and Erica A. Newman. 2019. "Derivations of the Core Functions of the Maximum Entropy Theory of Ecology" Entropy 21, no. 7: 712. https://doi.org/10.3390/e21070712

APA Style

Brummer, A. B., & Newman, E. A. (2019). Derivations of the Core Functions of the Maximum Entropy Theory of Ecology. Entropy, 21(7), 712. https://doi.org/10.3390/e21070712

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop