Docsity

Testing Spatial Randomness - Lecture Notes | ESE 502, Study notes of Electrical and Electronics Engineering

Toggle sidebar
bg1
NOTEBOOK FOR SPATIAL DATA ANALYSIS Part I. Spatial Point Pattern Analysis
______________________________________________________________________________________
________________________________________________________________________
ESE 502 I.3-1 Tony E. Smith
3. Testing Spatial Randomness
There are at least three approaches to testing the CSR Hypothesis: the quadrat method,
the nearest-neighbor method, and the method of K-functions. We shall consider each of
these in turn.
3.1 Quadrat Method
This simple method is essentially a direct test of the CSR Hypothesis as stated in
expression 2.1(6).1 Given a realized point pattern from a point process in a rectangular
region,
R
, one begins by partitioning
R
it into congruent rectangular subcells (quadrats)
1,.., m
CC as in Figure 1 below (where 16m
=
). Then, regardless of whether the given
pattern represents trees in a forest or beetles in a field, the CSR Hypothesis asserts that
the cell-count distribution for each i
C must be the same, as given by 2.1(6). But rather
than use this Binomial distribution, it is typically assumed that
R
is large enough to use
the Poisson approximation in 2.1(9). In the present case, if there are n points in
R
, and if
we let 1
()aaC=, and estimate expected point density
λ
by
(1) ˆ
()
n
aR
λ=
then this common Poisson cell-count distribution has the form
(2) ˆ
ˆ
()
ˆ
Pr[ | ] , 0,1, 2,. ..
!
k
a
i
a
Nk e k
k
−λ
λ
=λ= =
Moreover, since the CSR Hypothesis also implies that each of the cell counts,
( ), 1,..,
ii
NNCi k==, is independent, it follows that
(
)
: 1,..,
i
Ni k= must be a
independent random samples from this Poisson distribution. Hence the simplest test of
1 This refers to expression (6) in section 2.1 of Part I. All other references will follow this convention.
•
•
•
•
•
•
•
•
•
•
•
•
•
Fig. 1. Quadrat Partition of R
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download Testing Spatial Randomness - Lecture Notes | ESE 502 and more Study notes Electrical and Electronics Engineering in PDF only on Docsity!

________________________________________________________________________

3. Testing Spatial Randomness

There are at least three approaches to testing the CSR Hypothesis : the quadrat method , the nearest-neighbor method , and the method of K-functions. We shall consider each of these in turn.

3.1 Quadrat Method

This simple method is essentially a direct test of the CSR Hypothesis as stated in expression 2.1(6).^1 Given a realized point pattern from a point process in a rectangular region, R , one begins by partitioning R it into congruent rectangular subcells (quadrats) C 1 (^) ,.., Cm as in Figure 1 below (where m = 16 ). Then, regardless of whether the given

pattern represents trees in a forest or beetles in a field, the CSR Hypothesis asserts that the cell-count distribution for each Ci must be the same, as given by 2.1(6). But rather

than use this Binomial distribution, it is typically assumed that R is large enough to use the Poisson approximation in 2.1(9). In the present case, if there are n points in R , and if we let a = a C ( 1 ), and estimate expected point density λ by

n a R

λ =

then this common Poisson cell-count distribution has the form

ˆ (^ ˆ ) ˆ

Pr[ | ] , 0,1, 2,... !

k a i

a N k e k k

= λ = λ^ −λ =

Moreover, since the CSR Hypothesis also implies that each of the cell counts,

N i = N C ( i ), i = 1,.., k , is independent , it follows that ( Ni : i = 1,.., k ) must be a

independent random samples from this Poisson distribution. Hence the simplest test of

(^1) This refers to expression (6) in section 2.1 of Part I. All other references will follow this convention.

Fig. 1. Quadrat Partition of R

________________________________________________________________________

this hypothesis is to use the Pearson χ 2 goodness-of-fit test. Here the expected number of

points in each cell is given by the mean of the Poisson above, which (recalling that a = a R ( ) / m by construction) is

(3) ( | ˆ^ ) ˆ

n n E N a a a R m

λ = ⋅ λ = ⋅ =

Hence if the observed value of N (^) i is denoted by ni , then the chi-square statistic

2 2 1

n (^) i i

n n m = n m

χ = (^) ∑

is known to be asymptotically chi-square distributed with m − 1 degrees of freedom, under the CSR Hypothesis. Thus one can test this hypothesis directly in these terms. Note

that n m / is simply the sample mean , i.e., / (1/ ) (^1)

