Full text
Statistics and Computing https://doi.org/10.1007/s11222-018-09850-0 Resample-smoothing of Voronoi intensity estimators M. Mehdi Moradi1·Ottmar Cronie2·Ege Rubak3·Raphael Lachieze-Rey4·Jorge Mateu5· Adrian Baddeley6 Received: 28 June 2018 / Accepted: 21 December 2018 © The Author(s) 2019 Abstract Voronoi estimators are non-parametric and adaptive estimators of the intensity of a point process. The intensity estimate at a given location is equal to the reciprocal of the size of the Voronoi/Dirichlet cell containing that location. Their major drawback is that they tend to paradoxically under-smooth the data in regions where the point density of the observed point pattern is high, and over-smooth where the point density is low. To remedy this behaviour, we propose to apply an additional smoothing operation to the Voronoi estimator, based on resampling the point pattern by independent random thinning. Through a simulation study we show that our resample-smoothing technique improves the estimation substantially. In addition, we study statistical properties such as unbiasedness and variance, and propose a rule-of-thumb and a data-driven cross-validation approach to choose the amount of smoothing to apply. Finally we apply our proposed intensity estimation scheme to two datasets: locations of pine saplings (planar point pattern) and motor vehicle traffic accidents (linear network point pattern). Keywords Adaptive intensity estimation ·Independent thinning ·Machine learning ·Point process ·Resampling · Voronoi intensity estimator 1 Introduction In the analysis of spatial point patterns (van Lieshout 2000; Chiu et al. 2013; Diggle 2014; Baddeley et al. 2015), exploratory investigation often starts with non-parametric analysis of the spatial intensity of points. The intensity function, which is a first order moment characterisation of the Electronic supplementary material The online version of this article (https://doi.org/10.1007/s11222-018-09850-0) contains supplementary material, which is available to authorized users. BOttmar Cronie ottmar[email protected] 1Institute of New Imaging Technologies (INIT), University Jaume I, Castellón, Spain 2Department of Mathematics and Mathematical Statistics, Umeå University, Umeå, Sweden 3Department of Mathematical Sciences, Aalborg University, Aalborg, Denmark 4Université Paris Descartes, Sorbonne Paris Cité, Paris, France 5Department of Mathematics, University Jaume I, Castellón, Spain 6Department of Mathematics and Statistics, Curtin University, Perth, Australia point process assumed to have generated the data, reflects the abundance of points in different regions and may be seen as a “heat map” for the events. For most datasets, it is not realistic to assume that the underlying point process is homogeneous, i.e. that its intensity function is constant; rather it is natural to start by assuming inhomogeneity. The most prominent approach to non-parametric intensity estimation is undoubtedly kernel estimation (Diggle 1985; Silverman 1986; Diggle 2014; Baddeley et al. 2015). The degree of smoothing is controlled by a smoothing parameter, called the bandwidth, and the resulting estimates heavily depend on the choice of bandwidth. A small bandwidth may result in under-smoothing whereas a large bandwidth might result in over-smoothing the intensity. Data-based procedures for bandwidth selection have been studied extensively (Diggle 1985; Silverman 1986; Berman and Diggle 1989; Scott 1992; Wand and Jones 1995; Loader 1999) including some recent advances (Cronie and van Lieshout 2018). A further problem with kernel estimation is that, if there are wide variations in intensity across the spatial domain, it may be impossible to find a single fixed bandwidth value which is satisfactory for smoothing every part of the spatial domain. Consequently the bandwidth must be spatially-varying, giving rise to a spatially “adaptive” kernel estimator (Davies and 123
Statistics and Computing Hazelton 2010; Diggle 2014;Daviesetal.2016; Davies and Baddeley 2018) at the cost of increased complexity. Recently there has been increasing interest in point patterns on linear networks (Okabe and Sugihara 2012;Ang et al. 2012; Baddeley et al. 2015; Rakshit et al. 2018); examples include street crimes or traffic accidents on a road network (of a city). Here the matter of kernel estimation is even more delicate due to the geometry of the underlying network. Borruso (2003,2005,2008) proposed several methods for kernel smoothing of network data without discussing statistical properties. Xie and Yan (2008) defined a kernel-based intensity estimator for network point patterns without taking the topography of the network into consideration and as a result the estimation errors tended to be large, thus making the estimator heavily biased. Okabe et al. (2009) further introduced a class of so-called equal-split network kernel density estimators which support both continuous and discontinuous schemes. By exploiting properties of diffusion on networks, McSwiggan et al. (2017) developed a kernel estimation method based on the heat kernel, which is the appropriate linear network analogue of the Gaussian kernel. In addition, Moradi et al. (2018) extended the classical spatial edge corrected kernel intensity estimator to point patterns on linear networks. As a consequence of underlying causes such as demography and human mobility, it is quite common to encounter sharp boundaries between high and low concentrations of events. For example, street crimes and traffic accidents tend to happen particularly in busy streets, which may be surrounded by quiet neighbourhoods. The classical kernel estimation approach is often unsuitable for such types of data. Echoing Barr and Schoenberg (2010), we argue that kernel-based approaches may be unsatisfactory when there are sharp boundaries between parts with high and low intensities. Fixed bandwidth kernel smoothing results in over-smoothing in high-intensity areas, under-smoothing in low-intensity areas, and a blurring of sharp boundaries (Baddeley et al. 2015). By using a spatially adaptive kernel estimator we may reduce such problems when estimating the intensity function, but optimal bandwidth selection becomes even more challenging and important (Davies and Hazelton 2010). As an alternative, one could consider an approach without any choice of tuning parameters, e.g. a tessellation-based approach (van Lieshout 2012; Schaap 2007). One such approach is provided by Voronoi intensity estimation (Ord 1978; Barr and Schoenberg 2010; Okabe and Sugihara 2012), defined such that within a given Voronoi cell of the point pattern the intensity estimate is set to the reciprocal of the size of that cell (Okabe et al. 2000). When employing the Voronoi intensity estimator, one thing that quickly becomes evident is that it often accentuates local features too much, in particular in regions with high event density. This reflects a previously observed phenomenon: adaptive estimators, such as the Voronoi intensity estimator, may smooth too little whereas kernel estimators may smooth too much in dense regions (Baddeley et al. 2015, Section 6.5.2). Hence, one should be able to find some middle ground and we here aim at providing a contribution to that. Our idea is simple. In dense parts surrounded by empty neighbourhoods, Voronoi intensity estimators tend to smooth too little, thus generating excessive peaks in the intensity estimate in those parts. By removing points in such a dense part we reduce the peaks, which results in a smoother intensity estimate, with a shape more similar to the true intensity function. However, the problem of doing this “manually” is twofold: (1) it is not clear which specific points we should remove, and (2) we need to compensate for the reduced total mass. To solve these issues, we propose to generate m≥1 independent random point patterns, each obtained by randomly thinning the original point pattern with the same retention probability p. From each of the thinned patterns we compute a Voronoi intensity estimate. In order to compensate for the reduced mass, we then scale each of the m estimates by the reciprocal of the retention probability, and use the corresponding average as final estimate of the intensity function. We propose this technique for point patterns in rather general spaces. The paper is structured as follows. In Sect. 2we give a short background on point processes and intensity estimation. In Sect. 3we introduce our resample-smoothing technique, study its statistical properties and discuss ways to choose the amount of smoothing, i.e. thinning, to apply. In Sect. 4we assess the performance of our approach numerically for a few different planar point processes and in Sect. 5we apply our methodology to two datasets: a planar point pattern and a linear network point pattern. Section 6contains a discussion and some directions for future work and in the Electronic Supplementary Material we provide the proofs of the theoretical results in the paper as well as bias and variance plots together with box plots for estimation errors for the simulation study in Sect. 4. 2 Preliminaries The spatial domain is a general space S,assumedtobea complete separable metric space with distance metric d(·,·). Assume there is a reference measure A→|A|for A⊆ S, which is sigma-finite and locally finite. Integration with respect to this measure is denoted by du. All subsets A⊆S under consideration are assumed to be Borel sets. Let Xbe a simple point process (Daley and Vere-Jones 2008)inS. A realisation of Xis a locally-finite set of points in S. The cardinality of the set X∩A,A⊆S, will be denoted by N(X∩A)∈{0,1,...}and we note that by definition we have 123
Statistics and Computing N(X∩A)<∞a.s. for bounded A⊆Sand N(X∩{u})∈ {0,1}for any u∈S. Apoint pattern is a finite set x={x1,...,xn}⊂S, n≥0, of distinct points in S. Inside any bounded study region W⊆S, the partial realisation X∩Wof the point process is a point pattern. Relevant examples of the space Sinclude: – Euclidean space S=Rdof dimension d≥1(van Lieshout 2000; Diggle 2014; Baddeley et al. 2015) with the Euclidean distance d(u,v) =u−v,u,v ∈Rd, where · = · ddenotes the Euclidean norm, and Lebesgue measure |·|. – The sphere S=αSd−1={x∈Rd:xd=α}, of radius α>0 in dimension d≥1, where d(·,·)is the great circle distance and |·|is the spherical surface measure (Lawrence et al. 2016; Møller and Rubak 2016). – A linear network, i.e. a union S=L= k i=1 li of k∈{1,2,...}line segments li=[ui,v i]={tui+ (1−t)vi:0≤t≤1}⊆Rd,d≥1. A common choice for d(u,v)is the shortest-path distance, which gives the shortest length of any path in Ljoining u,v ∈L(Okabe and Sugihara 2012; Ang et al. 2012;Rakshitetal.2017). Treated as a graph with vertices given by the intersections and endpoints of the line segments, Lis assumed to be connected. The measure |·|here corresponds to integration with respect to arc length. We emphasise that in each of the above cases there exist other metrics and measures which may be more suited for a particular context (Rakshit et al. 2017). At times, we will assume that Xis stationary, or invariant. More specifically, there is a family of transformations/shifts {θs:s∈S},θs:S→S, along S, which induces a so-called flow, under which the distribution of θsX={θs(x):x∈X} coincides with that of Xfor any s∈S. The underlying assumption will be that Sis a so-called (unimodular) homogeneous space with a fixed origin o∈S, with d(·,·)chosen such that it metrizes Sand |·|chosen to be the associated (left) Haar measure (Last 2010; Schneider and Weil 2008); each such space is a locally compact second-countable Hausdorff space and thereby Sbecomes a complete separable metric space. To exemplify, in Euclidean spaces with |·| chosen to be Lebesgue measure, we let θs(u)=u+s∈Rd, u,s∈Rd, which yields the classical notion of stationarity, and on a sphere with the corresponding spherical measure we consider the orthogonal group of rotations. Note that a more general setting is also possible (Kallenberg 2017, Chapter 7). 2.1 Intensity functions To characterise the first moment of X, i.e. the marginal distributional properties of its points, we consider its intensity function ρ:S→[0,∞). It may be defined through the Campbell formula (Daley and Vere-Jones 2008) which states that for any measurable function f≥0onS, E x∈X f(x)=S f(u)ρ(u)du. In particular, E[N(X∩A)]=A ρ(u)du for any A⊆S.IfXis stationary, then ρ(u)≡ρ∈(0,∞) for any u∈S. Heuristically, ρ(u)dumay be interpreted as the probability of finding a point of Xin an infinitesimal neighbourhood du of u∈Swith measure du. 2.2 Independent thinning A key ingredient in our smoothing technique is the notion of independent thinning (Chiu et al. 2013, Section 5.1): given some measurable retention probability function p(u)∈ (0,1],u∈S, we run through the points of Xand delete a point x∈Xwith probability 1 −p(x), independently of the deletions carried out for the other points of X. The resulting thinned process has intensity ρth(u)=p(u)ρ(u), u∈S, where ρ(·)is the intensity of the original process X(Chiu et al. 2013, Section 5.1). For further details on the thinning of point processes, see e.g. Møller and Schoenberg (2010) and Daley and Vere-Jones (2008, Section 11.3). It is worth mentioning that a Poisson process stays Poissonian after independent thinning (Daley and Vere-Jones 2008, Exercise 11.3.1) and, in addition, the independent thinning of an arbitrary point process Xwith low retention probability results in a point process which, from a distributional point of view, is approximately a Poisson process (Baddeley et al. 2015, Section 9.2.2). 2.3 Voronoi tessellations The next key ingredient in our estimation scheme is the Voronoi/Dirichlet tessellation of a point pattern x= {x1,...,xn}contained in some subset W⊆S(Chiu et al. 2013; Okabe et al. 2000). Generally speaking, a tessellation of Wis a tiling such that i) the union of all tiles constitutes all of W, and ii) the interiors of any two tiles have empty intersections. 123
Statistics and Computing The Voronoi/Dirichlet cell Vxassociated with x∈xconsists of all u∈Swhich are closer to xthan any y∈x\{x}, i.e. Vx=Vx(x,W) ={u∈W:d(x,u)≤d(y,u)for all y∈x\{x}}.(1) The tiling {Vx}x∈xis termed the Voronoi/Dirichlet tessellation generated by x. Clearly, the shape of each Vxdepends on the distance d(·,·)chosen for Sand its size, |Vx|, depends on the chosen reference measure |·|. 2.4 Intensity estimation Given a point pattern x={x1,...,xn}in some study region W⊆S,|W|>0, we next set out to estimate ρ(u),u∈W, under the assumption that xis a realisation of X∩W. Before going into details about specific estimators, we briefly mention how different estimators’ performances may be evaluated and compared. To evaluate the performance of an estimator ρ(·)=ρ(·; X,W)of ρ(u),u∈W,itiscommon practice to employ the Mean Integrated Square Error (MISE): MISE =EW (ρ(u)−ρ(u))2du =W Var (ρ(u))du+W bias(ρ(u))2du =IV +ISB,(2) where bias(ρ(u)) =E[ρ(u)]−ρ(u).Givenk≥1 realisations of X∩W, to obtain an estimate of MISE we average over the integrated square errors generated by each of the k realisations. Alternatively, we may find estimates of the functions Var (ρ(u)) and bias(ρ(u)),u∈W, based on the kpatterns and integrate these over W. This is the setup chosen for the numerical evaluations presented in Sect. 4. 2.4.1 Voronoi intensity estimation In practice, it is often the case that events occur frequently in specific parts of the study region, e.g. that accidents often happen in more crowded streets or on specific parts of a highway, or that trees tend to grow mainly in specific parts of a forest. In other words, there are sharp boundaries between parts with high and low intensities. We argue, similarly to Barr and Schoenberg (2010) and Ogata (2011), that in order not to blur such boundaries, it is preferable to employ an adaptive intensity estimation scheme, which adapts locally to changes in the spatial distribution of the events. Here we focus on a particular kind of adaptive intensity estimator, the Voronoi estimator, defined as follows. Definition 1 For a point process Xwith intensity function ρ(·), the Voronoi intensity estimator of ρ(u),u∈W⊆S, |W|>0, is given by ρV(u)=ρV(u;X,W)= x∈X∩W 1{u∈Vx} |Vx| = x∈X∩W 1{u∈Vx(X,W)} |Vx(X,W)|,u∈W,(3) where Vxis the Voronoi cell defined in (1). If X∩W=∅ then ρV(u)=0. The Voronoi intensity estimator, which was introduced by Brown (1965) and Ord (1978) in the context of Euclidean spaces, has been considered by Baddeley (2007); Ogata (2011); Barr and Schoenberg (2010); van Lieshout (2012). Ebeling and Wiedenmann (1993) have used it to study local spatial concentration of photons, Duyckaerts et al. (1994) and Duyckaerts and Godefroy (2000) have employed it to estimate neuronal density, and it has been applied in the setting of statistical seismology by Ogata (2011) and Baddeley et al. (2015). In the context of linear networks, Okabe and Sugihara (2012) discussed a Voronoi based density estimator, the network Voronoi cell histogram, for the purpose of non-parametric density estimation on linear networks. They further discussed geometric properties of Voronoi tessellations on linear networks. Barr and Schoenberg (2010) focused on the planar case and particular statistical properties. 3 Resample-smoothing of intensity estimators Barr and Schoenberg (2010) pointed out that when there are abrupt changes in the intensity, kernel-based estimators may yield substantial bias and high variance, and they showed that the Voronoi estimator can alleviate these problems. Unfortunately, Voronoi estimators tend to under-smooth in very dense areas surrounded by nearly empty neighbourhoods. This may be said about adaptive estimators in general; there is a tendency of adapting too much to the particular features of the observed point pattern x, rather than reflecting the features of the intensity function of the underlying point process X. To see how the under-smoothing, i.e. the over accentuating of local features of the Voronoi intensity estimator occurs, note that for a pattern x,ifx∈xis located in a very dense part then its Voronoi cell becomes small and, consequently, ρV(u)=1/|Vx|becomes very large for u∈Vx. A further issue with the Voronoi intensity estimator is that its variance tends to be quite large, thus resulting in quite unreliable estimates. 123
Statistics and Computing One may further ask whether there are other datadependent tessellations {Ci},iCi=W, giving rise to estimators ρ(u)=iβi1{u∈Ci},βi>0, which perform better than the Voronoi intensity estimator. In addition, an advantage of the kernel estimation approach is arguably in that it generates a smoothly varying intensity estimate, at least when using certain kernels, as opposed to the possibly unnatural “jumps” generated by the Voronoi estimator. As a remedy for these issues, one suggestion is to follow Barr and Schoenberg (2010) by considering the so-called centroidal Voronoi intensity estimator. A further idea is to introduce a smoothing procedure for ρV(·), which would reduce the unnaturally extreme peaks while smoothing out the “jumps”. We next propose such a smoothing procedure, which we refer to as resample-smoothing. 3.1 Definition of resample-smoothing Recall the independent thinning operation in Sect. 2.2.We will here focus on the simple case where p(u)≡p∈(0,1], u∈W, which is referred to as p-thinning (Chiu et al. 2013, Section 5.1); we identify the case p=1 with the unthinned process X. From Sect. 2.2 we have that ρ(u)=ρth(u) p,u∈S, where we recall the intensity ρth(·)of the thinned process Xp. Hence, dividing by pis exactly what is needed to compensate for the reduced intensity caused by removing points. We exploit this relationship in the following way. Given a point pattern xand an estimator ρ(·)of ρ(u),u∈W,fixsome p∈(0,1]and generate m≥1 independent random patterns, each obtained by randomly thinning the original data pattern xwith retention probability p. This yields thinned patterns x1 p,...,xm p, for each of which the intensity is estimated. We now let the average of these mestimated intensity functions, divided by p, be reported as the final estimate; note the similarities with the approaches considered by Heikkinen and Arjas (1998); Ferreira et al. (2002); Baddeley (2007). The resample-smoothed Voronoi intensity estimator is formally defined as follows. Definition 2 Consider a point process Xin Swith intensity function ρ(·).Givensomep∈(0,1]and m≥1, the resample-smoothed Voronoi intensity estimator of ρ(u), u∈W⊆S,|W|>0, is given by ρV p,m(u)=ρV p,m(u;X,W)=1 m m i=1ρV i(u) p,(4) where ρV i(u)=ρV(u;Xi p,W)= x∈Xi p 1{u∈Vx(Xi p,W)} |Vx(Xi p,W)| is the Voronoi intensity estimator based on the ith thinning Xi pof X∩W. Note that when p=1, ρV p,m(·)reduces to ρV(·)for any m≥1. Reflecting on the effect of the thinning procedure, for each thinned version we obtain new Voronoi cells and consequently different locations of the jumps in the corresponding intensity estimate ρV i(·). This is what results in the “smoothing” and it is also the remedy for choosing the specific tiling in a possibly wrong/rigid way. Note also that we in fact simply are considering the average of mdifferent estimates of ρ(·). 3.2 Theoretical properties We next look closer at some statistical properties of resamplesmoothed Voronoi intensity estimators. The proofs of all the results presented can be found in the Electronic Supplementary Material (Online Resource 1). We stress that in the case of the restriction X∩Wof a point process Xto a (bounded) region W= S, the Voronoi cells Vx(X,W)are different than when W=S. Hereby, distributional properties of ρV p,m(·)may be different depending on how Wis chosen. We start by considering the asymptotic scenario where the number of thinned patterns, m≥1, in the estimator (4) tends to infinity. Note that by the result below, we have that the limit limm→∞ ρV p,m(u;X,W)a.s. exists for a point process X. Lemma 1 Given fixed p ∈(0,1], for any point pattern x⊂ W⊆S we have that limm→∞ ρV p,m(u;x,W)a.s. exists. 3.2.1 Bias Turning to the first order properties of ρV p,m(·), we note that WρV p,m(u)du=1 mp m i=1 x∈Xi pW1{u∈Vx(Xi p,W)}du |Vx(Xi p,W)| =1 mp m i=1 N(Xi p∩W). (5) Hence, when p=1 we have preservation of mass, i.e. WρV p,m(u)du=N(X∩W). Taking expectations on both sides in (5), we obtain EWρV p,m(u)du=1 m m i=1 pWρ(u)du p=W ρ(u)du, (6) i.e. for any m≥1 and p∈(0,1],WρV p,m(u)duis an unbiased estimator of E[N(X∩W)], and by the law of large numbers, Eq. (5) converges to (6)a.s.asm→∞. 123
Statistics and Computing Noting that E[ρV p,m(u;X,W)]=E[ρV(u;Xp,W)]/p for any p∈(0,1]and m≥1, we see that ρV p,m(u;X,W)is unbiased for the estimation of the intensity of Xif and only if the original Voronoi intensity estimator is unbiased for the estimation of the intensity of an arbitrary thinning Xp. There is unfortunately not much more to be said without explicitly assuming something about the distributional properties of X. When Xis stationary (see Sect. 2), all Voronoi cells have the same distribution and we may speak of the typical Voronoi cell Vo=Vo(X), which satisfies Vo d =θ−xVx(X,S)for any x∈X; here θ−xdenotes the transformation/shift such that xis taken to the origin o∈S. In particular, we have that ρV p,m(u)and ρV p,m(v) have the same distribution for any u,v ∈Sand it can be shown that unbiasedness holds. Theorem 1 For a stationary point process X in W =S with constant intensity ρ>0, the resample-smoothed Voronoi intensity estimator (4)is unbiased for any choice of p ∈(0,1] and m ≥1. As our main interest lies in estimating non-constant intensity functions, stationary models are of limited practical interest. We next turn to inhomogeneous Poisson processes in Euclidean spaces. Theorem 2 Let X be a Poisson process in W =S=Rd, d≥1, with intensity function ρ(u),u∈Rd, which satisfies the Lipschitz condition that for some μu>0,|ρ(v)−ρ(u)|≤ μuεfor v∈B(u,ε) and ε>0sufficiently small; B(u,ε) denotes the Euclidean ball with centre u and radius ε>0. Denoting by Cu(X)the Voronoi cell containing u ∈Rd, assume further that mκ:= supu∈RdE[|Cu(X)|−κ]<∞for some κ≥1+1/d. Then, for any u ∈Rd,p∈(0,1]and m≥1, ρ(u)−EρV p,m(u)≤Cp−1(pρ(u))−1/dlog(pρ(u))2/d for some C >0that depends on the intensity. The right hand side tends to 0as the intensity tends to infinity. Remark 1 The moment condition and the Lipschitz assumption on ρcan be relaxed to weaker versions and still have the left hand side go to 0, but the rate would be different. It has been conjectured that the size of the typical cell of a homogeneous Poisson process follows a (generalised) Gamma distribution (see e.g. Chiu et al. 2013); note in particular Lemma 2below. The moment condition in the statement of the above result, i.e. mκ<∞, would be satisfied if this is indeed the case. Under such a conjectured distribution, Barr and Schoenberg (2010) showed that in the planar case the original Voronoi intensity estimator is ratio-unbiased for a given class of intensity functions. 3.2.2 Variance Regarding the variance of ρV p,m(u), the next result shows that by thinning as much as possible we also obtain a variance of the resample-smoothed Voronoi estimator which is close to 0. We see that for cases where the estimator is unbiased we should, in theory, smooth as much as possible, in combination with choosing mas large as possible. Theorem 3 Consider a point process X restricted to W ⊆S, where ρV(u)=ρV(u;X,W),u∈W , has finite variance. Given p ∈(0,1]and m ≥1, the variance of ρV p,m(u)= ρV p,m(u;X,W)satisfies Var (ρV p,1(u))/m≤Var (ρV p,m(u)) ≤Var (ρV p,1(u)) and Var (ρV p,m(u)) converges as m →∞to the covariance between ρV(u;X1 p,W)/p and ρV(u;X2 p,W)/p, where X1 p and X2 pare two arbitrary p-thinned versions of X. Let m ≥1be fixed. For a bounded W ⊆S it follows that limp→0Var (ρV p,m(u;X,W)) =0. Moreover, considering a sequence Wp⊆S, p ∈(0,1], which increases (in terms of inclusion) as p decreases and satisfies E[N(Xp∩ Wp)]=pWpρ(u)du→0as p →0, we have that limp→0Var (ρV p,m(u;X,Wp)) =0. Turning to the stationary case, from the proof of Theorem 1(Online Resource 1) we have that the p-thinning Xp of a stationary point process Xwith intensity ρ>0isagain stationary, but with intensity pρ.ForXp, the distribution ¯ Pp(·)of the size of the cell that covers uis the same for any u∈Sand it is given by [see Last (2010, Section 8) and Schneider and Weil (2008, Theorem 10.4.1.)] ¯ Pp(A)=pρA tP |Vo(Xp)|(dt), A⊆[0,∞), (7) where P|Vo(Xp)|(·)is the distribution of the typical cell size. Besides giving us the unbiasedness in Theorem 1, i.e. E[ρV p,m(u)]=p−1pρ∞ 0 t−1tP |Vo(Xp)|(dt)=ρ, the relationship (7) further yields E[ρV p,1(u)2]= 1 p2∞ 0 1 t2¯ Pp(dt)=ρ p∞ 0 1 tP|Vo(Xp)|(dt) =ρ p E[1/|Vo(Xp)|], Var (ρV p,1(u)) =ρ p E[1/|Vo(Xp)|] − ρ2. 123
Statistics and Computing Through the proof of Theorem 3(Online Resource 1) we obtain that the variance of ρV p,m(u)is given by ρE[1/|Vo(Xp)|] p−ρ× ×1+(m−1)Corr(ρV(u;X1 p,S), ρV(u;X2 p,S)) m,(8) where Corr denotes correlation. Unfortunately, we cannot get much further in the general setup; the problem lies in that P|Vo|(·)typically is not known. There is, however, one particular case where we can say a bit more and that is for Poisson processes on R. Lemma 2 For a Poisson process on Rwith intensity ρ>0, for any p ∈(0,1]and m ≥1the typical cell size of X p follows an Erlang/Gamma distribution with shape and rate parameters 2and 2pρ, respectively. Hence Var (ρV p,m(u)) ≤ Var (ρV p,1(u)) =ρ2. Empirically, we have consistently observed that for a large enough m, the variance of ρV p,m(u)decreases as pdecreases, for u∈Wlocated a given distance from the boundary of W⊆S. As this is partly supported by Theorem 3,weareled to the following conjecture. Conjecture 1 For an arbitrary point process X in S and a large enough m, the variance of ρV p,m(u)is a decreasing function of p ∈(0,1]. In particular, if ρV p,m(u)is unbiased, this means that MISE is decreasing with p. 3.3 Choosing the smoothing parameters When using the resample-smoothed Voronoi intensity estimator (4) in practice, one needs to specify the smoothing parameters m≥1 and p∈(0,1]prior to finding the intensity estimate. We next discuss how to obtain proper choices for mand p. 3.3.1 Choosing the number of thinnings Lemma 1tells us that for a fixed p∈(0,1]and any point pattern x⊂W⊆S, we have that ρV p,m(u;x,W)exists a.s. as m→∞. The question that remains, however, is for which m≥1 we are sufficiently close to the limit. In our numerical experiments in Sect. 4we illustrate that the estimated bias and variance of ρV p,m(u)do not change significantly for m≥200. Nevertheless, we propose to fix m=400 and then proceed by finding a proper choice for p∈(0,1]. 3.3.2 Choosing retention probability The selection of p∈(0,1]is clearly the more delicate matter here; essentially we are faced with problems similar to those of choosing bandwidths in kernel estimation. Through our numerical experiments (see Sect. 4)wehave found that the choice p≤0.2 seems to generate the best intensity estimates in the sense that the variance-bias-tradeoff is taken into account by keeping both the bias and variance relatively small. From Sect. 4, Theorem 3and Conjecture 1it seems that the smaller the p, the better the estimate. We refer to the choice m=400 and p≤0.2 as our rule-of-thumb. It should be pointed out that very small values for pmay require larger values for m. We also propose a cross-validation approach to select pwhen a data-driven approach is preferred to the rule-of- thumb. Recalling a comment in Sect. 2.2 about independent thinnings yielding approximate Poissonian distributional properties of the resulting processes, a natural approach to choosing pwhen the number of thinned patterns, m,isfixedis to consider Poisson process likelihood cross-validation. This method has a long history in the literature of point processes and has e.g. been frequently used for bandwidth selection in kernel-based estimation (Silverman 1986; Loader 1999). More specifically, given a point pattern x={x1,...,xn}⊂ W⊆Sand some fixed m≥1, we choose the corresponding resampling/retention probability as a maximiser of the cross-validation criterion CV(p)=CV m(p)= n i=1 log ρV p,m(xi;x\{xi},W) −WρV p,m(u;x,W)du,p∈(0,1]. (9) Note that ρV p,m(·; x\{xi},W)is the leave-one-out version of ρV p,m(·; x,W), i.e. the resample-smoothed Voronoi intensity estimator based on the reduced sample x\{xi}. Computation of CV(p),p∈(0,1], can be quite costly. In practice we may ignore the integral term in (9) since it is approximately equal to the number of points in the pattern. Moreover, in practice we calculate CV(pj),j=1,...,k,0<pj−1<pj≤1, sequentially by first generating Xi pkand then iteratively generating Xi pj−1=(Xi pj)pj−1/pj,i=1...,m,j=2,...,k. Note that for small mthe graph of CV(p)may not be smooth and might contain local extrema. Finally, if the value obtained for pthrough the crossvalidation would deviate too much from the rule-of-thumb, we recommend following the rule-of-thumb; see the log- Gaussian Cox process example in Sect. 4for a situation where this occurs. 123
Statistics and Computing 3.4 Large scale data and sparsity In general, when the number of events, n, of an observed point pattern x={x1,...,xn}is very large, it is often natural to consider an adaptive intensity estimator as the scales of intensity likely vary a lot. It may not be computationally feasible to compute ρV p,m(·), p∈(0,1], for an arbitrary m≥1 (or any other intensity estimator for that matter). An alternative way of exploiting the proposed setup is to consider ρV p0,m(·)for some p0≤0.2 and m=1. This means that we would introduce sparsity by only having to generate Voronoi cells for less than 30% of the original number of points. The results in Sect. 4indicate how good an estimate one would typically obtain. Moreover, if the computation of ρV p0,1(·)is reasonably quick, one could generate a further estimate ρV p0,1(·)and average over these to obtain ρV p0,2(·). One could then continue like this in a stepwise fashion, given a total computation timeframe. This approach could also be useful in machine learning settings (cf. Holmström and Hamalainen 1993); note that ρV p,m(·)/n is a density estimate for a sample x={x1,...,xn}⊂W. 4 Numerical experiments As previously pointed out, we assess our intensity estimation approach numerically, which we choose to do in the Euclidean setting. In our simulation study, we consider four different types of models with varying degrees of variation in intensity and spatial interaction; clustering, spatial randomness and regularity. For each model we use 500 realisations on W=[0,1]2 to generate numerical estimates of relevant quantities such as bias, variance, Integrated Variance (IV), Integrated Square Bias (ISB) and Integrated Absolute Bias (IAB) for ρV p,m(u), u∈W; recall that Mean Integrated Square Error (MISE) is obtained as the sum of IV and ISB. The resample-smoothed Voronoi estimators in the twodimensional plane and on linear networks were implemented in the Rlanguage using the package spatstat (Baddeley et al. 2015) and will be released publicly in a future version of spatstat. Our simulation experiments and figures were generated using this implementation. For each model considered, in the Electronic Supplementary Material (Online Resource 2), we provide plots of the estimated bias and variance for m=400 and a range of values of p∈(0,1], together with the estimated biases and variances obtained through kernel estimation. There, we additionally provide box plots related to point-wise estimation errors. The overall conclusion is that we clearly reduce the estimation errors by resample-smoothing the Voronoi intensity estimator. Moreover, the cross-validation approach to selecting pon average yields slightly poorer intensity estimates than the rule-of-thumb, in particular if the model is clustered. Looking at the box plots in the Electronic Supplementary Material (Online Resource 2), we argue that when e.g. p= 0.01 our proposed approach outperforms the two competing kernel estimation approaches, when we are considering clustering or spatial randomness. Under regularity the picture is a bit more varied—the proposed method performs better than the kernel based approaches in terms of extreme over and under estimation. Note that in some situations even a larger pyields similar results. 4.1 Homogeneous Poisson process Here we consider a homogeneous Poisson process Xin W= [0,1]2with intensity ρ=60. Table 1provides estimates of IAB, ISB and IV for ρV p,m(u),u∈W,m=200,300,400 and a range of values for p; recall that we use 500 realisations of X. Indeed, the bias seems fairly stable over the range of values for pand the variance is clearly decreasing with p; choosing paccording to the rule-of-thumb keeps MISE small. For illustrational purposes, in Fig. 1we provide estimation error plots for one of the realisations, for p=0.01 and p=1 with m=400. One can clearly see the gain of the resamplesmoothing. In addition, in the Electronic Supplementary Material (Online Resource 2) we provide plots of the estimated bias and variance for p=0.01,0.1,0.3,0.5,0.7,1 and m=400, together with estimation-error-based box plots, and they essentially confirm what has been observed in Table 1. Turning to the cross-validation approach to selecting p, with m=400, based on 500 realisations of the model we obtain IAB =3.1, ISB =13.3 and IV =177 which are in the range of what one obtains when pis less than 0.3. In Table 2we further provide the 500 selected values for pand we see that the majority of them fall within the range of our rule-of-thumb. Comparing with kernel estimation under uniform edge correction, using Poisson likelihood cross-validation (Loader 1999, Sec. 5.3, pp. 87–95) to select the bandwidth, we obtain IAB =0.24, ISB =0.11 and IV =126.05. By instead employing the bandwidth selection method of Cronie and van Lieshout (2018), we obtain IAB =0.87, ISB =1.12 and IV =688.25. Hence, when pis small enough the proposed approach outperforms both kernel approaches in terms of MISE. 4.2 Inhomogeneous Poisson process More interestingly, we next consider 500 realisations of an inhomogeneous Poisson process Xin W=[0,1]2with intensity ρ(x,y)=|10 +90 sin(16x)|; the expected total point count is 58.6. Table 3provides estimates of IAB, ISB 123
Statistics and Computing Table 1 Estimates of IAB, ISB and IV for ρV p,m(u), u∈W=[0,1]2, m=200,300,400 and a sequence of p, based on 500 realisations of a homogeneous Poisson process in W=[0,1]2 with intensity ρ=60 IAB ISB IV m p200 300 400 200 300 400 200 300 400 .01 2.21 2.20 2.21 6.86 6.85 6.91 97.83 85.04 77.99 .03 4.71 4.69 4.68 30.63 30.42 30.35 92.59 87.18 85.34 .05 5.63 5.64 5.64 43.09 43.143.17 108.05 105.11 100.95 .1 5.75.75.743.543.243.0 158.4 154.8 152.5 .2 4.64.64.628.428.528.4 264.1 260.3 257.9 .3 3.93.93.922.522.222.2 375.3 370.6 368.8 .4 3.535 3.519.719.619.6 490.6 488.8 487.8 .5 3.23.23.218.118.118.1 672.0 623.9 622.9 .6 3.03.03.017.117.117.0 781.9 779.4 779.0 .7 2.92.92.916.516.516.5 960.0 958.7 958.8 .8 2.92.92.916.016.016.0 1172.2 1171.8 1171.1 .9 2.92.92.915.815.815.8 1422.2 1419.6 1418.9 12.92.92.915.815.815.8 1733.2 1733.2 1733.2 Fig. 1 Estimation error plots for a realisation of a homogeneous Poisson process Xin W=[0,1]2with intensity ρ=60. Left: p=0.01 and m=400. Right: p=1. The underlying point pattern has been superimposed in all plots Table 2 Cross-validation selections of pfor m=400 in a geometric sequence, based on 500 realisations of a homogeneous Poisson process in W=[0,1]2with intensity ρ=60 p0.01 0.02 0.03 0.07 0.12 0.23 0.43 0.80 Frequency 214 113 60 30 23 30 24 6 and IV for ρV p,m(u),u∈W,m=200,300,400 and a range of values for p. Moreover, in Fig. 2we provide estimation error plots for one of the realisations, for p=0.01 and p=1 with m=400, and in the Electronic Supplementary Material (Online Resource 2), we provide plots of the estimated bias and variance for p=0.01,0.1,0.3,0.5,0.7,1 and m=400, together with estimation-error-based box plots, and they likewise indicate the advantage of resamplesmoothing. Turning to the cross-validation approach to selecting p, based on m=400 and 500 realisations of the model, we obtain IAB =25.3, ISB =867.4 and IV =174.8, with the majority of the selected p’s coinciding with the rule-of- thumb (see Table 4). Hence, the conclusions here are essentially the same as for the homogeneous Poisson process in Sect. 4.1, with the main difference arguably being that inhomogeneity enforces slightly harder thinning in the cross-validation. Comparing with kernel estimation under uniform edge correction, using Poisson likelihood cross-validation (Loader 1999, Sec. 5.3, pp. 87–95) to select the bandwidth, we obtain IAB =25.16, ISB =853.24 and IV =158.00. By instead employing the bandwidth selection method of Cronie and van Lieshout (2018), we obtain IAB =24.43, ISB =797.02 and IV =636.63. Thus, for p<0.1, the proposed approach outperforms both kernel methods in terms of MISE. In particular, for both the homogeneous and the inhomogeneous Poisson process examples, when p≤0.4 our proposed method shows a better performance in terms of MISE than the kernel approach with the bandwidth selection method of Cronie and van Lieshout (2018). 123
Statistics and Computing Borruso, G.: Network density estimation: a GIS approach for analysing point patterns in a network space. Trans. GIS 12(3), 377–402 (2008) Brown, G.S.: Point density in stems per acre. Forest Research Institute, New Zealand Forest Service (1965) Chiu, S.N., Stoyan, D., Kendall, W.S., Mecke, J.: Stochastic Geometry and Its Applications. Wiley, Hoboken (2013) Cronie, O., Särkkä, A.: Some edge correction methods for marked spatio-temporal point process models. Comput. Stat. Data Anal. 55(7), 2209–2220 (2011) Cronie, O., van Lieshout, M.N.M.: A non-model-based approach to bandwidth selection for kernel estimators of spatial intensity functions. Biometrika 105(2), 455–462 (2018) Daley, D.J., Vere-Jones, D.: An Introduction to the Theory of Point Processes: Volume II: General Theory and Structure, 2nd edn. Springer, New York (2008) Davies, T.M., Baddeley, A.: Fast computation of spatially adaptive kernel estimates. Stat. Comput. 28(4), 937–956 (2018) Davies, T.M., Hazelton, M.L.: Adaptive kernel estimation of spatial relative risk. Stat. Med. 29(23), 2423–2437 (2010) Davies, T.M., Jones, K., Hazelton, M.L.: Symmetric adaptive smoothing regimens for estimation of the spatial relative risk function. Comput. Stat. Data Anal. 101, 12–28 (2016) Davies, T.M., Marshall, J.C., Hazelton, M.L.: Tutorial on kernel estimation of continuous spatial and spatiotemporal relative risk. Stat. Med. 37(7), 1191–1221 (2018) Diggle, P.: A kernel method for smoothing point process data. Appl. Stat. 34(2), 138–147 (1985) Diggle, P.: Statistical Analysis of Spatial and Spatio-Temporal Point Patterns, 3rd edn. CRC Press, Boca Raton (2014) Duyckaerts, C., Godefroy, G.: Voronoi tessellation to study the numerical density and the spatial distribution of neurones. J. Chem. Neuroanat. 20(1), 83–92 (2000) Duyckaerts, C., Godefroy, G., Hauw, J.J.: Evaluation of neuronal numerical density by Dirichlet tessellation. J. Neurosci. Methods 51(1), 47–69 (1994) Ebeling, H., Wiedenmann, G.: Detecting structure in two dimensions combining Voronoi tessellation and percolation. Phys. Rev. E 47(1), 704–710 (1993) Ferreira, J., Denison, D., Holmes, C.: Partition modelling. In: Lawson, A., Denison, D. (eds.) Spatial Cluster Modelling, chap 7, pp. 125– 146. CRC Press, Boca Raton (2002) Heikkinen, J., Arjas, E.: Non-parametric Bayesian estimation of a spatial Poisson intensity. Scand. J. Stat. 25(3), 435–450 (1998) Holmström, L., Hamalainen, A.: The self-organizing reduced kernel density estimator. In: IEEE International Conference on Neural Networks, pp. 417–421 (1993) Kallenberg, O.: Random Measures, Theory and Applications. Springer, Berlin (2017) Last, G.: Stationary random measures on homogeneous spaces. J. Theor. Probab. 23(2), 478–497 (2010) Lawrence, T., Baddeley, A., Milne, R.K., Nair, G.: Point pattern analysis on a region of a sphere. Stat 5(1), 144–157 (2016) Levine, N.: Houston, Texas, metropolitan traffic safety planning program. Transp. Res. Record J. Transp. Res. Board 1969, 92–100 (2006) Levine, N.: A motor vehicle safety planning support system: the Houston experience. In: Geertman, S., Stillwell, J. (eds.) Planning Support Systems Best Practice and New Methods, pp. 93–111. Springer, Dordrecht (2009) Loader, C.: Local Regression and Likelihood. Springer, New York (1999) McSwiggan, G., Baddeley, A., Nair, G.: Kernel density estimation on a linear network. Scand. J. Stat. 44(2), 324–345 (2017) Møller, J., Rubak, E.: Functional summary statistics for point processes on the sphere with an application to determinantal point processes. Spat. Stat. 18, 4–23 (2016) Møller, J., Schoenberg, F.: Thinning spatial point processes into Poisson processes. Adv. Appl. Probab. 42(2), 347–358 (2010) Moradi, M.M., Rodríguez-Cortés, F.J., Mateu, J.: On the intensity estimator of spatial point patterns on linear networks. J. Comput. Graph. Stat. 27(2), 302–311 (2018) Ogata, Y.: Significant improvements of the space-time etas model for forecasting of accurate baseline seismicity. Earth Planets Space 63(3), 217–229 (2011) Okabe, A., Sugihara, K.: Spatial Analysis Along Networks: Statistical and Computational Methods. Wiley, Hoboken (2012) Okabe, A., Boots, B., Sugihara, K., Chiu, S.: Spatial Tessellations: Concepts and Applications of Voronoi Diagrams, 2nd edn. Wiley, Hoboken (2000) Okabe, A., Satoh, T., Sugihara, K.: A kernel density estimation method for networks, its computational method and a gis-based tool. Int. J. Geogr. Inf. Sci. 23(1), 7–32 (2009) Ord, J.: How many trees in a forest? Math. Sci. 3, 23–33 (1978) Rakshit, S., Davies, T.M., Moradi, M.M., McSwiggan, G., Nair, G., Mateu, J., Baddeley, A.: Fast kernel smoothing of point patterns on a large network using 2D convolution. Submitted for publication (2018) Rakshit, S., Nair, G., Baddeley, A.: Second-order analysis of point patterns on a network using any distance metric. Spat. Stat. 22, 129–154 (2017) Schaap, W.E.: DTFE: the Delaunay tessellation field estimator. PhD thesis, University of Groningen (2007) Schneider, R., Weil, W.: Stochastic and Integral Geometry. Probability and Its Applications. Springer, Dordrecht (2008) Scott, D.: Multivariate Density Estimation. Theory, Practice and Visualization. Wiley, New York (1992) Silverman, B.W.: Density Estimation for Statistics and Data Analysis. CRC Press, Boca Raton (1986) van Lieshout, M.N.M.: Markov Point Processes and Their Applications. Imperial College Press, London (2000) van Lieshout, M.N.M.: On estimation of the intensity function of a point process. Methodol. Comput. Appl. Probab. 14, 567–578 (2012) Wand, M., Jones, M.: Kernel Smoothing. CRC Press, Boca Raton (1995) Xie, Z., Yan, J.: Kernel density estimation of traffic accidents in a network space. Comput. Environ. Urb. Syst. 32(5), 396–406 (2008) Publisher’s Note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 123