春江暮客

春江暮客的个人学习分享网站

包含标签 python 的文章

Calculating the Gini Coefficient and Plotting the Lorenz Curve with matplotlib

Calculating the Gini Coefficient and Plotting the Lorenz Curve with matplotlib

2020年5月31日 | Technology
The Gini coefficient and Lorenz curve are widely used to represent data inequality, especially wealth inequality. However, currently in Python, there isn’t a very good function to directly plot the Lorenz curve. Since the current project requires it, this article records how to use numpy, pandas, matplotlib, and other packages to calculate the Gini coefficient and plot the Lorenz curve for practical use.……

阅读全文

友情链接

其它