Average Nearest Neighbor

<– 3 | Hot Spot Analysis

The Average Nearest Neighbor tool measures the distance between each feature centroid and its nearest neighbor’s centroid location. It then averages all these nearest neighbor distances. If the average distance is less than the average for a hypothetical random distribution, the distribution of the features being analyzed is considered clustered. If the average distance is greater than a hypothetical random distribution, the features are considered dispersed. The average nearest neighbor ratio is calculated as the observed average distance divided by the expected average distance (with expected average distance being based on a hypothetical random distribution with the same number of features covering the same total area).

The Average Nearest Neighbor tool returns five values: Observed Mean Distance, Expected Mean Distance, Nearest Neighbor Index, z-score, and p-value.

How to do:

Goal: To determine if residential crimes in Lincoln are clustered or dispersed.

Step 1: Add Lincoln_resburglaries feature class from the SampleData File Geodatabase to a new ArcMap document.

Step 2: Select Average Nearest Neighbor toll (ArcToolbox > Spatial Statistics > Analyzing Patterns > Average Nearest Neighbor)

Step 3: Fill in the fields as specified:

  • Make sure to check Generate Report
  • Distance Method: either straight line (Euclidean) or right angles (Manhattan).¬†We’ll use Euclidean¬†distance

Step 4: Hit OK and run the tool. The tool will run and output a graphical summary as an HTML file. Note: the report that is produced will not open after the tool completes running. To open the HTML file, navigate to the results window (if the window isn’t open, you can open the window via Geoprocessing > Results). Then double-click on the HTML Report File.