






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







ESE 502 Tony E. Smith
(Due on Tuesday, February 16)
As stressed in Assignment 1, your approach to this assignment should be to write a short report on your findings for each of these three âstudiesâ. Since this is your first analytical assignment, it should also be stressed that each study should be a pedagogical study (as in the Example Assignment) that illustrates the application of the relevant analytical method(s). So for example, when applying the Clark-Evans Test below, it is not enough to simply display the output from various software programs. You should give a short development of what this method tests, and exactly how it does so. What assumptions are involved? What test statistics are used? What are the advantages and possible limitations of this procedure? What information does it convey about the data set being studied?
(1) In this study you will focus on the type of point pattern analysis done in class for the âRedwood Seedlingâ data. Here you will use the âIowa County Seatâ data which is displayed in the ARCMAP file, T:\ese502\arcview\projects\Iowa\Iowa_county_seats.mxd. Observe first that, unlike the Redwood Seedlings, this point pattern appears to be uniformly dispersed (much like the âCell Centerâ data discussed in class). If you open the âIowa countiesâ layer, you will see the actual county boundaries. In fact the regularity of this grid-like pattern of county boundaries strongly contributes to the uniformity of county seats. But there is more to the story. Notice that especially for interior counties (away from the Missouri and Mississippi Rivers), each seat is near the center of its county. There are several references here that you should look at when interpreting this pattern. These references offer alternative explanations for landscapes like Iowa:
With this background, we turn now to a point-pattern analysis of Iowa:
(a) First you will construct nearest-neighbors to each point using MATLAB:
» OUT = neighbors(L,1); » nn_dist = OUT(:,4); » nn_dist(1:2,:)
The last command is a check, and should yield the values 20.98 and 20.448. (For example the nearest neighbor of county seat 1 is about 21 miles away.)
» save âS:\home\nn_dist.txtâ nn_dist âascii
(b) Next, you will import this data to JMP and examine its properties.
[JMP 7] Use the option âText Import Previewâ to import the file, nn_dist.txt , as in Problem 1(b).2 of Assignment 1.
[JMP 8] Reset preferences as in Problem 1(b).2 of Assignment 1 and import the file, nn_dist.txt , as a Text file. (Eliminate the empty âColumn 1â if necessary. )
Relabel the data column as ânn_distâ. (Check to be sure the first two values are as above.) You will now use this to construct a file which is parallel to Redwoods_data.jmp , used for the analysis of the Redwood Seedlings in class.
nn _ distrand _ relabel
>> ce_test_distr(L,56269,30,2,1000);
How do these results add to what you have already learned above?
Conclusions. In your concluding discussion of this study, consider how your findings relate to the Central Place Theory of Lösch. Also, how do they relate to the more statistical theory of Dacey?
(2) In this study (based on Exercise 3.3 in B&G), you will analyze the âVolcanoes in Ugandaâ data in the ARCMAP file, T:\ese502\arcview\projects\Volcanoes\Volcanoes.mxd. There is a key paper that you should look at before analyzing this data, namely the âVolcanoes in Ugandaâ paper by Tinkler in the Reference Materials. [Pay particular attention to the Introduction and Conclusions sections.]
(a) First you will export the point data from ARCMAP to MATLAB. To do so:
(i) Open the boundary file ..\Volcanoes\Uganda_bnd.dbf in EXCEL and right click on the numerical âAREAâ value to copy it. (This can also be done using the attribute table for ugand_bd in ARCMAP.)
(j) In MATLAB type: » area = , and the paste in the value. (You could of course copy it by hand, but it is useful to be able to copy-and-paste sections of data.)
(k) Now save the workspace again. (There is a correct version of this workspace, volcanoes.mat , in T:\ese502\matlab. So you may wish to compare your version with this workspace to be sure you have done everything correctly.)
(b) Next you will construct a version of the boundary file for Uganda that is suitable for MATLAB analysis.
» info.seed = 23456; » k_count_plot(volcano_pts,99,40,1,ugand_bd,info);
The use of the same random seed will ensure that the same data is generated to allow a better comparison of these two tests.
(i) Save this figure to your home directory as k_count.fig.
(j) Now (with k_count.fig still open) open k_function.fig for purposes of comparison, by clicking: File â Open (in the main MATLAB menu) and navigating to your home directory.
(i) First click: File â Export (in the Figure window) and export the file to your home directory in Enhanced Metafile ( .emf ) format.
(j) Open WORD. [The following instructions are for WORD 2003 ]. click: Insert â Picture â From File , and insert the file k_count.emf.
(k) Click on the image and resize it by dragging the corner with the mouse.
(l) To position the image, click: Format â Picture ( or Object) and in the Layout folder set Wrapping Style = âBehind Textâ. You can then drag the image where you like.
(m) Finally, you can (if you like) add additional labels by using text boxes :
a. Be sure the Drawing toolbar in WORD is open ( View â Toolbars ), and click on the Textbox tool. Then click (approximately) where you would like it to appear.
b. You can edit the Textbox by right clicking on the boundary of the box and selecting Format Text Box.
c. You can also use the mouse to drag the box and resize it (by again right click on the boundary).
Conclusions: In your concluding discussion of this study, consider how these results relate to the work of Tinkler. Are they consistent with his findings?
(3) In this study (based on Exercises 4.1 and 4.5 in B&G) you will analyze the âMyrtle Diseaseâ data in the ARCMAP file: T:\ese502\arcview\projects\Myrtles\Myrtles.mxd. This data, which can also be found in the MATLAB workspace myrtles.mat , shows part of a grove of Myrtle trees in southern Tasmania that has been inflicted with a disease known as âMyrtle Wiltâ.
The object of this study is to analyze the spatial relations between diseased and healthy myrtle trees (diseased trees are shown in red). In particular, the task is to determine whether these spatial relations are consistent with contagion of Myrtle disease, or whether they are more consistent with random infections. A contagion hypothesis might be that the diseased trees appear in âclumpsâ or âpatchesâ. With respect to spatial dependencies between populations, this suggests that at scales where clumpiness is observed, healthy and diseased trees should show some degree of ârepulsionâ. Similarly, this hypothesis also suggests that within the diseased-tree population there should be some degree of âclusteringâ at these scales.
(a) To address these issues, you will first use both the ârandom shiftâ and ârandom permutation (relabeling)â tests to examine possible spatial dependencies between diseased and healthy trees. The locations of diseased and healthy trees are given in the matrices L1 and L2 , respectively, and the dimensions of the box shown in Myrtles.mxd are given as ( xmin,xmax,ymin,ymax ). In the following steps, be sure to save and print out all plots from MATLAB as in Problem 2 above.
min{(xmax â xmin),(ymax â ymin)}/2 = 46
So vector D contains a set of 11 representative distances between 1 meter and 45 meters to be used for the analysis. Here, you will use the seed value , 30456, to initialize the random number generator in the program. Hence, using the program k12_shift_plot.m for the random shift test , the command:
This will test the new pattern using the same seed as in (3) above.
» L = [L1;L2]; [stacks points to form single vector] » n = size(L,1); [counts number of rows in L ] » DIST = distance_mat(L); [computes all pairwise distances for L ] » DD = DIST + 10eye(n);* [replaces diagonal zeros with 10 ( > 3)] » D0 = DD(1:49,:); [restricts DD to the L1 rows] » D3 = (D0 <= 3); [binary form of D 0 with â1â for distances <= 3] » rows = find(sum(D3 âČ )); [finds rows with at least one distance <= 3] » D3 = D3(rows,:); [restricts rows of D3 to rows ] » v1 = sum(D3 âČ ); [counts all neighbors with distance <= 3] » D3 = D3(:,50:end); [restricts D3 to the L2 columns] » v2 = sum(D3 âČ ); [counts only L2 neighbors with distance <= 3] » MAT = [rows âČ ,v1 âČ ,v2 âČ ] [collects all results in a matrix]
The last command (with no semicolon ) then displays a matrix, MAT , in which the first column lists the row numbers of those diseased trees ( L1 trees) having at least one neighbor within a distance of 3 units. For each of these trees, the second column then shows exactly how many such neighbors there are. Finally, the last column shows how many of these are healthy trees ( L2 trees). If you have written these commands correctly, the first row of MAT should be [8 2 2], indicating that the diseased tree in row 8 of L has two neighbors within three units, and that both of these neighbors are healthy trees. [You can find each of these trees in ARCMAP by noting that FID numbers (which start at zero) are always one less than the corresponding row numbers in MATLAB. So the tree in row 8 has FID number 7 in the Attribute Table for Diseased Trees.]
Based on the results in MAT , comment on whether the above significance result appears to be consistent with this information. ( Hint : If the distribution were random, then (as a crude estimate) one would expect about 58.5% [= 100{69/(49+69)}] of these neighbors to be healthy trees. Compare this with the observed fraction).
(b) Finally, you will consider possible spatial relations within the diseased population ( L1 ) relative to the healthy population ( L2 ), again by means of ârandom permutationsâ:
» k2_diff_plot(loc,n1,99,D,65846);
Conclusion: In your concluding discussion of this study, consider how your results relate to the findings of Packman (and the earlier work of Elliot that she discusses).