Ripley K Function
Ripley K Function (Point Pattern Analysis) · Also known as: Ripley's K Function, Second-Order Intensity Function, K(d) Function, Ripley K Fonksiyonu
The Ripley K function, introduced by Brian Ripley in 1977, is a second-order summary statistic for spatial point patterns. It measures how the number of points within a given distance d of a typical point compares to what would be expected under complete spatial randomness (CSR). Widely used in ecology, epidemiology, criminology, and geography, the K function reveals whether events cluster, disperse, or distribute randomly across a study area at multiple spatial scales simultaneously.
Read the full method
Sign in with a free account to read this section.
Method map
The neighbourhood of related methods — select a node to explore.
When to use it
Use the Ripley K function when you have a mapped spatial point pattern — precise (x, y) coordinates of events in a defined study window — and want to test for clustering or regularity at multiple distance scales in a single analysis. Assumptions include stationarity (intensity is constant across the area) and isotropy (no directional bias). The method requires an irregular or rectangular study window with a defined boundary for edge correction. It is not suitable for aggregated areal data (use Moran's I instead) or when the point pattern is generated by an inhomogeneous process without prior intensity adjustment.
Strengths & limitations
- Simultaneously evaluates clustering, randomness, and regularity across a continuous range of spatial scales d
- Edge-correction methods make it robust even for points near study-area boundaries
- The L transformation linearizes the CSR baseline, simplifying visual and numerical comparison
- Monte Carlo envelopes provide a straightforward nonparametric significance framework without distributional assumptions
- Assumes stationarity; heterogeneous intensity fields require the inhomogeneous K function extension
- Monte Carlo envelope tests are global and can be misleading when deviations occur only at specific scales — pointwise p-values require correction
- Computationally intensive for large n because all n(n-1) pairwise distances must be evaluated
- Cannot distinguish between different clustering mechanisms (e.g., contagion vs. habitat preference) — pattern description only
Frequently asked
What is the difference between the K function and Moran's I?
Moran's I is designed for areal (polygon) data and measures global spatial autocorrelation of an attribute value. The Ripley K function operates on precise point-event coordinates and measures second-order spatial structure — how point density varies with distance — without requiring any attribute value. They address different data types and different questions about spatial pattern.
How should I choose the maximum distance d_max for the K function?
A common rule of thumb is to use at most half the shorter dimension of the study window (d_max ≤ min(width, height)/2). Beyond this distance, edge corrections become unreliable because most circle circumferences extend outside the window, and the estimator loses precision. Restricting d_max also avoids spurious large-scale trends driven by the study area's shape rather than the point process.
How many Monte Carlo simulations are needed for reliable envelopes?
A minimum of 99 simulations is conventional, giving a pointwise significance level of approximately 0.02 for the extreme envelope. For publication-quality tests or when using global envelope methods (such as the Mårtensson-Cronie rank test), 999 or more simulations are recommended to ensure stable envelope bounds and accurate p-value estimation across the full range of d.
Sources
- Ripley, B. D. (1977). Modelling spatial patterns. Journal of the Royal Statistical Society: Series B, 39(2), 172–212. DOI: 10.1111/j.2517-6161.1977.tb01615.x ↗
How to cite this page
ScholarGate. (2026, June 2). Ripley K Function (Point Pattern Analysis). ScholarGate. https://scholargate.app/en/spatial-analysis/ripley-k
Which method?
Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.
- Geary's CSpatial analysis↔ compare
- Getis-Ord Gi*Spatial analysis↔ compare