Skip to main content
Log in

The maximum entropy principle to predict forager spatial distributions: an alternate perspective for movement ecology

  • Research
  • Published:
Theoretical Ecology Aims and scope Submit manuscript

Abstract

The Maximum Entropy (MaxEnt) principle is a powerful inference principle which enables the determination of the distribution of a system, on the basis of the information available, usually in the form of averages of observables (random variables), and the assumption of maximal ignorance (maximum entropy) beyond the stated prior information. In this work we focus on the use of MaxEnt in the context of spatial ecology for building theory to predict equilibrium foraging distributions. Our work represents a new application of MaxEnt and a novel approach to compute spatial foraging distributions based on the use of energy and entropy arguments. We show the capability of the framework to incorporate mechanisms such as resource depletion, optimality of the foraging strategy, travel costs, information uncertainty, and inter-specific and intra-specific competition into the statistical inference. Our model recovers the predictions of several existing models under various parameter limits, including the uniform distribution, the ideal free distribution, and the distribution that maximizes average suitability, and gives a simple quantitative way to connect these different foraging behaviours. Overall, we show the power of MaxEnt to build theory and to relate existing models in spatial ecology by use of a universal principle. We further discuss the potential applicability of MaxEnt to build theory in other contexts of ecology, such as to formulate population dynamics models, and the potential use of the dynamic form of MaxEnt, i.e. the Maximum Caliber Principle, to develop further theory on dynamical systems in spatial ecology.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6

Similar content being viewed by others

Data availability

Not applicable.

Code availability

The Python code to solve the Depleted Boltzmann Distribution and the Boltzmann Distribution is available in Github:https://github.com/paucapera/DepletedBoltzmann.

