Code covered by the BSD License  

Highlights from
Gini coefficient and the Lorentz curve

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

Gini coefficient and the Lorentz curve

by Yvan Lengwiler

 

30 Jun 2010

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 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
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 [.

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.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
distribution Yvan Lengwiler 30 Jun 2010 12:29:38
inequality Yvan Lengwiler 30 Jun 2010 12:29:38
statistics Yvan Lengwiler 30 Jun 2010 12:29:38
statistics Ben Aissa Med Safouane 14 Sep 2010 14:49:17

Contact us at files@mathworks.com