- Methodology
- Open Access
- Published:

# A nonparametric spatial scan statistic for continuous data

*International Journal of Health Geographics*
**volume 14**, Article number: 30 (2015)

## Abstract

### Background

Spatial scan statistics are widely used for spatial cluster detection, and several parametric models exist. For continuous data, a normal-based scan statistic can be used. However, the performance of the model has not been fully evaluated for non-normal data.

### Methods

We propose a nonparametric spatial scan statistic based on the Wilcoxon rank-sum test statistic and compared the performance of the method with parametric models via a simulation study under various scenarios.

### Results

The nonparametric method outperforms the normal-based scan statistic in terms of power and accuracy in almost all cases under consideration in the simulation study.

### Conclusion

The proposed nonparametric spatial scan statistic is therefore an excellent alternative to the normal model for continuous data and is especially useful for data following skewed or heavy-tailed distributions.

## Background

Geographic disease surveillance involves identifying areas with unusually high or low rates of disease outcome. One of the most widely used methods is the spatial scan statistic, which has been developed for several different probability models such as Poisson, Bernoulli, ordinal, multinomial, exponential, and normal. The most popular disease outcome is of count data type such as disease incidence or mortality, which can be analyzed using the Poisson model when the number of cases is compared to underlying population [1]. For case–control type of data, the Bernoulli model is used [1]. Multi-category disease outcomes such as disease subtypes or cancer stage can be analyzed using multinomial or ordinal models [2–4]. The exponential model is used for spatial cluster detection for survival time data [5]. For continuous data such as birth weight in infants, a spatial scan statistic based on the normal probability model has been proposed [6]. For continuous regional measures at geographic levels such as mortality rate at the county level, a weighted normal model, which considers the weights reflecting the uncertainty of the regional measures or sample size, has been proposed [7].

Here we focus on continuous outcome data and propose a nonparametric spatial scan statistic that does not require distributional assumption. The normal and weighted normal models are parametric methods based on the normal distribution. These models can be used for non-normal data because they still maintain the correct significance by using the permutation procedure for obtaining a p-value as indicated by Kulldorff et al. [6]. However, the statistical power of the models has not been fully evaluated for non-normal data. In this paper, we develop a nonparametric spatial scan statistic based on the Wilcoxon rank-sum test statistic and compare the performance of the method with parametric models via a simulation study under various scenarios.

While the parametric spatial scan statistic is the maximum value of the likelihood ratio test statistics comparing inside versus outside a scanning window over numerous windows, the proposed nonparametric spatial scan statistic is defined as the minimum of p-values from Wilcoxon rank-sum tests. We also use the permutation procedure for evaluating the statistical significance of the detected cluster. Therefore, the proposed method also maintains the significance level correctly. Through a thorough simulation study we evaluate the performance of the method. The proposed method is compared to the normal-based spatial scan statistic in terms of conventional statistical power, indicated as conditional power by Takahashi and Tango [8], and accuracy measures of sensitivity and positive predicted value (PPV). Extended power proposed by Takahashi and Tango [8] is also presented.

## Methods

### A scan statistic for continuous data based on the normal probability model

Suppose that we have continuous outcome data such as birth weight at each location of a study region and that we want to identify an area with a higher (or lower) mean of outcome than remaining areas. Kulldorff et al. [6] proposed a scan statistic for continuous data based on the normal probability model for this kind of problem. The null hypothesis of no clustering is written as \(H_{0} :\mu = \eta\) for all *z* and the alternative is \(H_{a} :\mu > \eta \ (\textrm{or } \mu < \eta )\) for some *z*, where *μ* and *η* are the means of outcome variables inside and outside scanning window *z*, respectively. A large number of scanning windows with variable sizes are imposed on a study region and each scanning window is a candidate for the most likely cluster. Circular scanning windows are considered here.

The normal distribution has two parameters of mean and variance. Kulldorff et al. [6] assumed a common variance inside and outside the scanning window under the alternative hypothesis. Given window *z*, the log-likelihood ratio test statistic *LLR*(*z*), equivalent to the likelihood ratio test statistic *LR*(*z*), is given by

where *N* is the total number of observations, *x*
_{
i
} are the continuous observations (*i* = 1,…, *N*), \(\hat{\mu } = \sum\nolimits_{i} {x_{i} } /N\) and \({\hat{{\sigma }}}^{2} = \sum\nolimits_{i} {\left( {x_{i} - \hat{\mu }} \right)^{2} /N}\) are the maximum likelihood estimates (MLEs) of the mean and variance under the null hypothesis, respectively, and \({\hat{{\sigma }}}_{z}^{2}\) is the MLE of the common variance under the alternative hypothesis, which is given by