References

  • Andrewartha HG, Birch LC et al (1954) The distribution and abundance of animals. Edn 1, University of Chicago press

  • Avgar T, Betini GS, Fryxell JM (2020) Habitat selection patterns are density dependent under the ideal free distribution. J Anim Ecol 89(12):2777–2787

    Article  PubMed  PubMed Central  Google Scholar 

  • Beyer HL, Ung R, Murray DL, Fortin MJ (2013) Functional responses, seasonal variation and thresholds in behavioural responses of moose to road density. J Appl Ecol 50(2):286–294

    Article  Google Scholar 

  • Bledsoe EK, Ernest SM (2019) Temporal changes in species composition affect a ubiquitous species’ use of habitat patches

  • Boltzmann L (1912) Vorlesungen über gastheorie, vol 2. Barth

  • Bustamante C, Cheng W, Mejia YX (2011) Revisiting the central dogma one molecule at a time. Cell 144(4):480–497

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  • Cressman R, Křivan V (2006) Migration dynamics for the ideal free distribution. Am Nat 168(3):384–397

    Article  PubMed  Google Scholar 

  • Dewar RC, Porté A (2008) Statistical mechanics unifies different ecological patterns. J Theor Biol 251(3):389–403

    Article  PubMed  Google Scholar 

  • Dill KA, Bromberg S, Stigter D (2010) Molecular driving forces: statistical thermodynamics in biology, chemistry, physics, and nanoscience. Garland Science

  • Durrett R, Levin S (1998) Spatial aspects of interspecific competition. Theor Popul Biol 53(1):30–43

    Article  CAS  PubMed  Google Scholar 

  • Elith J, Leathwick JR (2009) Species distribution models: ecological explanation and prediction across space and time. Annu Rev Ecol Evol Syst 40:677–697

    Article  Google Scholar 

  • Elith J, Phillips SJ, Hastie T, Dudík M, Chee YE, Yates CJ (2011) A statistical explanation of maxent for ecologists. Divers Distrib 17(1):43–57

    Article  Google Scholar 

  • Falcy MR (2015) Density-dependent habitat selection of spawning chinook salmon: broad-scale evidence and implications. J Anim Ecol 84(2):545–553

    Article  PubMed  Google Scholar 

  • Flaxman SM, Reeve HK (2006) Putting competition strategies into ideal free distribution models: habitat selection as a tug of war. J Theor Biol 243(4):587–593

    Article  PubMed  Google Scholar 

  • Franklin J (2010) Mapping species distributions: spatial inference and prediction. Cambridge University Press

    Book  Google Scholar 

  • Fretwell SD, Lucas H (1970) On territorial behavior and other factors influencing habitat distribution in birds. Acta Biotheor 19(1):45–52

    Article  Google Scholar 

  • Frieden BR (1972) Restoring with maximum likelihood and maximum entropy. JOSA 62(4):511–518

    Article  CAS  Google Scholar 

  • Ge H, Pressé S, Ghosh K, Dill KA (2012) Markov processes follow from the principle of maximum caliber. J Chem Phys 136(6)

    Article  PubMed  PubMed Central  Google Scholar 

  • Ghosh K, Dixit PD, Agozzino L, Dill KA (2020) The maximum caliber variational principle for nonequilibria. Annu Rev Phys Chem 71:213–238

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  • Gibbs JW (1902) Elementary principles in statistical mechanics developed with especial reference to the rational foundation of thermodynamics/by J. Willard Gibbs. C. Scribner, New York

    Book  Google Scholar 

  • Golan A, Judge G, Miller D (1997) Maximum entropy econometrics: Robust estimation with limited data

  • Gull S, Newton T (1986) Maximum entropy tomography. Appl Opt 25(1):156–160

    Article  CAS  PubMed  Google Scholar 

  • Hamill OP, Marty A, Neher E, Sakmann B, Sigworth FJ (1981) Improved patch-clamp techniques for high-resolution current recording from cells and cell-free membrane patches. Pflügers Archiv 391(2):85–100

    Article  CAS  PubMed  Google Scholar 

  • Harte J (2011) Maximum entropy and ecology: a theory of abundance, distribution, and energetics. OUP Oxford

  • Harte J, Zillio T, Conlisk E, Smith AB (2008) Maximum entropy and the state-variable approach to macroecology. Ecology 89(10):2700–2711

    Article  CAS  PubMed  Google Scholar 

  • Harte J, Smith AB, Storch D (2009) Biodiversity scales from plots to biomes with a universal species-area curve. Ecol Lett 12(8):789–797

    Article  PubMed  Google Scholar 

  • Holbrook JD, Olson LE, DeCesare NJ, Hebblewhite M, Squires JR, Steenweg R (2019) Functional responses in habitat selection: clarifying hypotheses and interpretations. Ecol Appl 29(3)

    Article  PubMed  Google Scholar 

  • Jackson A, Humphries S, Ruxton G (2004) Resolving the departures of observed results from the ideal free distribution with simple random movements. J Anim Ecol 73(4):612–622

    Article  Google Scholar 

  • Jaynes ET (1957) Information theory and statistical mechanics. Phys Rev 106(4):620

    Article  Google Scholar 

  • Jaynes ET (1982) On the rationale of maximum-entropy methods. Proc IEEE 70(9):939–952

    Article  Google Scholar 

  • Kearney M, Porter W (2009) Mechanistic niche modelling: combining physiological and spatial data to predict species’ ranges. Ecol Lett 12(4):334–350

  • Kleiven EF, Henden JA, Ims RA, Yoccoz NG (2018) Seasonal difference in temporal transferability of an ecological model: near-term predictions of lemming outbreak abundances. Sci Rep 8(1):1–6

    Article  CAS  Google Scholar 

  • Krivan V, Cressman R, Schneider C (2008) The ideal free distribution: A review and synthesis of the game-theoretic perspective. Theor Popul Biol 73:403–425

    Article  PubMed  Google Scholar 

  • Matsumura S, Arlinghaus R, Dieckmann U (2010) Foraging on spatially distributed resources with sub-optimal movement, imperfect information, and travelling costs: departures from the ideal free distribution. Oikos 119(9):1469–1483

    Article  Google Scholar 

  • McLoughlin PD, Morris DW, Fortin D, Vander Wal E, Contasti AL (2010) Considering ecological dynamics in resource selection functions. J Anim Ecol 79(1):4–12

    Article  PubMed  Google Scholar 

  • Methfessel C, Witzemann V, Takahashi T, Mishina M, Numa S, Sakmann B (1986) Patch clamp measurements on xenopus laevis oocytes: currents through endogenous channels and implanted acetylcholine receptor and sodium channels. Pflügers Archiv 407(6):577–588

    Article  CAS  PubMed  Google Scholar 

  • Moorcroft PR, Barnett A (2008) Mechanistic home range models and resource selection analysis: a reconciliation and unification. Ecology 89(4):1112–1119

    Article  PubMed  Google Scholar 

  • Ollason J, Yearsley J (2001) The approximately ideal, more or less free distribution. Theor Popul Biol 59(2):87–105

    Article  CAS  PubMed  Google Scholar 

  • O’Neil ST, Vucetich JA, Beyer DE Jr, Hoy SR, Bump JK (2020) Territoriality drives preemptive habitat selection in recovering wolves: Implications for carnivore conservation. J Anim Ecol 89(6):1433–1447

    Article  PubMed  Google Scholar 

  • Parisien MA, Moritz MA (2009) Environmental controls on the distribution of wildfire at multiple spatial scales. Ecol Monogr 79(1):127–154

    Article  Google Scholar 

  • Pathria RK, Beale PD (2011) Statistical mechanics

  • Phillips SJ, Dudík M (2008) Modeling of species distributions with maxent: new extensions and a comprehensive evaluation. Ecography 31(2):161–175

    Article  Google Scholar 

  • Prokopenko CM, Boyce MS, Avgar T (2017) Extent-dependent habitat selection in a migratory large herbivore: road avoidance across scales. Landsc Ecol 32(2):313–325

    Article  Google Scholar 

  • Pueyo S, He F, Zillio T (2007) The maximum entropy formalism and the idiosyncratic theory of biodiversity. Ecol Lett 10(11):1017–1028

    Article  PubMed  PubMed Central  Google Scholar 

  • Pyke GH (1984) Optimal foraging theory: a critical review. Annu Rev Ecol Syst 15(1):523–575

    Article  Google Scholar 

  • Rhoades E, Cohen M, Schuler B, Haran G (2004) Two-state folding observed in individual protein molecules. J Am Chem Soc 126(45):14686–14687

    Article  CAS  PubMed  Google Scholar 

  • Rosenzweig ML (1981) A theory of habitat selection. Ecology 62(2):327–335

    Article  Google Scholar 

  • Rosenzweig ML (1991) Habitat selection and population interactions: the search for mechanism. Am Nat 137:S5–S28

    Article  Google Scholar 

  • Shannon CE (1948) A mathematical theory of communication. The Bell system technical journal 27(3):379–423

    Article  Google Scholar 

  • Shipley B, Vile D, Garnier É (2006) From plant traits to plant communities: a statistical mechanistic approach to biodiversity. Science 314(5800):812–814

  • Shore J, Johnson R (1980) Axiomatic derivation of the principle of maximum entropy and the principle of minimum cross-entropy. IEEE Trans Inf Theory 26(1):26–37

    Article  Google Scholar 

  • Soininen EM, Henden JA, Ravolainen VT, Yoccoz NG, Bråthen KA, Killengreen ST, Ims RA (2018) Transferability of biotic interactions: Temporal consistency of arctic plant-rodent relationships is poor. Ecol Evol 8(19):9697–9711

    Article  PubMed  PubMed Central  Google Scholar 

  • Tkačik G, Walczak AM, Bialek W (2009) Optimizing information flow in small genetic networks. Phys Rev E 80(3)

    Article  Google Scholar 

  • Tregenza T (1995) Building on the ideal free distribution. Advances in ecological research 26:253–307

    Article  Google Scholar 

  • Tregenza T, Parker GA, Thompson DJ (1996) Interference and the ideal free distribution: models and tests. Behav Ecol 7(4):379–386

    Article  Google Scholar 

  • van Beest FM, McLoughlin PD, Mysterud A, Brook RK (2016) Functional responses in habitat selection are density dependent in a large herbivore. Ecography 39(6):515–523

    Article  Google Scholar 

  • Van Der Meer J, Smallegange IM (2009) A stochastic version of the beddington-deangelis functional response: modelling interference for a finite number of predators. J Anim Ecol 78(1):134–142

    Article  PubMed  Google Scholar 

  • Van DerMeer J, Ens BJ (1997) Models of interference and their consequences for the spatial distribution of ideal and free predators. J Animal Ecol 846–858

  • Walczak AM, Tkačik G, Bialek W (2010) Optimizing information flow in small genetic networks. ii. feed-forward interactions. Phys Rev E 81(4):041905

