Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Spatial analysis›Ripley K Function
Hypothesis testPoint pattern analysis

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.

ScholarGate
  1. Hypothesis test
  2. v1
  3. 1 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Ripley K Function
Geary's CGetis-Ord Gi*Near-Repeat Analysis

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

Strengths
  • 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
Limitations
  • 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

  1. 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

Related methods

Geary's CGetis-Ord Gi*

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
Compare side by side →

Referenced by

Near-Repeat Analysis

Similar methods

Point Pattern Settlement AnalysisNearest Neighbour IndexGlobal Spatial AutocorrelationLocal Kernel Density EstimationSpatial AutocorrelationMultiscale Moran's IScan Statistic Cluster DetectionMultiscale Spatial Autocorrelation

Related reference concepts

Spatial Point ProcessesGIS and Spatial Analysis in ArchaeologyK-Means ClusteringDensity EstimationCluster AnalysisLandscape and Spatial Ecology

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Ripley K Function (Ripley K Function (Point Pattern Analysis)). Retrieved 2026-07-21 from https://scholargate.app/en/spatial-analysis/ripley-k · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Brian Ripley
Year
1977
Type
Spatial point pattern test
Subfamily
Point pattern analysis
Null Hypothesis
Complete spatial randomness (CSR) — Poisson process
Envelope Method
Monte Carlo simulation envelopes for significance
Related methods
Geary's CGetis-Ord Gi*
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account