m n m = m (^) ∑ (^) i = ni = n , and hence that this

statistic can also be written as

2 2 2 1

n (^) i i

n n s m = n n

χ = (^) ∑ = −

where 2 1 1 1 ( )^2 m s = (^) m − ∑ (^) i = ni − n is the sample variance. In this form, observe that since the

variance if the Poisson distribution is exactly equal to its mean, i.e., var( N ) / E N ( ) = 1 ,

and since s^2^ / n is the sample estimate of this ratio, if is often convenient to use this index

of dispersion , s^2 / n , as the test statistic. In particular, if s^2^ / n is significantly less than one then it can be inferred that there is too little variation among quadrat counts, suggesting possible “uniformity” rather than randomness. Similarly, if s^2 / n is significantly greater than one then there is too much variation among counts, suggesting possible “clustering” rather than randomness.

But this testing procedure is very restrictive in that it requires a rectangular region.^2 More importantly, it depends critically on the size of the partition chosen. As with all applications of Pearson’s goodness-of-fit test, if there is no natural choice of partition size, then the results can be very sensitive to the partition chosen.

3.2 Nearest-Neighbor Methods

In view of these shortcomings, the quadrat method above has for the most part been replaced by other methods. The simplest of these is based on the observation that if one simply looks at distances between points and their nearest neighbors in R , then this provides a natural test statistic that requires no artificial partitioning scheme. More

(^2) More general “random quadrat” methods are discussed in Cressie (1995,section 8.2.3).

________________________________________________________________________

3.2.1 Nearest-Neighbor Distribution under CSR

To make these ideas precise, we must determine the probability distribution of nn- distance under CSR, and compare the observed nn-distance with this distribution. To begin, suppose that the implicit reference region R is large, so that for any given point density, λ , we may assume that cell-counts are Poisson distributed under CSR. Now suppose that s is any randomly selected point in a pattern realization of this CSR process, and let the random variable, D , denote the nn-distance from s to the rest of the pattern. To determine the distribution of D , we next consider a circular region, Cd , of

radius d around s , as shown in Figure 4 below. Then by definition, the probability that D is at least equal to d is precisely the probability that there are no other points in Cd. Hence if

we now let Cd ( ) s = Cd − { } s , then this proba-

bility is given by

(8) Pr( D > d ) = Pr{ N C [ (^) d ( )] s =0}

But since the right hand side is simply a cell-count probability, it follows from expression 2.3(9) that,

[ ( )]^2 Pr( D > d ) = e −λ a C^ d^ s^ = e −λπ d

where the last equality uses the fact that a C [ (^) d ( )] s = a C ( (^) d )= λπ d 2. Hence the cumulative

distribution function ( cdf ), FD ( d ), for D is given by,

2 FD ( d ) = Pr( D ≤ d ) = 1 − Pr( D > d ) = 1 − e −λπ d

In Section 2 of the Appendix to Part I it is shown that this is an instance of the Rayleigh distribution , and in Section 3 of the Appendix that for a random sample of m nearest- neighbor distances ( D 1 ,.., Dm ) from this distribution, the scaled sum (known as Skellam’s

statistic ),

m S m = λπ (^) ∑ i = Di

is chi-square distributed with 2 m degrees of freedom (as on p.99 in [BG]). Hence this statistic provides a test of the CSR Hypothesis based on nearest neighbors.

  • (^) s

d Cd

R

Fig.4. Cell of radius d

________________________________________________________________________

3.2.2 Clark-Evans Test

While Skellam’s statistic can be used to construct tests, it follows from the Central Limit Theorem that independent sums of identically distributed random variables are approximately normally distributed. Hence the most common test of the CSR Hypothesis based on nearest neighbors involves a normal approximation to the sample mean of D , as defined by

m Dm = (^) m ∑ i = Di

To construct this normal approximation, it is shown in Section 2 of the Appendix to Part I that the mean and variance of the distribution in (10) are given respectively by

E D =

λ

var( ) 4

D

− π

λπ

To gain some feeling for these quantities observe that under the CSR Hypothesis, as the point density, λ , increases, both the expected value and variance of nn-distances decrease. This makes intuitive sense when one considers denser scatterings of random points in R.

Next we observe from the properties of independently and identically distributed ( iid )

random samples that for the sample mean, Dm , in (12) we must have

( ) ( ) [ ( )] ( )

m E Dm = (^) m (^) i = E Di = (^) m mE D = E D = λ ∑

and similarly must have

(16) (^) ( ) 2