Download references

Funding

RCT acknowledges NSERC STPGP 506922-17 and NSERC DG RGPIN-2016-05277 grant. EF acknowledges NSERC Discovery Grant.

Author information

Authors and Affiliations

Authors

Contributions

Pau Capera-Aragones: lead investigator, responsible for all major areas of model development, analysis and interpretation, manuscript composition. Eric Foxall: formulated and proved Theorems 1 and 2, and involved throughout the project providing constant supervision and mentoring, and helping with concept formation, model analysis, and manuscript composition. Rebecca C. Tyson: involved throughout the project providing constant supervision and mentoring, and helping with concept formation, model analysis, and manuscript composition.

Corresponding author

Correspondence to Pau Capera-Aragones.

Ethics declarations

Ethics approval

Not applicable

Consent to participate

Not applicable

Consent for publication

Not applicable

Conflict of interest

The authors declare no competing interests.

Appendix: Large-\(\beta\) limit of Boltzmann and depleted Boltzmann distributions

Appendix: Large-\(\beta\) limit of Boltzmann and depleted Boltzmann distributions

We can handle the necessary theory for both the Boltzmann and Depleted Boltzmann distributions using the following framework. Let I be a finite set and \((\kern0.1500emf_i)_{i \in I}\) a collection of continuous functions with each \(f_i:\mathcal {R}_+\rightarrow \mathcal {R}\). Given population size N, we seek \(n:I\rightarrow \mathcal {R}_+\) satisfying \(\sum _i n_i=N\) and solving either of the following two problems:

  1. 1.

    The maximin problem \(\arg \max _n F(n)\) where \(F(n):=\text {min}\{\kern0.1500emf_i(n_i):i \in supp(n)\}\) and \(supp(n)=\{i:n_i \ne 0\}\).

  2. 2.

    The Boltzmann-type equation

    $$\begin{aligned} n_i = N \exp (\beta f_i(n_i))/Z_\beta \end{aligned}$$
    (6.1)

    where \(Z_\beta = \sum _i \exp (\beta f_i(n_i))\) is a normalizing constant.

