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›Bayesian Kernel Density Estimation
Regression modelGIS / spatial

Bayesian Kernel Density Estimation

Also known as: Bayesian KDE, BKDE, Bayesian nonparametric density estimation, Bayesian adaptive KDE

Bayesian Kernel Density Estimation (BKDE) is a nonparametric method for estimating the probability density function of a spatial or attribute variable by combining a kernel smoother with a Bayesian prior over the bandwidth parameter. The posterior distribution of the bandwidth propagates uncertainty into the final density estimate rather than treating the bandwidth as a fixed tuning constant.

ScholarGate
  1. Regression model
  2. v1
  3. 2 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.

Bayesian Kernel Density Estimation
Bayesian KrigingBayesian Spatial Regress…Hot Spot AnalysisLocal KrigingSpatial Autocorrelation

When to use it

Use Bayesian KDE when you need a smooth density surface for spatial point data or univariate continuous data and want principled uncertainty quantification around the density estimate itself. It is particularly valuable with small to moderate samples where classical cross-validation bandwidth selection is noisy, or when domain knowledge about spatial scale can be encoded as a prior. Avoid it when the dataset is very large (n > 50 000) and computational speed is critical, or when a simple heat-map without uncertainty is sufficient; in those cases classical KDE with cross-validated bandwidth is more practical.

Strengths & limitations

Strengths
  • Propagates bandwidth uncertainty into the density estimate, providing credible intervals rather than a single point estimate.
  • Prior knowledge about the spatial scale of the phenomenon can be incorporated formally through the bandwidth prior.
  • More stable than cross-validation bandwidth selection in small samples.
  • Handles spatial and non-spatial continuous data without distributional assumptions.
  • Can be extended to adaptive Bayesian KDE where the bandwidth varies locally with data density.
Limitations
  • Computationally more demanding than classical KDE because it requires numerical integration or MCMC over the bandwidth posterior.
  • Posterior results are sensitive to the choice of prior on h, especially with small samples.
  • Interpretability of the marginalised density surface can be harder to communicate to non-Bayesian audiences.
  • Does not model spatial dependence structure explicitly; for spatially correlated data, kriging or spatial regression may be more appropriate.

Frequently asked

How is Bayesian KDE different from ordinary KDE?

Ordinary KDE selects a single bandwidth (typically by cross-validation or Silverman's rule) and uses it throughout. Bayesian KDE treats the bandwidth as a random variable, places a prior on it, and averages the density surface over the posterior distribution of the bandwidth, producing uncertainty estimates rather than a single surface.

What prior should I use for the bandwidth?

A log-normal or half-normal prior on h is common because bandwidth must be positive and the log-scale reflects multiplicative uncertainty in smoothing. Setting the prior mean near a reference bandwidth (e.g., Silverman's rule-of-thumb value) and using a moderate standard deviation is a reasonable starting point, after which prior sensitivity should be assessed.

Can Bayesian KDE be used for spatial data in two dimensions?

Yes. The kernel and bandwidth parameter can be extended to two dimensions (a bandwidth matrix H), and a prior is placed over H. The computational cost increases but the logic is identical. Most implementations simplify by using a scalar bandwidth and isotropic kernel.

When should I use kriging instead of Bayesian KDE for spatial density?

Use kriging when your variable is a continuous measurement recorded at sample locations and you need to interpolate its value at unsampled locations. Use Bayesian KDE when you have a point pattern (event locations) and want to estimate the spatial intensity or density of events.

How is the bandwidth posterior computed in practice?

The leave-one-out cross-validation likelihood is evaluated on a grid of h values, combined with the prior, and normalised to approximate the posterior. For higher-dimensional bandwidth matrices, MCMC (e.g., Metropolis-Hastings) is used to draw samples from the posterior.

Sources

  1. Hjort, N. L., & Glad, I. K. (1995). Nonparametric density estimation with a parametric start. The Annals of Statistics, 23(3), 882–904. DOI: 10.1214/aos/1176324627 ↗
  2. Kernel density estimation. Wikipedia. link ↗

How to cite this page

ScholarGate. (2026, June 3). Bayesian Kernel Density Estimation. ScholarGate. https://scholargate.app/en/spatial-analysis/bayesian-kernel-density-estimation

Related methods

Bayesian KrigingBayesian Spatial RegressionHot Spot AnalysisLocal KrigingSpatial Autocorrelation

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.

  • Bayesian KrigingSpatial analysis↔ compare
  • Bayesian Spatial RegressionSpatial analysis↔ compare
  • Hot Spot AnalysisSpatial analysis↔ compare
  • Local KrigingSpatial analysis↔ compare
  • Spatial AutocorrelationSpatial analysis↔ compare
Compare side by side →

Similar methods

Bayesian KrigingLocal Kernel Density EstimationBayesian Ordinary KrigingPanel Kernel Density EstimationKernel Density EstimationBayesian Universal KrigingSpatial Bayesian InferenceBayesian Geographically Weighted Regression

Related reference concepts

Density EstimationBayesian NonparametricsEmpirical Bayes MethodsGaussian Process ModelsBayes' Theorem and the PosteriorDirichlet Process and Mixture Models

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

ScholarGate — Bayesian Kernel Density Estimation (Bayesian Kernel Density Estimation). Retrieved 2026-07-21 from https://scholargate.app/en/spatial-analysis/bayesian-kernel-density-estimation · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Hjort & Glad (1995); extended by various authors in Bayesian nonparametrics
Year
1995
Type
Nonparametric density estimation
DataType
Continuous spatial or attribute data (point patterns, areal counts)
Subfamily
GIS / spatial
Related methods
Bayesian KrigingBayesian Spatial RegressionHot Spot AnalysisLocal KrigingSpatial Autocorrelation
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