Global Moran’s I: Change the Layout, Keep the Values
2026-11-21

Global Moran’s I: Change the Layout, Keep the Values

Global Moran’s I measures how a set of values is arranged across specified neighbors. The same four sensor readings can give different results when moved among the same locations. The mean and overall spread stay fixed. What changes is which deviations are paired across neighboring positions and whether each pair contributes a positive or negative product.

Define the neighboring pairs explicitly

Suppose four stations on a straight test line are labelled A, B, C and D. Give weight 1 to the pairs A–B, B–C and C–D in both directions. All other weights, including a location paired with itself, are zero. There are three undirected links and six nonzero entries in the symmetric weight matrix. The total weight S0 is therefore 6. The first and last stations are not treated as adjacent because the example test line does not wrap around.

Use this exact weight matrix throughout the example. If the layout includes shortcuts or a connection at each end, the pair values and the total weight can change. Likewise, row standardization divides each positive row by its total. An end station on the line has one neighbor, while an interior station has two, so binary and row-standardized weights differ even with identical location labels.

Calculate the case with similar readings grouped

Assign readings 8, 8, 4 and 4 to A through D. Their mean is 6 and the deviations are 2, 2, −2 and −2. The sum of squared deviations is 16. Across the three undirected links, the products are +4 for A–B, −4 for B–C and +4 for C–D. Add both directions in the weighted sum to obtain 8.

Stations A through D have values eight, eight, four and four, giving link products plus four, minus four and plus four.
The weighted sum counting both directions is eight, and the example Moran index is one third. Source: Zhilianhai editorial desk, original AI-assisted conceptual illustration.

The global statistic is n divided by S0, multiplied by the ratio of the summed weighted products to the summed squared deviations. Here that is (4 divided by 6) times (8 divided by 16), or one third. It is positive because the two like pairs contribute positively and together outweigh the one mixed pair. The value is tied to the binary weight definition, even when one discusses it informally as an arrangement of highs and lows.

Repeat with the same readings in a different order

Now put 8, 4, 8 and 4 at A through D. The mean is still 6 and the squared deviations still sum to 16. All three undirected edges now connect a value above the mean to one below it. Their products are all −4. Counting the reverse entries gives a total weighted product of −24. Applying the same factor of 4 divided by 6 gives a global Moran’s I of −1 for this particular arrangement.

Stations A through D have values eight, four, eight and four, so all three link products are minus four.
The ordered weighted sum is minus 24, giving a Moran index of minus one in this layout. Source: Zhilianhai editorial desk, original AI-assisted conceptual illustration.

The different result comes entirely from the assignment of values to neighboring locations under the fixed weights. A histogram of these four observations is identical across the two layouts. The cross-products reveal whether high and low deviations are repeatedly placed next to one another. Recalculate the weighted sum from the labels if a plotted map and computed result seem to tell different stories.

Separate the observed statistic from a significance assessment

The four-station example demonstrates the exact arithmetic and does not support a general conclusion about equipment behavior. A statistical assessment compares the observed index with a reference distribution under stated assumptions. With permutation inference one can keep the weights and observed values fixed while redistributing the values among the locations, then recompute the same statistic. Duplicated values reduce the number of distinct layouts in a small example like this one.

There are six distinct ways to place the two readings of 8 among four labelled positions. With the same line weights, two layouts yield one third, two yield minus one third and two yield minus one. The mean across those six equally weighted layouts is minus one third. This small enumeration shows how the choice of the reference distribution adds information beyond the sign of one observed statistic.

Also keep the distinction between a global summary and location-specific behavior. A single value summarizes the whole chosen pattern. Some adjacent pairs can have positive products and others negative products in the same data. Before attributing a high or low reading to a location, inspect the relevant measurements and the choice of which neighbors the weight definition included.

Retain the weight definition with the computation

Store the point identifiers, data order, adjacency rule, weight transformation and any handling of isolated locations. A reproducible computation can construct the same weights and match them to the measurements by identifier. Sorting the measurement values independently of the location identifiers would change the sample arrangement used for the statistic. For the four-station line, the three explicitly named links make this check straightforward.

Source notes. PySAL’s global Moran guide gives the weighted cross-product formula and describes permutation inference. Esri’s calculation guide explains the role of neighbor pairs and centered products. All four station readings are invented. See also the analysis resources and technical article directory.

18028484626 CONTACT US

公司:智联海(惠州)科技有限公司

地址:惠州仲恺高新区陈江街道白云山工业大道 5 号六楼 601

Q Q:18028484626

Copyright © 2002-2026

粤xxx

咨询 在线留言 电话:18028484626
微信 微信扫码添加我