Spatial ecology is a specialization in ecology and geography that is concerned with the identification of spatial patterns and their relationships to ecological phenomena. Ecological events can be explained through the detection of patterns at a given spatial scale: local, regional, or global. Through the application of spatial statistical analysis, factors leading to ecological events can be determined and verified. Spatial ecology can be distinguished by two different approaches: the field of landscape ecology and, the field of metapopulation ecology.
In nature, organisms are neither distributed uniformly nor at random, forming instead some sort of spatial pattern. This is due to various energy inputs, disturbances, and species interactions that result in spatially patchy structures or gradients. This spatial variance in the environment creates diversity in communities of organisms, as well as in the variety of the observed biological and ecological events. The type of spatial arrangement present may suggest certain interactions within and between species, such as competition, predation, and reproduction. On the other hand, certain spatial patterns may also rule out specific ecological theories previously thought to be true
Although spatial ecology deals with spatial patterns, it is usually based on observational data rather than on an existing model. This is because nature rarely follows set expected order. To properly research a spatial pattern or population, the spatial extent to which it occurs must be detected. Ideally, this would be accomplished beforehand via a benchmark spatial survey, which would determine whether the pattern or process is on a local, regional, or global scale. This is rare in actual field research, however, due to the lack of time and funding, as well as the ever-changing nature of such widely-studied organisms such as insects and wildlife. With detailed information about a species' life-stages, dynamics, demography, movement, behavior, etc., models of spatial pattern may be developed to estimate and predict events in unsampled locations.
Most mathematical studies in ecology in the nineteenth century assumed a uniform distribution of living organisms in their habitat. In the past quarter century, ecologists have begun to recognize the degree to which organisms respond to spatial patterns in their environment. Due to the rapid advances in computer technology in the same time period, more advanced methods of statistical data analysis have come into use. Also, the repeated use of remotely sensed imagery and geographic information systems in a particular area has led to increased analysis and identification of spatial patterns over time. These technologies have also increased the ability to determine how human activities have impacted animal habitat and climate change. The natural world has become increasingly fragmented due to human activities; anthropogenic landscape change has had a ripple-effect impacts on wildlife populations, which are now more likely to be small, restricted in distribution, and increasingly isolated from one another. In part as a reaction to this knowledge, and partially due to increasingly sophisticated theoretical developments, ecologists began stressing the importance of spatial context in research. Spatial ecology emerged from this movement toward spatial accountability; "the progressive introduction of spatial variation and complexity into ecological analysis, including changes in spatial patterns over time".
In spatial ecology, scale refers to the spatial extent of ecological processes and the spatial interpretation of the data. The response of an organism or a species to the environment is particular to a specific scale, and may respond differently at a larger or smaller scale. Choosing a scale that is appropriate to the ecological process in question is very important in accurately hypothesizing and determining the underlying cause. Most often, ecological patterns are a result of multiple ecological processes, which often operate at more than one spatial scale. Through the use of such spatial statistical methods such as geostatistics and principal coordinate analysis of neighbor matrices (PCNM), one can identify spatial relationships between organisms and environmental variables at multiple scales.
Spatial autocorrelation 
Spatial autocorrelation refers to the value of samples taken close to each other are more likely to have similar magnitude than by chance alone. When a pair of values located at a certain distance apart are more similar than expected by chance, the spatial autocorrelation is said to be positive. When a pair of values are less similar, the spatial autocorrelation is said to be negative. It is common for values to be positively autocorrelated at shorter distances and negative autocorrelated at longer distances. This is commonly known as Tobler's first law of geography, summarized as "everything is related to everything else, but nearby objects are more related than distant objects".
- True/inherent spatial autocorrelation arises from interactions among individuals located in close proximity. This process is endogenous (internal) and results in the individuals being spatially adjacent in a patchy fashion. An example of this would be sexual reproduction, the success of which requires the closeness of a male and female of the species.
- Induced spatial autocorrelation (or 'induced spatial dependence') arises from the species response to the spatial structure of exogenous (external) factors, which are themselves spatially autocorrelated. An example of this would be the winter habitat range of deer, which use conifers for heat retention and forage.
Most ecological data exhibit some degree of spatial autocorrelation, depending on the ecological scale (spatial resolution) of interest. As the spatial arrangement of most ecological data is not random, traditional random population samples tend to overestimate the true value of a variable, or infer significant correlation where there is none. This bias can be corrected through the use of geostatistics and other more statistically advanced models. Regardless of method, the sample size must be appropriate to the scale and the spatial statistical method used in order to be valid.
Spatial patterns, such as the distribution of a species, are the result of either true or induced spatial autocorrelation. In nature, organisms are distributed neither uniformly nor at random. The environment is spatially structured by various ecological processes, which in combination with the behavioral response of species’ generally results in:
- Gradients (trends) steady directional change in numbers over a specific distance
- Patches (clumps) a relatively uniform and homogenous area separated by gaps
- Noise (random fluctuations) variation not able to be explained by a model
Theoretically, any of these structures may occur at any given scale. Due to the presence of spatial autocorrelation, in nature gradients are generally found at the global level, whereas patches represent intermediate (regional) scales, and noise at local scales.
The analysis of spatial ecological patterns comprises two families of methods;
- Point pattern analysis deals with the distribution of individuals through space, and is used to determine whether the distribution is random. It also describes the type of pattern and draws conclusions on what kind of process created the observed pattern. Quadrat-density and the nearest neighbor methods are the most commonly used statistical methods.
- Surface pattern analysis deals with spatially continuous phenomena. After the spatial distribution of the variables is determined through discrete sampling, statistical methods are used to quantify the magnitude, intensity, and extent of spatial autocorrelation present in the data (such as correlograms, variograms, and peridograms), as well as to map the amount of spatial variation.
Analysis of spatial trends has been used to research wildlife management, fire ecology, population ecology, disease ecology, invasive species, marine ecology, and carbon sequestration modeling using the spatial relationships and patterns to determine ecological processes and their effects on the environment. Spatial patterns have different ecosystem functioning in ecology for examples enhanced productive.
The concepts of spatial ecology are fundamental to understanding the spatial dynamics of population and community ecology. The spatial heterogeneity of populations and communities plays a central role in such ecological theories such as succession, adaptation, community stability, competition, predator-prey interactions, parasitism, and epidemics. The rapidly expanding field of landscape ecology utilizes the basic aspects of spatial ecology in its research.
The practical use of spatial ecology concepts is essential to understanding the consequences of fragmentation and habitat loss for wildlife. Understanding the response of a species' to a spatial structure provides useful information in regards to biodiversity conservation and habitat restoration.
Spatial ecology modeling uses components of remote sensing and geographical information systems (GIS).
Statistical tests 
A number of statistical tests have been developed to study such relations.
Tests based on distance 
- Clark and Evans' R
Clark and Evans in 1954 proposed a test based on the density and distance between organisms. Under the null hypothesis the expected distance ( re ) between the organisms (measured as the nearest neighbor's distance) with a known constant density ( ρ ) is
The difference between the observed ( ro ) and the expected ( re ) can be tested with a Z test
where A is the area of the region sampled and N is the total number of organisms. For large samples Z is distributed normally. The results are usually reported in the form of a ratio: R = ( ro ) / ( re )
- Pielou's α
Pielou in 1959 devised a different statistic. He considered instead of the nearest neighbors the distance between an organisms and a set of pre-chosen random points within the sampling area again assuming a constant density. If the population is randomly disbursed in the area these distances will equal the nearest neighbors distances. Let ω be the ratio between the distances from the random points and the distances calculated from the nearest neighbor calculations. The α is
where d is the constant common density and π has its usual numerical value. Values of α less than, equal to or greater than 1 indicate uniformity, randomness (a Poisson distribution) or aggregation respectively. Alpha may be tested for a significant deviation from 1 by computing the test statistic
where χ2 is distributed with 2n degrees of freedom. n here is the number of organisms sampled.
Montford in 1961 showed than then the density is estimated rather than a known constant that this version of alpha tended to overestimate the actual degree of aggregation. He provided a revised formulation which corrects this error.
See also 
- Legendre, P.; Fortin, M.-J. (1989). "Spatial pattern and ecological analysis". Plant Ecology 80 (2): 107–138. doi:10.1007/BF00048036.
- Perry, J.N.; A.M. Liebhold, M.S. Rosenberg, J. Dungan, M. Miriti, A. Jakomulska, and S. Citron-Pousty (2002). "Illustrations and guidelines for selecting statistical methods for quantifying spatial pattern in ecological data". Ecography 25 (5): 578–600. doi:10.1034/j.1600-0587.2002.250507.x.
- Liebhold, A.M.; J. Gurevitch (2002). "Integrating the statistical analysis of spatial data in ecology". Ecography 25 (5): 553–557. doi:10.1034/j.1600-0587.2002.250505.x.
- Tobin, P.C. (2004). "Estimation of the spatial autocorrelation function: consequences of sampling dynamic populations in space and time". Ecography 27 (6): 765–775. doi:10.1111/j.0906-7590.2004.03977.x.
- Keitt, Timothy H.; Ottar N. Bjørnstad, Philip M. Dixon, Steve Citron-Poust (2002). "Accounting for spatial pattern when modeling organism-environment interactions". Ecography 25 (5): 616–625. doi:10.1034/j.1600-0587.2002.250509.x.
- Rockwood, Larry L. (2006). Introduction to Population Ecology. Malden, MA, USA: Blackwell Publishing Ltd. pp. 108–110. ISBN 9781405132633.
- Fortin, Marie-Josée; Mark R. T. Dale (2005). Spatial Analysis: A Guide for Ecologists. Cambridge University Press. ISBN 978-0-521-80434-9.
- Bellier, E.; P. Monestiez, J.-P. Durbec, J.-N. Candau (2007). "Identifying spatial relationships at multiple scales: principal coordinates of neighbor matrices (PCNM) and geostatistical approaches". Ecography 30 (3): 385–399. doi:10.1111/j.0906-7590.2007.04911.x.
- De Knegt; H.J.; F. van Langevelde; M.B. Coughenour; A.K. Skidmore; W.F. de Boer; I.M.A. Heitkönig; N.M. Knox; R. Slotow; C. van der Waal and H.H.T. Prins (2010). Spatial autocorrelation and the scaling of species–environment relationships. Ecology 91: 2455–2465. doi:10.1890/09-1359.1
- Fortin, M.-J.; M.R.T. Dale, J. ver Hoef (2002). "Spatial Analysis in Ecology". Encyclopedia of Environmetrics 4: 2051–2058.
- Legendre, P. (1993). "Spatial autocorrelation: trouble or new paradigm?". Ecology (Ecological Science of America) 74 (6): 1659–1673. doi:10.2307/1939924. ISSN 0012-9658.
- Rietkerk, M. and Van de Koppel, J. 2008 Regular pattern formation in real ecosystems. Trends in Ecology and Evolution 23:169-175
- Collinge, S.K. (2001). "Spatial ecology and biological conservation: Introduction". Biological Conservation 100: 1–2.
- Clark PJ, Evans FC (1954) Distance to nearest neighbor as a measure of spatial relationships in populations. Ecology 35: 445–453
- Pielou E G 1959. The use of point-to-plant distances in the study of patterns in plant populations. J Ecol 47: 607-613
- Spatial Ecology, hosts software for use in spatial ecological analysis.
- Spatial Ecology Research Programme at the University of Helsinki
- Spatial Ecology Lab at the University of Queensland
- Ecography publishes peer-reviewed articles on spatial ecology.
- National Center for Ecological Analysis and Synthesis at the University of California, Santa Barbara
- Spatial Ecology Lab at the University of Alaska, Fairbanks