When \((\kern0.1500emf_i)_{i\in I}\) describe a suitability function, solutions of the maximin problem are optimal foraging distributions (Pyke 1984). The Boltzmann-type equation corresponds to the Boltzmann distribution (Eq. (2.12)) if \(f_i=\epsilon _i\) and to the Depleted Boltzmann (Eq. (2.14)) if \(f_i = \partial (n_i \epsilon _i) / \partial n_i\), and the respective large-\(\beta\) limits, the ideal free and max energy distributions, are the maximin solutions with the given \(f_i\) (see Theorem 2). To solve both of the above problems it is helpful to make the following assumption:

$$\mathrm {(A1)} \quad \forall i, \ f_i\ \ \text {is decreasing and has} \ \ f_i(x)\rightarrow -\infty \ \text {as} \ x\rightarrow \infty .$$

The first part is a typical assumption in optimal foraging theory (Pyke 1984) while the second is a technical point. Subject to this we have the following results.

Theorem 1

Assume (A1) above. For each \(N>0\) the maximin problem has a unique solution, and for each \(N,\beta >0\) the Boltzmann-type problem has a unique solution.

Theorem 2

Assume Eq. (6.1) above. For each \(N>0\) the solutions \((n(\beta ))_{\beta >0}\) of the Boltzmann-type problem tend to the solution of the maximin problem as \(\beta \rightarrow \infty\).