2 1 1 var( ) 1 var( ) 1 [ var( )] 4 (4 )

m Dm (^) m (^) i Di (^) m m D = m

− π = = = λπ ∑

But from the Central Limit Theorem it then follows that for large sample sizes,^6 D m must

be approximately normally distributed under the CSR Hypothesis with mean and variance given by (15) and (16), i.e., that:

(^6) Here “large” is usually taken to mean m ≥ 30 , as long as the distribution in (10) is not “too skewed”.

Later we shall investigate this by using simulations.

________________________________________________________________________

Given such a subsample, ( d 1 ,.., dm ), one can construct the sample-mean value,

m

dm = m ∑ i = di

and use this to construct tests of CSR.

Two-Tailed Test of CSR

The standard test of CSR in most software is a two-tailed test in which both the

possibility of “significantly small” values of dm ( clustering ) and “significantly large”

values of dm ( uniformity ) are considered. Hence it is appropriate to review the details of

such a testing procedure. First recall the notion of upper-tail points , z α , for the standard

normal distribution as defined by Pr( Z ≥ z α)= α for Z ∼ N (0,1). In these terms, it

follows that for the standardized mean in (19),

(22) Pr ( Zm ≥ z α / 2 ) = Pr ([ Zm ≤ − z α / 2 ) or ( z α/ 2≤ Zm )]= α

under the CSR Hypothesis (as in Figure 6 below). Hence if one estimates expected point density as in (1), and constructs corresponding estimates of the mean (15) and standard deviation (18) under CSR by

= , σˆ^ m = (4 − π ) ( m 4 πλˆ)

then the CSR Hypothesis can be tested by constructing the following standardized sample mean:

m m

d z

If the CSR Hypothesis is true, then by (19) and (20), zm should be a sample from

N (0,1).^8 Hence a test of CSR at the α -level of significance^9 is given by the rule:

Two-Tailed CSR Test : Reject the CSR Hypothesis if and only if | zm |> z α/ 2

(^8) Formally this assumes that λˆ is a sufficiently accurate estimate of λ to allow any probabilistic variation

in λˆ to be ignored. Since λˆ is based on all n pattern points, this assumption is usually reasonable. (^9) By definition, the level of significance of a test is the probability, α , that the null hypothesis (in this case

the CSR Hypothesis) is rejected when it is actually true. This is discussed further below.

________________________________________________________________________

The significance level, α , is also called the size of the test. Example results of this

testing procedure for a test of size α are illustrated in Figure 6 below. Here the two

samples, zm , in the tails of the distribution are seen to yield strong evidence against the

CSR Hypothesis, while the sample in between does not.

Fig.6. Two-Tailed Test of CSR

One-Tailed Tests of Clustering and Uniformity

As already noted, values of d (^) m (and hence zm ) that are too low to be plausible under

CSR are indicative of patterns more clustered than random. Similarly, values too large are indicative of patterns more uniform than random. In many cases, one of these alternatives is more relevant than the other. In the Redwood Seedling example of Figure 1.1[1], 10 it is clear that trees appear to be clustered. Hence the only question is whether or not this apparent clustering could simply have happened by chance, i.e., whether or not this pattern is significantly more clustered than random. Similarly, one can ask whether the pattern of Cell Centers in Figure 1.1[2] is significantly more uniform than random. Such questions lead naturally to one-tailed versions of the test above. First, a test of clustering versus the CSR Hypothesis at the α -level of significance is given by the rule:

Clustering versus CSR Test : Conclude significant clustering if and only if z (^) m < − z α

Example results of this testing procedure for a test of size α are illustrated in Figure 7

below. Here the standardized sample mean zm to the left is sufficiently low to conclude

the presence of clustering (at the α -level of significance), and the sample toward the middle is not.

(^10) This refers to Figure 1 in Section 1.1 above. All references to figures in previous sections will be denoted

similarly.

α / 2 α/ 2

z m

Reject CSR

z m

Reject CSR

z m

Do Not Reject

− z α/ 2 z α / 2

________________________________________________________________________

So in the case of a two-tailed test, for example, the non-randomness of a given pattern is considered “strongly” (“weakly”) significant if the CSR Hypothesis can be rejected at the

α = .01( α = .10) level of significance.^11 The same is true of one-tailed tests (where the

cutoff value, z α / 2, is now replaced by z α ). In all cases, the value α = .05is regarded as a

standard (default) value indicating “significance”.

