NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Calculate Global Moran's I with an explicit neighbour matrix — Open rectangular block

Calculate Global Moran's I with an explicit neighbour matrix — a worked case for open rectangular block, with explicit data, a sensitivity comparison and an independent evidence check.

Calculate Global Moran's I with an explicit neighbour matrix — Open rectangular block

The measurement question

Global Moran's I compares neighbouring deviations from the overall mean. For four hypothetical plots in a chain with values 1, 2, 4, and 5, the mean is 3 and deviations are −2, −1, 1, and 2. Give each immediate neighbour a binary weight in both directions, with no self-weights. The summed weighted cross-products are 6, squared deviations sum to 10, and total weights equal 6, yielding I=0.4. This positive descriptive value suggests adjacent similarity under that particular neighbour definition. It is not by itself proof of statistical significance, and changing the spatial weights can change the question and the result.

This is an educational case with constructed input data. It is not a report of a completed NiVO project, a flight authorization, a product performance guarantee, or evidence that the photographed location was surveyed for this example.

Case conditions and evidence

The block has clear edges and an accessible perimeter. The initial dataset is deliberately simple so that a discrepancy can be traced to one input rather than hidden by complex geometry. Place the independent reference outside the adjustment set and record whether the reference represents bare ground or the visible surface.

Use a complete boundary walk and a small independently measured patch to test the assumptions. A neat rectangular footprint is not evidence that every part of the block has usable observations.

Laptop used for an OpenStreetMap editing session in JOSM
Laptop used for an OpenStreetMap editing session in JOSM.Source: Alejandro Escamilla · CC0

Reproduce the numerical check

Illustrative input data: Attribute at first node (x1) = 1 attribute units; Attribute at second node (x2) = 2 attribute units; Attribute at third node (x3) = 4 attribute units; Attribute at fourth node (x4) = 5 attribute units.

Calculation: (4/6)*(2*((x1-((x1+x2+x3+x4)/4))*(x2-((x1+x2+x3+x4)/4))+(x2-((x1+x2+x3+x4)/4))*(x3-((x1+x2+x3+x4)/4))+(x3-((x1+x2+x3+x4)/4))*(x4-((x1+x2+x3+x4)/4))))/((x1-((x1+x2+x3+x4)/4))**2+(x2-((x1+x2+x3+x4)/4))**2+(x3-((x1+x2+x3+x4)/4))**2+(x4-((x1+x2+x3+x4)/4))**2).

Global Moran's I for four-node chain = 0.4 dimensionless.

The calculation below checks one part of the evidence chain. Keep the stated units and assumptions. The output does not replace field observations, the equipment manual, or an independent assessment of the complete deliverable.

Change one assumption

Increase only attribute at fourth node (x4) from 5 to 5.5 attribute units. Re-evaluating the same equation gives global moran's i for four-node chain = 0.38119658 dimensionless. The arithmetic difference from the baseline is -0.018803419 dimensionless.

For the comparison, only the explicitly listed input changes. All other quantities stay fixed. This isolates the mathematical response; weather, image texture, viewing geometry and equipment behaviour can change together in a real mission, so do not interpret the comparison as a flight test.

Interpret the result

State the neighbour rule before interpreting clustering. Use a defensible distance, adjacency, or process-based connection, and separate a descriptive index from inferential claims supported by suitable significance testing and adequate sample size.

The statistic depends on scale, weights, boundaries, and the attribute distribution. A global summary can mask local exceptions, while a small illustrative dataset is unsuitable for confidently declaring a real landscape pattern statistically significant.

Separate an arithmetic result from a verified measurement. A precise number can still be based on an uncertain input. Test the assumption with an independent observation before applying the result to an acceptance decision; retain the original value when the independent check disagrees.

Independent checks and delivery

Print the full weight matrix, check diagonal zeros and S0, and reproduce numerator and denominator independently. Repeat with justified alternative neighbourhood definitions and inspect a map to understand which feature pairs drive the result.

Retain a boundary mask, a reference-point inventory and a list of excluded areas. The recipient needs to distinguish an observed surface from an interpolation beyond the measured edge.

Deliver the original observations, the calculation inputs, their units, the processing settings and an exception log alongside the interpreted output. A reviewer should be able to repeat the arithmetic and identify which observations support the conclusion. Preserve rejected observations with reasons instead of silently removing them.

Technical references

  1. Esri How Spatial Autocorrelation (Global Moran's I) works ↗
  2. NiVO technical workflow and supporting documentation ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team