GWRResults.spatial_variability(self, selector, n_iters=1000, seed=None)[source]

Method to compute a Monte Carlo test of spatial variability for each estimated coefficient surface.

WARNING: This test is very computationally demanding!

selectorsel_bw object

should be the sel_bw object used to select a bandwidth for the gwr model that produced the surfaces that are being tested for spatial variation


the number of Monte Carlo iterations to include for the tests of spatial variability.


optional parameter to select a custom seed to ensure stochastic results are replicable. Default is none which automatically sets the seed to 5536

p valueslist

a list of psuedo p-values that correspond to the model parameter surfaces. Allows us to assess the probability of obtaining the observed spatial variation of a given surface by random chance.