-
Notifications
You must be signed in to change notification settings - Fork 70
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
Interpretation of Local Moran's I #527
Comments
@anitagraser Thanks for this report and the notebook. It does seem to be that this boils down to the issue you noticed in #526 and there may be something funky going on in |
@jGaboardi thank you! As far as I can tell, split_arcs is not used (at least not called directly by the user) in this case. |
Indeed, you are correct. I will give this my fullest attention as soon as I can. (PySAL is not my day job... unfortunately... 😆). In the mean time, would you be able to share the clustered point pattern you created for the debug notebook? |
Sure, I've added it to my fork: https://github.com/anitagraser/spaghetti/tree/master/notebooks/data |
Anita, you were correct the issue with arc splitting (#526 --> #535) has nothing to do the result you are seeing here. In fact, after further review the LISA plots do appear to be a valid result. Perhaps @slumnitz can chime in here for a better explanation of the LISA plotting and interpretation (also see Exploratory Analysis of Spatial Data: Visualizing Spatial Autocorrelation with I also plan to add more to the network spatial autocorrelation notebook when I get a chance. |
Thanks James! Indeed, it would be interesting to discuss the consequences this has for the interpretation of LISA results for point patterns. If a count of zero points per edge is too close to the expected value to be reliably classified as a cold spot, then it is surprising to see LL edges scattered all over. Any hints would be highly appreciated. (cc @slumnitz) |
This also relates to the following new discussion: #547 |
Hello @jGaboardi and @anitagraser, sorry for the long silence, I am happy to give this a look but need a couple days to get into the problem. A couple questions to better understand what is going on here: @anitagraser can you point me to the notebook where you do this analysis? I'd like to understand your data and you way of building weights better first. Also which output would you be expecting? |
Since this is more of a discussion than an actual bug, I vote we move this to the Discussions board. Any objections @anitagraser @slumnitz? |
@jGaboardi and @anitagraser, I am not sure yet if this is a bug or not. |
Ah, this is very interesting! I will leave this as an issue for now then. Thanks for looking into this @slumnitz! |
To add, but this might not be an issue here: I am not sure if this might be related, but so far 'splot.esda.lisa_cluster' is only tested if the weights, Morans etc have been calculated from that same gdf that is used for plotting. So if weights/ moran are calculated for points and then plotted with lines the assignment will likely not match. |
@slumnitz thank you for your insights! The plots above are taken from the following notebook: https://github.com/anitagraser/spaghetti/blob/master/notebooks/debug-counts-on-split-arcs.ipynb I expected that the LL edges would be rather contiguous, instead of being sprinkled all over the place. I actually can generate something that looks more like what I expected, by splitting the network into 200ft segments: |
@slumnitz have you had a chance to look at the example above to determine if it's a bug or expected behavior? |
@anitagraser I closed this too early! Sorry! |
I'm having trouble wrapping my head around the LISA results. I've created a point pattern which is very localized. Large parts of the network are not covered by any points. However, LL arcs only appear here and there - not nearly as contiguously as I would expect. The same (but maybe not as noticeable) seems to apply to HH arcs.
Why do the results look like this? If there is some statistical reason for this, I'd appreciate any pointers to related reading material.
Here's the full notebook to reproduce this effect:
https://github.com/anitagraser/spaghetti/blob/ab16652b78c5bc576a9c3377563510dfc152cf21/notebooks/debug-counts-on-split-arcs.ipynb
The text was updated successfully, but these errors were encountered: