Local Kernel Density Estimation
Also known as: Local KDE, adaptive KDE, spatially adaptive kernel density estimation, local density estimation
Local Kernel Density Estimation (Local KDE) is a non-parametric spatial method that estimates the density of point events at each location by applying a kernel function with a spatially adaptive bandwidth. Unlike global KDE, which uses a fixed bandwidth across the entire study area, Local KDE adjusts the smoothing window according to local data density, capturing fine-scale clustering where events are sparse or concentrated.
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 Local KDE when you have point event data (crime incidents, disease cases, retail locations, accident sites) and you expect the intensity to vary strongly across the study region. It is preferable to global KDE when the point pattern has both dense clusters and sparse zones, because a fixed bandwidth would simultaneously over-smooth clusters and under-smooth sparse areas. Do not use Local KDE when events follow a regular or random spatial process with no clustering, when the dataset is extremely small (fewer than ~30 events), or when you need a probabilistic model with inferential testing — in those cases consider spatial autocorrelation measures or kernel regression instead.
Strengths & limitations
- Adapts the smoothing bandwidth to local data density, preserving sharp peaks in dense clusters without creating noise in sparse areas.
- Produces an interpretable continuous density surface ready for GIS visualisation and overlay analysis.
- Non-parametric: no distributional assumptions about the underlying point process.
- Applicable to any type of point event data regardless of the attribute measured.
- Widely implemented in ArcGIS (Kernel Density tool), QGIS, R (spatstat, ks packages), and Python (scipy, KDEpy).
- Bandwidth selection is critical and subjective; different pilot estimators can yield markedly different surfaces.
- Does not provide formal hypothesis testing or p-values for identified hotspots — supplementary methods such as Getis-Ord Gi* are needed for inference.
- Computationally intensive for very large point datasets or fine grid resolutions.
- Edge effects near study-area boundaries may produce artificially low density estimates unless corrected.
Frequently asked
What is the difference between global KDE and Local KDE?
Global KDE uses a single fixed bandwidth h applied uniformly across the entire study area. Local KDE computes a spatially varying bandwidth h_i for each location based on local data density, so it adapts its smoothing to the local point pattern rather than imposing a one-size-fits-all window.
How do I choose the adaptive bandwidth?
The most common approach is a two-step procedure: first estimate a pilot (fixed-bandwidth) density, then set h_i proportional to the inverse square root of the pilot density at each event location. Plug-in selectors (e.g., Abramson's rule) and cross-validation can guide the initial pilot bandwidth choice.
Can Local KDE replace hotspot tests like Getis-Ord Gi*?
No. Local KDE is exploratory and produces a density surface without statistical significance values. Getis-Ord Gi* and similar local spatial statistics provide z-scores and p-values to formally test whether an observed cluster is statistically significant given the spatial distribution of values. Use Local KDE for visualisation and Gi* for inference.
Does the choice of kernel function (Gaussian vs. quartic) matter much?
In practice, the choice of kernel shape has little effect on the density surface compared to the choice of bandwidth. Most kernel functions give nearly identical results at the same bandwidth. Bandwidth selection is the dominant decision.
How do I handle edge effects at the study-area boundary?
Apply edge correction techniques such as the reflection method or guard-zone trimming. In ArcGIS, the Kernel Density tool handles edge effects automatically. In R (spatstat), the density.ppp function offers several edge correction options including 'isotropic' and 'translate' corrections.
Sources
- Silverman, B. W. (1986). Density Estimation for Statistics and Data Analysis. Chapman and Hall, London. ISBN: 978-0412246203
- Diggle, P. J. (1985). A kernel method for smoothing point process data. Journal of the Royal Statistical Society: Series C (Applied Statistics), 34(2), 138-147. link ↗
How to cite this page
ScholarGate. (2026, June 3). Local Kernel Density Estimation. ScholarGate. https://scholargate.app/en/spatial-analysis/local-kernel-density-estimation
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.
- Hot Spot AnalysisSpatial analysis↔ compare
- Local Moran's ISpatial analysis↔ compare
- Local Spatial AutocorrelationSpatial analysis↔ compare
- Network-Based Spatial AnalysisSpatial analysis↔ compare
- Spatial AutocorrelationSpatial analysis↔ compare