Code covered by the BSD License  

Highlights from
Gini coefficient and the Lorentz curve

Be the first to rate this file! 22 Downloads (last 30 days) File Size: 3.11 KB File ID: #28080
image thumbnail

Gini coefficient and the Lorentz curve

by

 

Computes the Gini coefficient and the Lorentz curve of weighted data.

| Watch this File

File Information
Description

The Gini coefficient is a measure of the inequality of a distribution (often used for income or wealth distributions). The Lorentz curve is a graphical representation of this inequality which is intimately related to the Gini coefficient. The program is straightforward to use. Please consult the help included in the file for an extensive description of the two concepts and how to use the program.

Please also comment if you like it or find it useful.

MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
27 Nov 2011 Yvan Lengwiler

Dear Duarte, this is odd, because line 96 is "[~,ord] = sort(val);", and that is a perfectly valid statement. If you have an older version of Matlab, try replacing the tilde as follows: "[temp,ord] = sort(val);" and let me know if that helps.

24 Nov 2011 Duarte Oom

The progrma gives me a error
??? Error: File: gini.m Line: 96 Column: 7
Expression or statement is incorrect--possibly
unbalanced (, {, or [.

Contact us