Here, \(\hat{\mu }_{z} = \sum\nolimits_{i \in z} {x_{i} /n_{z} }\) and \(\hat{\eta }_{z} = \sum\nolimits_{i \notin z} {x_{i} /\left( {N - n_{z} } \right)}\) are the MLEs of the mean parameters under the alternative hypothesis, where \(n_{z}\) is the number of observations inside window *z*. The *LLR*(*z*) depends on *z* only through the last term, and therefore, the most likely cluster is the area that minimizes the variance under the alternative hypothesis, which in turn maximizes *LLR*(*z*).

To evaluate the statistical significance of the most likely cluster, randomly permuted data sets are generated and the maximum of *LLR*(*z*) is calculated for each data set. The p-value of the most likely cluster is computed as the rank of the maximum of *LLR*(*z*) from the original data set among all data sets divided by the number of all data sets. All procedures for finding the most likely cluster and obtaining the p-value have been implemented into the SaTScan software [9].

Kulldorff et al. [6] applied the normal-based scan method to New York City birth weight data, and identified two statistically significant clusters of low birth weight that corresponded to areas with high infant mortality. These authors suggested that the normal model could be used for a wide variety of continuous data, which may not be normally distributed, however it was not recommended for exponential or other types of survival data. Kulldorff et al. [6] further mentioned that the correct type I error rate will be maintained even for non-normal data due to the permutation procedure. However, the statistical power of detecting clusters for non-normal data has not been evaluated.

### A nonparametric spatial scan statistic

Here we proposed a nonparametric spatial scan statistic for continuous outcome data, which requires no distributional assumptions. The null hypothesis is written as \(H_{0} :F_{in} = F_{out}\) for all *z* and the alternative is \(H_{a} :F_{in} \left( x \right) = F_{out} \left( {x - \Delta } \right)\) for some *z*, where \(F_{in}\) and \(F_{out}\) are the cumulative distribution functions (cdfs) of outcome variable inside and outside scanning window *z* and \(\Delta\) is a location shift of the cdf for outside relative to inside *z*. A positive \(\Delta\) implies that outcomes tend to be higher inside compared to outside *z* and a negative \(\Delta\) indicates the inverse outcome. We propose to use the Wilcoxon rank-sum test statistic as the test statistic for the nonparametric spatial scan statistic. Specifically, we compute the Wilcoxon rank-sum test statistic for a given scanning window comparing inside versus outside *z* and obtain a p-value, and the minimum of p-values over all scanning windows is the test statistic. The area associated with the smallest p-value is defined as the most likely cluster. Calculation of the Wilcoxon rank-sum test and a p-value is quite simple. Assign ranks to the observations, using the average rank in the case of tied observations, and suppose that the rank of *x*
_{
i
} is *R*
_{
i
} (*i* = 1, …, *N*). The Wilcoxon rank-sum test given *z* is \(W_{z} = \sum\nolimits_{i \in z} {R_{i} }\) and a p-value can be obtained using the normal approximation for \(W_{z}\). Under \(H_{0}\), \(E(W_{z} ) = n_{z} \left( {N + 1} \right)/2\) and \(Var(W_{z} ) = n_{z} \left( {N - n_{z} } \right)\left( {N + 1} \right)/12\). For \(n_{z} \ge 10\) and \(\left( {{\text{N}} - n_{z} } \right) \ge 10\), \(T_{z} = \left( {W - E(W_{z} )} \right)/\sqrt {Var(W_{z} )}\) is approximately normally distributed with a mean of 0 and a variance of 1 [10]. Therefore, the test statistic given *z* is \(1 - {{\varPhi }}(T_{z} )\) for \(\Delta > 0\) and \({{\varPhi }}(T_{z} )\) for \(\Delta < 0\), where \({{\varPhi }}\) is the cdf of the standard normal distribution. For small values of \(n_{z}\) or \({\text{N}} - n_{z}\), the exact method to compute a p-value can be used [10].

We also use the same permutation procedure as the normal-based scan statistic to evaluate the statistical significance of the most likely cluster. In addition to the most likely cluster, we also report secondary clusters with statistical significance, if any, when they have no geographical overlap with more significant clusters.

### Simulation study settings and performance measures