Proof (Proof of Theorem 1)

We first solve the maximin problem. To do so we first find all \(n:I\rightarrow \mathcal {R}_+\) satisfying

$$\begin{aligned} \forall i\in supp(n), \ f_i(n_i) = \max _j f_j(n_j). \end{aligned}$$
(6.2)

Let c denote this maximal value. If \(f_i(0)>c\) let \(n_i\) be the unique positive value satisfying \(f_i(n_i)=c\) and otherwise let \(n_i=0\). If \(c<c_*:=\max _i f_i(0)\) the result is the unique \(n:I\rightarrow \mathcal {R}_+\) with the above property and maximal value c, that we denote n(c). The assumptions on \(f_i\) mean that for each i, the function \(c\mapsto n_i(c)\) is continuous, has \(n_i(c)=0\) for \(c\ge f_i(0)\), is decreasing on \((-\infty ,f_i(0)]\) and has \(n_i(c)\rightarrow \infty\) as \(c\rightarrow -\infty\). In turn, \(N(c):=\sum _i n_i(c)\) is continuous, is decreasing on \((-\infty ,c_*)\) and has \(N(c)\rightarrow 0\) as \(c\rightarrow c_*\) and \(N(c)\rightarrow \infty\) as \(c\rightarrow -\infty\), and so the inverse function c(N) is defined on \((0,\infty )\), is continuous, decreasing, and has \(c(N)\rightarrow c_*\) as \(N\rightarrow 0\) and \(c(N)\rightarrow -\infty\) as \(N\rightarrow \infty\).

