NiVO / BY TECHNOGISGermany · Indonesia
Geospatial

Calculate Global Moran's I with an explicit neighbour matrix — Documented parameter change

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

Calculate Global Moran's I with an explicit neighbour matrix — Documented parameter change

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

A single processing or acquisition parameter changes between two controlled runs. The comparison keeps a copy of the original configuration and identifies every unchanged input. If another condition changed at the same time, record it as a confounder instead of attributing the entire difference to one parameter.

Re-run a small fixed test set with both configurations. Compare the outputs with the task-specific independent evidence and keep any conflicting result for review.

Hands annotating a paper map at a Development Seed mapping event
Hands annotating a paper map at a Development Seed mapping event.Source: Development Seed · CC BY 2.0

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) = 6.3 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.33960832 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 6.3 to 6.93 attribute units. Re-evaluating the same equation gives global moran's i for four-node chain = 0.30530488 dimensionless. The arithmetic difference from the baseline is -0.034303444 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.

Provide both configuration files, the fixed test set and the comparison table. Explain the reason for selecting a configuration without presenting a software setting as proof of accuracy.

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