To evaluate the statistical power and accuracy of the proposed nonparametric spatial scan statistic and the normal-based method, we conducted a simulation study under various scenarios. Assuming several different distributions, we created a true cluster that tends to have higher outcomes than the remaining areas on an 8 × 8 unitless grid with a length of two units for each side of a cell. The center of the true cluster was at the coordinates 11 and 5, and any cell whose center is within the radius of a length of 3 was included in the true cluster. In this way, the true cluster consisted of 9 cells, the center cell at the 6th column from left and the 3rd row from the bottom and 8 cells around the center cell. We considered normal, logistic, double-exponential, uniform, lognormal, t-, and Cauchy distributions. Under each distribution, location parameters were set different inside and outside the true cluster. For normal, logistic, double-exponential, and uniform distributions, the mean of the distributions was set to \(c \sqrt 2\) (*c* = 0.5, 1, 1.5) inside and 0 outside the cluster. For lognormal distributions, the mean was set to 2 + \(c \sqrt 2\) (*c *= 0.5, 1, 1.5) inside and 2 outside the cluster since the mean of lognormal distributions cannot be zero. The variance was set to 1 over all areas for normal, logistic, double-exponential, uniform, and log normal distributions. For t-distributions, the degrees of freedom was set to 3 and the mean difference between inside and outside the cluster was \(c \sqrt 2\) (*c* = 0.5, 1, 1.5). For Cauchy distributions, we set the scale parameter to 1 and the location parameter to *c* = 2, 4, 6, inside and 0 outside the cluster, because the Cauchy distribution does not have mean and variance.

We generated 1000 data sets of sample size 64 for each scenario and tested whether there was a cluster that tended to have higher outcomes than remaining areas for each of the 1000 simulated data sets, using the proposed method and the normal-based method. The statistical power was estimated as the number of rejected data sets out of 1000 at the significance level of 0.05. We also estimated sensitivity and PPV in order to evaluate the accuracy of the detected cluster. Sensitivity was defined as the proportion of the number of cells correctly detected among the cells in the true cluster and PPV as the proportion of the number of cells belonging to the true cluster among the cells in the detected cluster. Sensitivity and PPV were estimated as the average of the proportions only for data sets rejected at the significance level of 0.05.

Although power, sensitivity, and PPV are well-defined and useful measures for comparing the performance of spatial scan statistics [2–6], another useful tool is the extended power and its profile proposed by Takahashi and Tango [8]. The extended power is defined as a weighted sum of a bivariate power function, P(1,s) of “length” *l*, which is the size of the detected cluster (i.e. the number of cells in the detected cluster), and “include” *s*, which is the number of cells belonging to the true cluster among the cells in the detected cluster. In our simulation setting, P(9,9) indicates the power of exactly detecting the true cluster. The weight function includes penalties for false positives (FPs) and false negatives (FNs) and the extended power is expressed as a function of the penalties. Using certain penalties, the extended power is reduced to the usual power. Takahashi and Tango [8] proposed to use the profile of the extended power which represents the extended power continuously for all values of the ratio of penalties, *r*. Further details on the extended power can be found in the paper by Takahashi and Tango [8], and an example of its application was reported by Guttmann et al. [11]. We also presented profiles of the extended power using the results from the simulation studies.

## Results

Table 1 shows the estimated power, sensitivity, and PPV for the proposed method and the normal-based method. In most cases, except for uniform distributions, the power of the nonparametric method was higher than that of the normal-based method. Even for normal distributions, the nonparametric method demonstrated slightly higher power than the normal-based method. Although the power of both methods becomes higher as the difference in location parameters inside versus outside the cluster gets larger, the power of the nonparametric method was much higher, especially for very heavy-tailed distributions such as t(3) and Cauchy, as well as for asymmetric distributions such as lognormal. Sensitivity was also higher for the nonparametric method than the normal-based method in most cases. In cases of uniform distribution, the sensitivity of the nonparametric method was as good as the normal-based method even though the power was slightly lower. The PPV of the nonparametric method was similar to or slightly lower than the normal-based method in most cases. This may be because clusters detected using the normal-based method are rather smaller than clusters identified using the nonparametric method. Sensitivity and PPV depend on the size of detected clusters. Therefore, the profile of the extended power presented in Fig. 1 can be very useful for describing overall performance. We used the quantities for the values associated with penalties for FN and FP as proposed by Tango and Takahashi [8]. As shown in Fig. 1, the nonparametric method is uniformly more powerful than the normal-based method in every case except for uniform distributions. The extended power of the nonparametric method was much higher than that of the normal-based method, especially for lognormal, t(3), and Cauchy distributions.

## Conclusions and discussions

