Hopkins statistic is used to test a Null Hypothesis of spatial randomness. Under the null distribution of spatial randomness, the value of the statistic should be 0.5.
The important point of this protocol is to raise awareness of potential problems. We leave it to the practitioner to decide what do with the answers to these questions.
We can simulate 1000 points uniformly in a unit square and then calculate Hopkins statistic.
## [1] 0.5217802
## [1] 0.4238149
The value of the statistic is 0.52, which is not far from 0.5. The p-value of the test is non-significant. Spatial uniformity of the points is possible.
Simulate 1000 points from a bivariate normal distribution (with 0 covariance). The sampling frame for generating new points \(u\) is from the minimum value to maximum value of the events in each axis. Roughly -3 to 3 for Normal data. The points form a circular “cluster” within this bounding box.
## [1] 0.8927865
## [1] 0
The value of Hopkins statistic is 0.89. This value is far from 0.5. The p-value of the test is significant. The distribution of points is non-uniform.