Verification & Assignment Spec
Objectives: Separate isolated outliers from significant clusters · Retain genuine observed zero cells · Run Bonferroni-adjusted Getis–Ord Gi* · Test sensitivity to neighbourhood scale (1 ring vs 2 rings).
Step 1 · Inspect the Input & Observed Zeros
- Unzip the archive, keep
AMDGS-grid.qgzbesidesurvey.gpkg, and open the project in QGIS 4. - Open the attribute table for Survey counts and sort
reportsdescending. LocateI09(18 reports) andD04(9 reports). - Run Select by Expression with
"reports" = 0to inspect the 42 genuine observed zeros across the equal-effort grid, then clear the selection.
Step 2 · Run the Universal QGIS 4 Processing Script
- Open Processing Toolbox → click the Python Scripts toolbar icon → Add Script to Toolbox… and select
amdgs_getis_ord_gi_star.py. - Run Scripts → AMDGS Spatial Analysis → AMDGS Getis-Ord Gi* Hotspots with Input =
Survey counts, Field =reports, Neighbourhood =Queen contiguity — 1 ring, Permutations =9999, Correction =Bonferroni, Seed =20261119. - Filter the output by
"is_hot" = 1to isolate the 5 flagged hotspot squares, then compareI09andD04.
Step 3 · Scale Sensitivity Check (1 Ring → 2 Rings)
Re-run changing only Neighbourhood from 1 ring to 2 rings and inspect boundary cell C03.
Check your numbers against the verified reference table
| Cell | Own reports | 1-ring sum | 1-ring p_high | 1-ring flag | 2-ring sum | 2-ring flag |
|---|---|---|---|---|---|---|
I09 | 18 | 18 | 0.3147 | No | 27 | No |
D04 | 9 | 72 | 0.0001 | Yes | 97 | Yes |
C03 | 7 | 42 | 0.0020 | No | 97 | Yes |
Totals: 144 polygons · 245 reports · 42 zeros · 5 flagged hotspots at 1 ring · 9 flagged hotspots at 2 rings.
Applying the Tool to Your Own Data
- Select any polygon layer (wards, LSOAs, hex grids, ecological quadrats) with a non-null numeric column.
- For irregular polygons, switch Neighbourhood to Fixed centroid distance band (layer CRS units) and choose Benjamini–Hochberg FDR when Bonferroni becomes overly strict across hundreds or thousands of polygons.