We have proposed a nonparametric spatial scan statistic for continuous data. As seen in simulation studies, the nonparametric model has higher power and precision than the normal model especially for heavy-tailed or asymmetric distributions. It is somewhat surprising that the power is higher even for normal distributions although the difference is not very large. This could be due to the current simulating setting of a relatively small number of data points. Another simulation study involving more varied situations would help to better evaluate the performance of the proposed method; however, we believe that the nonparametric model works very well and can serve as an excellent alternative to the normal model for spatial cluster detection for continuous data.

The proposed method can be applied to a wide range of continuous data such as birth weight, body mass index, and cholesterol level of individuals, except for survival time data, for which methods that can handle censored observations [5] are more suitable. Ordinal type of data with many categories can also be analyzed by the proposed method.

As the parametric normal-based spatial scan statistic, the proposed test statistic was constructed under the assumption of independent observations. However, this does not mean that the test assumes that there is no spatial auto-correlation. As described in SaTScan User Guide [12], it is a test of whether there is spatial auto-correlation or other divergences from the null hypothesis. Spatial auto-correlation should not be adjusted away when we are interested in detecting clusters due to such correlation.

The nonparametric spatial scan statistic can be easily extended to space–time settings by considering a three-dimensional cylindrical scanning window with a base representing space and a height representing time. Considering different shapes for scanning windows other than circles, such as ellipses [13] or irregular shapes [14–16] would also be interesting for the nonparametric spatial scan statistic.

## References

- 1.
Kulldorff M. A spatial scan statistic. Communication in statistics: theory and methods. 1997;26(6):1481–96.

- 2.
Jung I, Kulldorff M, Richard OJ. A spatial scan statistic for multinomial data. Stat Med. 2010;29(18):1594–607.

- 3.
Jung I, Kulldorff M, Klassen A. A spatial scan statistic for ordinal data. Stat Med. 2007;26(7):1594–607.

- 4.
Jung I, Lee H. Spatial cluster detection for ordinal outcome data. Stat Med. 2007;31(29):4040–8.

- 5.
Huang L, Kulldorff M, Gregorio D. A spatial scan statistic for survival data. Biometrics. 2007;63:109–18.

- 6.
Kulldorff M, Huang L, Konty K. A scan statistic for continuous data based on the normal probability model. Int J Health Geogr. 2009;8:58.

- 7.
Huang L, Tiwari CR, Zou J, Kulldorff M, Feuer EJ. Weighted normal spatial scan statistic for heterogeneous population data. J Am Stat Assoc. 2009;104(487):886–98.

- 8.
Takahashi K, Tango T. An extended power of cluster detection tests. Stat Med. 2006;25(5):841–52.

- 9.
Kulldorff M, Information Management Services, Inc. SaTScan™ v9.3: Software for the spatial and space-time scan statistics. 2014. http://www.satscan.org/.

- 10.
Lehmann EL and D’Abrera HJM.

*Nonparametrics: Statistical Methods on Ranks*. Springer 2006. - 11.
Guttmann A, Ouchchane L, Li X, Perthus I, Gaudart J, Demongeot J, Boire J-Y. Performance map of a cluster detection test using extended power. Int J Health Geogr. 2013;12:47.

- 12.
Kulldorff M. SaTScan™ User Guide. http://www.satscan.org. Accessed 10 October 2015.

- 13.
Kulldorff M, Huang L, Pickle L, Duczmal L. An elliptic spatial scan statistic. Stat Med. 2006;25(22):3929–43.

- 14.
Patil GP, Taillie C. Upper level set scan statistic for detecting arbitrarily shaped hotspots. Environ Ecol Stat. 2004;11:183–97.

- 15.
Duczmal L, Assunção R. Simulated annealing strategy for the detection of arbitrarily shaped spatial clusters. Comput Stat Data Anal. 2004;45:269–86.

- 16.
Tango T, Takahashi K. A flexibly shaped spatial scan statistic for detecting clusters. Int J Health Geogr. 2005;4:11.

## Authors’ contributions

IJ conceived the study and drafted the manuscript. HJC conducted the simulation and data analysis. All authors read and approved the final manuscript.

### Acknowledgements

This study was supported by a Grant from the National R&D Program for Cancer Control, Ministry of Health and Welfare, Republic of Korea (1420230).

### Competing interests

The authors declare that they have no competing interests.

## Author information

### Affiliations

### Corresponding author

## Rights and permissions

**Open Access** This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated.

## About this article

### Cite this article

Jung, I., Cho, H.J. A nonparametric spatial scan statistic for continuous data.
*Int J Health Geogr* **14, **30 (2015). https://doi.org/10.1186/s12942-015-0024-6

Received:

Accepted:

Published:

### Keywords

- Spatial cluster detection test
- Normal-based scan statistic
- Wilcoxon rank-sum test