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, which is 0.52.
library(hopkins) set.seed(42) dat1 <- matrix(runif(2000), ncol=2) plot(dat1) hopkins(dat1) # .52
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 and the value of Hopkins statistic is 0.89.
set.seed(42) dat2 <- matrix(rnorm(1000), ncol=2) plot(dat2) hopkins(dat2) # .89
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.