However, since these distinctions are admittedly arbitrary, another approach is often adopted in evaluating test results. The main idea is quite intuitive. In the one-tailed test of clustering versus CSR above, suppose that for the observed standardized mean value, zm ,

one simply asks how likely it would be to obtain a value this low if the CSR Hypothesis were true? This question is easily answered by simply calculating the probability of a sample value as low as zm for the standard normal distribution N (0,1). If the cumulative

distribution function for the normal distribution is denoted by

(25) Φ ( ) z = Pr( Z ≤ z )

then this probability, called the P-value of the test, is given by

(26) Pr( Z ≤ zm ) = Φ( zm )

as shown graphically below:

Fig.9. P-value for Clustering Test

Notice that unlike the significance level, α , above, the P-value for a test depends on the

realized sample value, zm , and hence is itself a random variable that changes from

sample to sample. However, it can be related to α by observing that if P Z ( ≤ zm )≤ α,

then for a test of size α , one would conclude that there is significant clustering. More

generally the P-value, P Z ( ≤ zm ) can be defined as the largest level of significance

(smallest value of α ) at which CSR would be rejected in favor of clustering based on the

given sample value, zm.

Similarly, one can define the P-value for a test of uniformity the same way, except that now for a given observed standardized mean value, zm , one asks how likely it would be to

(^11) Note that lower values of α denote higher levels of significance.

z m

Φ ( zm )

________________________________________________________________________

obtain a value this high if the CSR Hypothesis were true. Hence the P-value in this case is given simply by

(27) Pr( Z ≥ zm ) = Pr( Z > zm ) = 1 − Pr( Z ≤ zm ) = 1 − Φ( zm )

where the first equality follows from the fact that Pr( Z = zm ) = 0 for continuous

distributions.^12 This P-value is illustrated graphically below:

Fig.10. P-Value for Uniformity Test

Finally, the corresponding P-value for the general two-tailed test is given as the answer to the following question: How likely would it be to obtain a value as far from zero as zm if

the CSR Hypothesis were true? More formally this P-value is given by

(28) P (| Z | ≥ zm ) = 2 ⋅ Φ ( −| zm |)

as shown below. Here the absolute value is used to ensure that − | zm | is negative

regardless of the sign of zm. Also the factor “2” reflects the fact that values in both tails

are further from zero than zm.

Fig.11. P-Value for Two-Tailed Test

3.3 Redwood Seedling Example

We now illustrate the Clark-Evans testing procedure in terms of the Redwood Seedling example in Figure 1.1[1]. This image is repeated in Figure 12a below, where it is now compared with a randomly generated point pattern of the same size in Figure 12b. Here it

(^12) By the symmetry of the normal distribution, this P-value is also given by ( ) [ 1 ( )] Φ− zm = − Φ zm.

1 − Φ( zm )

z m

−| zm |

Φ − ( | zm |) Φ ( −| zm |)

________________________________________________________________________

For the redwood seedling pattern, the mean nn-distance, d (^) n , turns out to be

(32) dn = 9.037meters

At this point, notice already that this average distance is much smaller than the theoretical value calculated in (30) under the hypothesis of CSR. So this already suggests that for the given density of trees in this area, individual trees are much too close to their nearest neighbors to be random. To verify this statistically, let us compute the standardized mean

n n n

d z

Now recalling from Table 2 above that there is “strongly significant” clustering if zn ≤ − z .01 = −2.33 , one can see from (33) that clustering in the present case is even more

significant. In fact the P-value in this case is given by

(34) P-value = P Z ( ≤ zn ) = Φ ( zn ) = Φ( 4.855)− =.

(Methods for obtaining Φ -values are discussed later). So the chance of obtaining a mean

nearest-neighbor distance this low under the CSR Hypothesis is only about 6 in a million. This is very strong evidence in favor of clustering versus CSR.

However, one major difficulty with this conclusion is that we have used the entire point pattern ( m = n ), and have thus ignored the obvious dependencies between nn-distances

discussed above. Cressie (1993, p.609-10) calls this “intensive” sampling, and shows with simulation analysis that this procedure tends to overestimate the significance of clustering (or uniformity). The basic reason for this is that positive correlation among nn- distances results in a larger variance of the test statistic, Zn , than would be expected

under independence (for a proof of this see Section 4 of the Appendix to Part I, and see also p.99 in [BG]). This will tend to inflate the absolute value of the standardized mean, thus exaggerating the significance of clustering (or uniformity). With this in mind, we now consider two procedures for taking random subsamples of pattern points that tend to minimize this dependence problem. These two approaches utilize JMPIN and MATLAB, respectively, and thus provide convenient introductions to using these two software packages.

