Most spatial analysis workflows — LISA, spatial regression, spatial econometrics — begin with a weights matrix W that defines which places count as neighbors. The standard approach is geometric: queen contiguity, rook, or k-nearest neighbors based on polygon borders or centroid distance.
The weights matrix defines the structure, but the data flowing through it carries its own uncertainty. In the ACS, every estimate comes with a margin of error. A tract's median gross rent may have a MOE of ±$800, while a neighboring tract has ±$3,200. When both neighbors receive equal weight, the noisier estimate has the same influence on spatial statistics as the reliable one — and that can shape results in ways that are difficult to detect.
This tool compares three conditions: geometric weights, a learned GAT without MOE-aware training, and a learned GAT informed by data reliability. The neighborhood definition also matters — queen, rook, and KNN already produce meaningfully different spatial patterns. Accounting for data uncertainty adds another layer of sensitivity on top of that.
| Model | Spatial? | Weighted? |
|---|---|---|
| Neural Network | No — each tract independent | — |
| GNN | Yes — blends neighbors | Equally |
| GAT | Yes — blends neighbors | Learned |
A regular NN treats tract A in isolation. A GNN lets A absorb information from its neighbors — but weights them equally. A GAT learns how much each neighbor should count. Those learned percentages become W*.
Both GAT conditions use two input features per tract: normalized rent and normalized MOE%. The difference is whether the training process gives the network a reason to act on the uncertainty signal.
| Neighbor B — low MOE | 0.250 → 0.341 |
| Neighbor C — high MOE | 0.250 → 0.087 |
| Neighbor D — low MOE | 0.250 → 0.318 |
| Neighbor E — low MOE | 0.250 → 0.254 |
The no-MOE condition retains MOE% as a visible feature, so some implicit uncertainty awareness may persist even without perturbation. A stricter design would remove MOE% from that condition entirely. KNN neighborhoods are directional by construction, which is a known limitation of centroid-based neighbor definitions. This is exploratory work — the results suggest spatial weights should not be treated as neutral geometry, but they do not constitute a validated method.
ACS 5-Year 2022, U.S. Census Bureau (B25064). TIGER/Line via pygris. PyTorch Geometric · libpysal · esda · Leaflet.js.