Independent check of gwr_bounds.m and nab_bounds.py, 9 November 2026

A separate AI model, GPT-6 Astra (Extra High), wrote two new versions of the
user function, one in the MATLAB language and one in Python, from the
written specification alone (nab_spec_r189, the algorithm in full with
reference values for the basic formulas and none for the test designs),
without access to this package.
It ran the 30 designs of crosscheck_designs.txt at alpha 0.05 and 0.01, the
Georgia illustration, and 20,000 draws on the US counties.  Its MATLAB
version ran under GNU Octave 8.4.0.  The comparisons below set its results
against crosscheck_matlab.csv and crosscheck_python.csv of this folder.

Deterministic values (nu, m, nEdges, uH, uB, uDSF, uDSFtrS, uL), 60 rows
   26 designs without tied distances   largest difference 4.9e-09
                                       (tracts_120 uH, Python against Python)
   T1, T2, agrid1521_60, grid1521_60   up to 6.5e-04 in uH, from the choice
                                       among minimum spanning trees with
                                       links of equal length
   its two versions against each other 4.0e-10 on every design (they break
                                       ties by the same rule)
   its pair by pair NAB against binned 5.8e-07 at most

Georgia, Gaussian kernel, b = 175.52 km
   coefficients, standard errors, t     largest relative difference 1.7e-11
   thresholds, whole table and each     largest difference 5.1e-11
   surface at both levels (52 values)
   rural share, convention of Figure 1  124, 91, 34, and 0 counties, as here

US counties, M = 90, 20,000 draws, seed 1, batch 500, alpha 0.05
   its Python run       uSim 4.3925928317, rates dSF 74.005%, dCDS 8.520%,
                        NAB 3.015%, Bonferroni 1.480%, identical draw for
                        draw to nab_bounds.py
   its Octave run       uSim 4.4021651707, rates 74.365%, 8.925%, 3.055%,
                        1.590%, identical draw for draw to gwr_bounds.m
                        under Octave
   MATLAB (record)      uSim 4.399, rates 73.79%, 8.8%, 3.03%, 1.43%
                        (replication/output); its MATLAB version was not
                        run under native MATLAB

Tied links.  On the two 39 by 39 grids the horizontal and vertical links
fall into a few groups of equal length, so many trees are minimum spanning
trees.  Its
sensitivity check ordered the tied links by their joint probabilities and
found 5% NAB thresholds of 4.4253 and 4.4350 on the grid of the paper, all
valid bounds, against 4.4294 here and 4.4296 to 4.4297 when the tied links
are taken by orientation.  The dCDS lower endpoint does not depend on the tree.

Two further checks, same specification, same day

Grokbot (which chooses its own model, probably Grok 4.7) also wrote a MATLAB
and a Python version, and it gave the two versions different algorithms for
the tree, the neighbor search, and the root finder.  Its MATLAB version ran
under GNU Octave 9.4.0.
   26 designs without tied distances   largest difference 4.9e-09 (Python),
                                       3.1e-09 (Octave against MATLAB)
   T1, T2, agrid1521_60, grid1521_60   up to 6.5e-04 in uH (choice of tree)
   Georgia fit                         largest relative difference 1.5e-11;
                                       thresholds as here; 124, 91, 34, 0
   US counties, 20,000 draws           its Python run 4.392592832 and its
                                       Octave run 4.402165171, identical
                                       draw for draw to nab_bounds.py and to
                                       gwr_bounds.m under Octave

Gemini Argon wrote a Python version that ran and a MATLAB version that its
author did not run.
   Python      nu, Bonferroni, dSF, and the Georgia fit (1.9e-11) agree, and
               its 20,000 draws on the counties match nab_bounds.py, but its
               thresholds differ.  Its sparse graph of candidate links added
               the lengths of links listed twice (once as near neighbors and
               once as Delaunay edges), so its spanning tree was 1.6 to 2
               times the minimal length.  That still gives a valid bound but
               a looser one, with uH too high on every design by up to 0.2
               (4.5918 against 4.5136 on the counties, 17 counties of
               Georgia flagged on the rural share against 34).  Its lower
               endpoint evaluated the joint probabilities at v times sqrt(2),
               cos^2(theta/2) in place of 2 cos^2(theta/2), so uL fell far too
               low (2.81 against 4.26 on the counties).
   MATLAB      does not follow the interface or the defaults of the
               specification; under Octave its Bonferroni and NAB thresholds
               coincide (2.18 on Georgia) and nu differs (145.76 against
               135.95).