3.3.1 Analysis of Redwood Seedlings using JMPIN

One should begin here by reading the notes on opening JMPIN in section 2.1 of Part IV in this NOTEBOOK. 13 In the class subdirectory jmpin now open the file,

(^13) This refers to section 2.1 in the Software portion (Part IV) of this NOTEBOOK. All other references to

software procedures will be done similarly.

________________________________________________________________________

Redwood_data.jmp in JMPIN. (The columns nn-dist and area contain data exported from MATLAB and ARCMAP, respectively, and are discussed later). The column Rand_Relabel is a random reordering of labels with associated nn-distance values in the column, Sample. [These can be constructed using the procedure outlined in section 2.2(2) of Part IV in this NOTEBOOK.]

Now open a second file, labeled CE_Tests.jmp , which is a spreadsheet constructed for this class that automates Clark-Evans tests. Here we shall use a random 50% subsample of points from the Redwood Seedlings data set to carry out a test of clustering.^14 To do

so, click Rows → Add Rows and add 31 rows ( = 62 / 2). Next, copy-and-paste the first

31 rows of Redwood_data.jmp into these positions.

In Redwood_data.jmp :

(i) Select rows 1 to 31 (click Row 1 , hold down shift, and click Row 31 ) (ii) Select column heading Sample (this entire column is now selected) (iii) Click Edit → Copy

Now in CE_Tests.jmp :

(i) Select column heading nn-dist (ii) Click Edit → Paste

Finally, to activate this spread sheet you must fill in the two parameters ( area , n ). Start with area as follows:

(i) Right click on the column heading area. (ii) Right click on the small red box (that may say “no formula”) (iii) Type 44108 , hit return and click Apply and OK. (The entire column should now contain the value “44108” in each row.)

The procedure for filling in the value n ( = 62) is the same. Once these values are

registered, the spread sheet does all remaining calculations. (Open the formula windows for lam , mu , sig , s-mean , and Z as above, and examine the formulas used.) The results are shown below (where only the first row is displayed).

(^14) In [BG] (p.99) it is reported that a common a rule-of-thumb to ensure approximate independence is to

take a random subsample of no more than 10% (i.e., m ≤ n /10). But even for large sample sizes, n , this rule discards most of the information in the data. So 50% subsamples are much more common. An alternative approach will be developed in the MATLAB application of Section 3.2.5 below.

lam mu sig s-mean Z P-Val CSR P-Val Clust P-Val Unif 0.0014 13.3362 1.2521 8.2826 -4.0363 0.0000546 0.0000273 0.

________________________________________________________________________

I have written a program, cluster.m ,^16 in MATLAB to carry out Clark_Evans tests. You

can display this program by clicking Edit → Open and selecting the file cluster.m.^17

The first few lines of this program are displayed below:

function D = cluster(pts,a,m,test)

% CLUSTER.M performs the Clark-Evans tests for Clustering % % NOTE: These tests use a random subsample (size = m) of the % full sample of n nearest-neighbor distances, and % ignore edge effects.

% Written by: TONY E. SMITH, 12/28/

% INPUTS: % (i) pts = file of point locations (xi,yi), i=1..n % (ii) a = area of region % (iii) m = sample size (m <= n) % (iv) test = indicator of test to be used % 0 = two-sided test for randomness % 1 = one-sided test for clustering % 2 = one-sided test for uniformity % % OUTPUTS: OUT = vector of all nearest-neighbor distances % % SCREEN OUTPUT: critical z-value and p-value for test

The first line defines this program to be a function call cluster , with four inputs ( pts,a,n,test ) and one output called OUT. The percent signs (%) on subsequent lines indicate comments intended for the reader only. The first few comment lines describe what the program does. In this case cluster takes a subsample of size m ≤ n and performs a Clark-Evans test as in JMPIN. The next set of comment lines describe the four inputs in detail. The first, pts , contains the (x,y) coordinates of the given point pattern, and corresponds in our present case to Redwoods. The parameter a corresponds to area , and m corresponds to the number of subsamples to be taken (in this case m = 31 ). Finally test is an indicator denoting the type of test to be done, so that for a one-tailed test of clustering we would give test the value 1. During the execution of this program, the nearest-neighbor distance for each pattern point is calculated. Since this vector of nn- distances is useful for other applications (such as the JMPIN spread-sheet above) it is

(^16) The extension .m is used for all executable programs and scripts in MATLAB. (^17) To view this program you can also type the command >> edit cluster.

