In this block, the DIY section is more straightforward: we have a few tasks, but they are all around the same dataset. The tasks incorporates all the bits and pieces we have seen on the hands-on section.
For this section, we are going to revisit the AHAH dataset we saw in the DIY section of Block D. Please head over to the section to refresh your mind about how to load up the required data. Once you have successfully created the
ahah object, move on to Task I.
Task I: get the dataset ready¶
ahah table on your figertips, complete all the other bits required for the ESDA analysis of spatial autocorrelation:
Make sure your geography does not have islands
Create a spatial weights matrix
Standardise the spatial weights matrix
Create the standardised version of the AHAH score
Create the spatial lag of the main AHAH score
Task II: global spatial autocorrelation¶
Let’s move on to the analytics:
Visualise the main AHAH score with a Moran Plot
Calculate Moran’s I
What conclusions can you reach from the Moran Plot and Moran’s I? What’s the main spatial pattern?
Task III: local spatial autocorrelation¶
Now that you have a good sense of the overall pattern in the AHAH dataset, let’s move to the local scale:
Calculate LISA statistics for the LSOA areas
Make a map of significant clusters at the 5%
Can you identify hotspots or coldspots? If so, what do they mean? What about spatial outliers?
Create cluster maps for significance levels 1% and 10%; compare them with the one we obtained. What are the main changes? Why?