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

Different slope in manual Moran's plot and moran_scatterplot(mi) #4

Open
MarcosDemetry opened this issue Jan 7, 2021 · 1 comment

Comments

@MarcosDemetry
Copy link

In Lab F (https://github.com/darribas/gds_course/blob/master/content/bF/lab_F.ipynb) there is a Moran Plot created using the standardised variables of Pct_leave. When we calculate Moran's I without using the standardised variables, we get a value of 0.62. Running moran_scatterplot(mi) gives a different (steeper) slope than the first Moran Plot with the standardised variables. It also seems that even if we were to use the standardised variables when creating mi, we don't get the same slope as the first plot we created manually.

As a suggestion: Clarify that the value of 0.62 refers to the slope as seen in moran_scatterplot(mi), or perhaps explain why they the slopes in the figures differ.

Again, thank you so much for your wonderful work!

@darribas
Copy link
Owner

Thank you very much for the report @MarcosDemetry, will fix it asap!

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

2 participants