Table 3. The Example of calculating the chi-square statistic.

Class Expected ratio Expected (Ej) Observed (Oj) (Oj – Ej)2 (Oj – Ej)2/Ej χ2
Forest land 0.7442 101.96 104.00 4.18 0.04 2.84
Cropland 0.0595 8.15 7.00 1.33 0.16
Grassland 0.0814 11.15 14.00 8.11 0.73
Wetlands 0.0574 7.86 8.00 0.02 0.00
Settlements 0.0575 7.88 4.00 15.04 1.91