gds_course icon indicating copy to clipboard operation
gds_course copied to clipboard

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

Open MarcosDemetry opened this issue 5 years ago • 1 comments

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!

MarcosDemetry avatar Jan 07 '21 11:01 MarcosDemetry

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

darribas avatar Jan 11 '21 09:01 darribas