We claim n(c(N)) is the unique solution to the maximin problem with population size N. To see this, suppose \(n:I\rightarrow \mathcal {R}_+\) has \(\sum _i n_i=N\) and \(n\ne n(c(N))\), then \(n_i > n_i(c(N))\) for some \(i \in supp(n)\) so \(F(n) \le f_i(n_i) < f_i(n_i(c(N)) \le c(N)=F(n_i(c(N)))\), completing the demonstration.

Next we solve the Boltzmann-type equation. We work in a similar way, this time by first solving the related equation

$$\begin{aligned} \forall i \in I, \ n_i = c \exp (\beta f_i(n_i)) \end{aligned}$$
(6.3)

for fixed \(c,\beta >0\). Write this as \(g_i(n_i,c)=0\) for each i, where \(g_i(n_i,c):= c \exp (\beta f_i(n_i)) - n_i\). Then \(g_i(0,c)=c \exp (\beta f_i(0))>0\) and by assumption on \(f_i\), \(n_i \mapsto g_i(n_i,c)\) is continuous, decreasing and \(g_i(n_i,c) \rightarrow -\infty\) as \(n_i\rightarrow \infty\). Let \(n_i(c)\) denote the unique solution. Since \(c\mapsto g_i(n_i,c)\) is increasing, if \(c_1<c_2\) then \(g_i(n_i(c_1),c_2) > g_i(n_i(c_1),c_1)=0\) so \(n_i(c_2)>n_i(c_1)\), i.e. \(c\mapsto n_i(c)\) is increasing. Since \(g_i(n_i,c) \le c\exp (\beta f_i(0))-n_i\), \(n_i(c)\le c\exp (\beta f_i(0))\) and in particular \(n_i(c)\rightarrow 0\) as \(c\rightarrow 0^+\). In addition, for any \(n_i>0\), \(g_i(n_i,c)\ge 0\) if \(c\ge n_i/\exp (\beta f_i(n_i))\), so \(n_i(c)\rightarrow \infty\) as \(c\rightarrow \infty\). \(c\mapsto n_i(c)\) is also continuous: this holds at c if \(n_i(c)=n_i(c^-)\), i.e. if for any increasing \((c_k)\) with limit c, \(n_i(c)=\lim _{k\rightarrow \infty } n_i(c_k)\), or equivalently \(g(c,\lim _{k\rightarrow \infty } n_i(c_k))=0\). Since g is continuous, \(g(c,\lim _{k\rightarrow \infty } n_i(c_k)) = \lim _{k\rightarrow \infty } g(c,n_i(c_k))\). Moreover,

$$|g(c,n_i(c_k))| = |g(c,n_i(c_k))-g(c_k,n_i(c_k))| = (c-c_k)\exp (\beta f_i(n_i(c_k))) \le (c-c_k)\exp (\beta f_i(0)).$$

In particular, \(g(c,n_i(c_k)) \rightarrow 0\) as \(k\rightarrow \infty\), which proves the result. It follows that \(c\mapsto N(c)\) is continuous, increasing, has \(N(c)\rightarrow 0\) as \(c\rightarrow 0^+\) and \(N(c)\rightarrow \infty\) as \(c\rightarrow \infty\). So, the inverse function c(N) has the same domain and the same properties, and \(\sum _I n_i(c(N))=N\) for each \(N>0\).

We claim that n(c(N)) is the unique solution to Eq. (6.1) with population size N. Since n(c(N)) solves Eq. (6.3) with \(c=c(N)\) and has \(\sum _i n_i(c(N))=N\) it solves Eq. (6.1) with \(Z_\beta = N/c(N)\). On the other hand if n solves Eq. (6.1) then with \(c=N/Z_\beta\), n solves Eq. (6.3), so \(n=n(c)\). To finish the proof we must show that \(c=c(N)\). However, c(N) is the only value of c for which \(\sum _i n_i(c)=N\).

Proof (Proof of Theorem 2)

For any \(N>0\) the set of \(n:I\rightarrow \mathcal {R}_+\) with \(\sum _i n_i=N\) is compact, so the limit set \(\lim _{\beta \rightarrow \infty } n(\beta )\) is non-empty. To prove convergence, it suffices to show every limit point has the maximizing support property. First notice that

$$\begin{aligned} n_i(\beta )/n_j(\beta ) = \exp (\beta ( f_i(n_i(\beta ))-f_j(n_j(\beta )))). \end{aligned}$$

Let \(n_i\) be the solution of the minimax problem and c the constant value of \(f_i(n_i), i \in supp(n)\). It’s enough to show that \(\limsup _{\beta \rightarrow \infty } n_i(\beta ) \le n_i\) for each i. If not then for some ij and some \(\delta >0\), \(n_i(\beta )\ge n_i+\delta\) and \(n_j(\beta ) \le n_j-\delta\) infinitely often as \(\beta \rightarrow \infty\). But then for such \(\beta\),

$$\begin{aligned} f_j(n_j(\beta )) \ge f_j(n_j-\delta )> f_j(n_j)=f_i(n_i) > f_i(n_i+\delta ) \ge f_i(n_i(\beta )) \end{aligned}$$

or in other words

$$\begin{aligned} f_j(n_j(\beta )) - f_i(n_i(\beta )) \ge \alpha := f_j(n_j-\delta ) - f_i(n_i+\delta ) >0. \end{aligned}$$

It follows then that infinitely often,

$$\begin{aligned} n_i(\beta )/n_j(\beta ) \le e^{-\beta \alpha }. \end{aligned}$$

However, \(n_i(\beta )/n_j(\beta ) \ge (n_i+\delta )/(n_j-\delta )>0\) by assumption, a contradiction.

Rights and permissions

Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Capera-Aragones, P., Tyson, R.C. & Foxall, E. The maximum entropy principle to predict forager spatial distributions: an alternate perspective for movement ecology. Theor Ecol 16, 21–34 (2023). https://doi.org/10.1007/s12080-023-00552-6

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s12080-023-00552-6

Keywords

Navigation