________________________________________________________________________

useful to save this vector. Hence the single output, OUT , is in this case the n x 1 matrix of nn-distances. The last comment line describes the screen output of this program, which in the present case is simply a display of the Z -value obtained and its corresponding P-value.

To run this program, suppose that you want to save the nn-distance output as a vector called D (the names of inputs and outputs can be anything you choose). Then at the command prompt you would type:

>> D = cluster(Redwoods,area,31,1);

Here it is important to end this command statement with a semicolon (;), for otherwise, all output will be displayed on the screen (in this case the contents of D ). Hence by hitting return after typing the above command, the program will execute and give a screen display such as the following:

RESULTS OF TEST FOR CLUSTERING

Z_Value = -3.

P_Value =.

Here the results are different from those of JMPIN above because a different random subsample of size m = 31 was chosen. To display the first four rows of the output vector, D , type 18

>> D(1:4,:)

Here the absence of a semicolon at the end will cause the result of this command to be displayed. If you would like to save this output to your home directory (say E:) as a text file, say nn_dist.txt , then use the command sequence

>> save E:/nn_dist.txt D -ascii

As was pointed out above, the results of this Clark-Evans test depend on the particular sample chosen. Hence, each time the program is run there will be a slightly different result (try it!). But in MATLAB it is a simple matter to embed cluster in a slightly larger program that will run cluster many times, and will produce whatever summary outputs are desired. I have constructed a program to do this, called clust_distr.m. If you open this program you will see that it has a similar format:

(^18) Since D is a vector, there is only a single column. So one could simply type D(1:4) in this case.

________________________________________________________________________

-5.5^0 -5 -4.5 -4 -3.5 -3 -2.5 -2 -1.

10

20

30

40

50

60

70

80

90

Fig.13. Sampling Distribution of Z -values

In particular, the mean of this distribution is now about -3.46 as shown by the program output below:

RESULTS OF TEST FOR CLUSTERING

Mean Z-Value = -3.

P-Value of Mean = 0.

Here the P-value, .000273, is of the same order of magnitude as the single sample above, indicating that this single sample was fairly representative.^20 Notice however that the single sample in the JMPIN application above has a P-value (.0000546) is an order of magnitude smaller. Hence this illustrates an “unlucky” choice of samples that yields a much higher degree of significance than is warranted. But for this Redwood Seedling example, such differences have little relevance since even a P-value of .000273 indicates very significant clustering – as is obvious for this point pattern.

3.4 Bodmin Tors Example

The redwood seedling example above is something of a “straw man” in that statistical analysis is hardly required to demonstrate the presence of strong clustering. Rather it

(^20) Again it should be emphasized that this P-value has nothing to do with the sampling distribution in

Figure 13. Rather it is the P-value for the mean Z -value under the normal distribution in (17)

________________________________________________________________________

serves as an illustrative case where we know what the answer should be. 21 However, the presence of significant clustering (or uniformity) is usually not so obvious. Our second example, again taken from [BG] (Figure 3.2), provides a good case in point. It also serves to illustrate some additional limitations of the above analysis.

Here the point pattern consists of granite outcroppings (tors) in the Bodmin Moor, located at the very southern tip of England in Cornwall county, as shown to the right. (Since the granite in these tors was used for tomb stones during the Bronze age, they are something of a tourist attraction in England.)

The map in Figure 14a below shows a portion of the Moor containing n = 35 tors. A randomly generated pattern of 35 tors is also shown for comparison in Figure 14b.

Fig.14a. Bodmin Tors Fig.14b. Random Tors

Here there does appear to be some clustering of tors relative to the random pattern on the right. But it is certainly not as strong as the Redwood Seedling example above. So it is of interest to see what the Clark-Evans test says about clustering in this case (see also exercise 3.5 on pp.114-15 in [BG]). The maps in Figures 14a and 14b appear in the ARCMAP project, bodmin.mxd , in the directory arview/project/Bodmin. The area , a R ( ) = 206.62, of the region R in Figure 14a is given in the Attribute Table of the

shapefile, bod_bdy. 22 This point pattern data was imported to MATLAB and appears in the matrix, Bodmin , of the data file, bodmin.mat , in the matlab directory. For our present purposes it is of interest to run the following full-sample version of the Clark- Evans test for clustering:

(^21) Such examples are particularly useful for providing consistency checks on statistical methods for

detecting clustering. (^22) The area and distance scales for this pattern are not given in [BG].

BODMIN MOOR

  • • 0 5