Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected LISA results for polygons contained by another polygon #153

Closed
anitagraser opened this issue Nov 22, 2020 · 3 comments
Closed
Assignees

Comments

@anitagraser
Copy link

As mentioned on https://gitter.im/pysal/pysal, LISA results for polygons that are completely contained within another polygon (therefore only have one neighbor) are often "not significant" even though visual inspection of the input values would suggest that they should be part of the hotspots/coldspots:

image

image

Data and notebook to reproduce:

https://github.com/anitagraser/pysal-temp/blob/main/notebooks/moran-local-holes.ipynb

@jGaboardi
Copy link
Member

Possibly related to pysal/spaghetti#527.

@sjsrey sjsrey self-assigned this Nov 22, 2020
@sjsrey
Copy link
Member

sjsrey commented Nov 22, 2020

I think what is going on is that the hole polygons have neighbor cardinality=1. As was discussed on gitter, this impacts the variance of the local statistics:

image

Updated notebook.

@sjsrey sjsrey closed this as completed Nov 22, 2020
@anitagraser
Copy link
Author

Thank you, @sjsrey! I'll look into distance-based weights instead to try avoid this effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants