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

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 example contains an upper terrace and a lower work surface. A single reference elevation can hide a substantial change in sensor-to-surface distance. Keep the two surfaces separate during the first comparison and identify which height reference was actually used for every recorded observation.
Compare an independently checked location on each terrace. Do not use a point on the upper surface to claim that the lower surface has the same error or observation geometry.

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.2 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.39365959 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.2 to 5.72 attribute units. Re-evaluating the same equation gives global moran's i for four-node chain = 0.37055348 dimensionless. The arithmetic difference from the baseline is -0.023106109 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.
Package the height reference, the terrace boundary and the observed transition zone. State where the surface was not directly observed and where a model filled a gap.
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.



