Plugin icon

GeoStats Lab

Plugin ID: 5235

Spatial statistics in the Processing Toolbox: hot spot analysis (Getis-Ord Gi*), cluster and outlier analysis (LISA), spatial autocorrelation, regionalization, spatial regression and interpolation, with optional machine learning.

Download latest
Versions JSON
Latest version

GeoStats Lab finds hot spots and cold spots (Getis-Ord Gi*), clusters and spatial outliers (local Moran's I, LISA), tests whether a pattern is spatially autocorrelated (global Moran's I, Geary's C, General G), groups areas into contiguous regions (SKATER, max-p, AZP, REDCAP), fits spatial regression models and interpolates surfaces, all as Processing tools: 102 of them in eight groups, ordered the way a study runs. Results are written as layer fields with documented meanings, and many tools add an HTML report that explains the numbers in plain language. In the hot spot and cluster maps, features with a missing value or with no neighbours are shown as their own class and counted in the report instead of being hidden or called not significant; contiguity weights on points and a distance band on a geographic CRS (degrees) are refused with a hint. Global Moran's I, General G, Geary's C, Gi*, local Moran's I and the contiguity weights are checked against PySAL esda in the test suite.
00 SETUP AND DIAGNOSTICS (5): Is the data fit for spatial statistics, and which tool answers my question? A data readiness audit, a workflow advisor that suggests which tools fit your question and data, a sample dataset guide, and two library tools: GeoStats Library Status checks what is installed without changing anything, and Install / Update GeoStats Libraries installs optional packages only when you run it.
01 DATA PREPARATION AND NEIGHBORHOODS (3): Every spatial statistic depends on who counts as a neighbour, so this group makes that choice explicit and testable. A spatial weights workbench with distance-band selection, empirical Bayes rate smoothing for small-population areas, and attribute export to CSV or ASCII.
02 URBAN PATTERN SCAN (12): Is the pattern clustered, dispersed or random, at what distance, and does it hold up under a different zoning? Global Moran's I, incremental spatial autocorrelation to find the distance at which clustering peaks, Geary's C, Getis-Ord General G, join count statistics, the gamma index, global bivariate Lee's L, average nearest neighbour, Ripley's K, the Geodetector q-statistic for stratified heterogeneity, Gini and spatial Gini, and S-maup, which tests whether your result depends on the zoning you happened to use.
03 HOT SPOTS, SPATIAL OUTLIERS AND REGIONS (18): Where exactly are the clusters and the places that break the pattern, and how can areas be grouped into coherent regions? Getis-Ord Gi* hot spots; local Moran's I and local Geary's C clusters and outliers; bivariate LISA and Lee's L; empirical Bayes LISA for rates; local join counts for binary clusters and co-location; partial and conditional local Moran that removes the effect of covariates; local spatial heteroskedasticity (LOSH); multivariate local Geary; the colocation quotient; similarity search; k-means multivariate clustering; and regionalization with SKATER, AZP, REDCAP and max-p regions that meet a minimum size, with a quality assessment for the zones they produce.
04 CENTERS, DIRECTION AND DISPERSION (6): Where is a distribution centred, which way does it stretch, and how far does it spread? Mean centre, median centre and central feature, standard distance, the standard deviational ellipse and linear directional mean.
05 MODELS AND SCENARIOS (15): What explains the pattern, does the relationship change from place to place, and how sure can we be? OLS, generalized linear regression, Lagrange multiplier tests that tell you which spatial model the data call for, spatial lag, spatial error and spatial Durbin models, spatial regime and quantile regression, exploratory regression across variable combinations, eigenvector spatial filtering, geographically weighted summary statistics, GWR and multiscale GWR (MGWR), a model comparison matrix, and an attribute randomization test that shows whether a pattern survives shuffled data.
06 MACHINE LEARNING AND EXPLAINABLE AI (34): When relationships are non-linear, these models predict and classify, and the explainability tools show why each prediction came out as it did, so a model can be discussed in a planning review rather than taken on trust. Regression and classification with random forest, extra trees, gradient boosting (scikit-learn, XGBoost, LightGBM and CatBoost), support vector machines, neural networks and the TabPFN tabular foundation model, plus DBSCAN, HDBSCAN and Gaussian mixture clustering. Models are validated with spatial k-fold or kNNDM cross-validation and compared on a leaderboard, and their residuals are checked for leftover spatial autocorrelation. Explanations come from SHAP (global importance, a spatial attribution map and local reports), permutation importance, partial dependence, glass-box Explainable Boosting Machines and DiCE counterfactuals, and every prediction can carry a distribution-free conformal interval and an uncertainty map.
07 INTERPOLATION AND GEOSTATISTICS (9): How do you turn sample points into a continuous surface and know how far to trust each cell? Empirical semivariogram and model fitting; ordinary and universal kriging that writes its own variance raster; empirical Bayesian kriging, which accounts for the uncertainty of fitting the variogram; indicator kriging for the probability of exceeding a threshold; IDW, natural neighbour, radial basis functions and polynomial trend surfaces; and a comparison tool that scores the interpolators under one shared validation protocol.
The statistics, models and geostatistics run on the Python that ships with QGIS. The machine-learning tools use optional libraries such as scikit-learn, XGBoost, LightGBM, CatBoost, SHAP and TabPFN; they are installed only when you run Install / Update GeoStats Libraries, and GeoStats Library Status shows which ones are present.
Manual: https://geophilo.com/planx_geostats/manual.html

Version QGIS >= QGIS <= Date
3.12.1 - 3.28.0 4.99.0 426 Token 2026-10-27T19:50:06.897079+00:00
3.12.0 - 3.28.0 4.99.0 223 Token 2026-10-21T15:51:29.112986+00:00
3.10.1 - 3.28.0 4.99.0 677 geo140195philo 2026-09-29T20:01:59.916529+00:00
3.10.0 - 3.28.0 4.99.0 407 geo140195philo 2026-09-19T12:32:09.314806+00:00
3.8.1 - 3.28.0 4.99.0 121 geo140195philo 2026-09-16T20:41:09.619772+00:00
3.8.0 - 3.28.0 4.99.0 281 geo140195philo 2026-09-06T14:14:48.882928+00:00
3.7.0 - 3.28.0 4.99.0 351 geo140195philo 2026-08-19T17:05:55.228142+00:00
2.1.2 - 3.28.0 4.99.0 96 geo140195philo 2026-08-19T07:37:06.344328+00:00
1.0.0 - 3.28.0 4.99.0 215 geo140195philo 2026-08-13T14:20:50.114726+00:00
0.9.22 - 3.28.0 4.99.0 240 geo140195philo 2026-08-07T16:31:35.233543+00:00
0.9.19 - 3.28.0 4.99.0 887 geo140195philo 2026-07-14T19:07:31.676364+00:00
0.9.18 - 3.28.0 4.99.0 504 geo140195philo 2026-06-18T21:14:14.879857+00:00
0.9.17 - 3.28.0 4.99.0 346 geo140195philo 2026-06-04T22:41:23.329580+00:00
0.9.15 - 3.28.0 4.99.0 253 geo140195philo 2026-05-29T21:19:49.186591+00:00
0.9.14 - 3.28.0 4.99.0 197 geo140195philo 2026-05-27T13:44:11.678294+00:00
0.9.13 - 3.28.0 4.99.0 193 geo140195philo 2026-05-26T12:55:21.357939+00:00
0.9.12 - 3.28.0 4.99.0 158 geo140195philo 2026-05-26T07:27:02.083133+00:00
0.9.11 - 3.28.0 4.99.0 182 geo140195philo 2026-05-25T14:48:07.787208+00:00
0.9.10 - 3.28.0 3.99.0 219 geo140195philo 2026-05-22T03:24:35.295917+00:00
0.9.8 - 3.28.0 3.99.0 198 geo140195philo 2026-05-21T23:32:36.930055+00:00
0.9.4 - 3.28.0 3.99.0 150 geo140195philo 2026-05-21T22:02:38.344576+00:00
0.9.2 - 3.28.0 3.99.0 275 geo140195philo 2026-05-21T12:10:52.191915+00:00
0.9.0 - 3.28.0 3.99.0 149 geo140195philo 2026-05-20T14:16:39.675822+00:00