Be the first to rate this file! 198 downloads (last 30 days) File Size: 6.82 KB File ID: #19968

Inequality Package

by Francesco Pozzi

 

18 May 2008 (Updated 08 Feb 2009)

No BSD License  

Inequality Metrics: Gini Coefficient associated to the Lorenz Curve, Theil and Atkinson Indexes

Download Now | Watch this File

File Information
Description

Package on Inequality Metrics such as the Gini Coefficient associated to the Lorenz Curve, the Theil and the Atkinson Indexes.

For more references:
http://en.wikipedia.org/wiki/Lorenz_curve
http://en.wikipedia.org/wiki/Gini_coefficient
http://en.wikipedia.org/wiki/Theil_index
http://en.wikipedia.org/wiki/Atkinson_index

***************************

The zip file contains:
GiniCoeff.m
GiniCoeff2.m
plotLorenzCurve.m
TheilTIneq.m
TheilLIneq.m
AtkinsonIneq.m

***************************

Example for GiniCoeff.m:
N = 1000;
p = rand(N, 1); w = rand(N, 1);
y = GiniCoeff(p, w)

***************************

Example for GiniCoeff2.m:
N = 1000;
p = rand(N, 1); w = rand(N, 1);
y = GiniCoeff(p, w)

***************************

Example for plotLorenzCurve.m:
N = 1000;
p = rand(N, 1);
w = exp(randn(N, 1));
plotLorenzCurve(p, w)

***************************

Example for TheilTIneq.m:
N = 1000;
w = rand(N, 1);
y = TheilTIneq(w)

***************************

Example for TheilLIneq.m:
N = 1000;
w = rand(N, 1);
y = TheilLIneq(w)

***************************

Example for AtkinsonIneq.m:
N = 1000;
w = rand(N, 1);
epsilon = rand;
y = AtkinsonIneq(w, epsilon)

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Gini coefficient - population weighted

MATLAB release MATLAB 7 (R14)
Zip File Content  
Other Files AtkinsonIneq.m,
GiniCoeff.m,
GiniCoeff2.m,
plotLorenzCurve.m,
ReadMe.txt,
TheilLIneq.m,
TheilTIneq.m
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
27 May 2008

Minor corrections (deleted unnecessary semicolons and brackets)

08 Feb 2009

I have made two major corrections to the functions GiniCoeff and plotLorenzCurve

Tag Activity for this File
Tag Applied By Date/Time
statistics Francesco Pozzi 22 Oct 2008 10:02:05
probability Francesco Pozzi 22 Oct 2008 10:02:05
gini Francesco Pozzi 22 Oct 2008 10:02:05
theil Francesco Pozzi 22 Oct 2008 10:02:05
lorenz curve Francesco Pozzi 22 Oct 2008 10:02:05
atkinson Francesco Pozzi 22 Oct 2008 10:02:06
inequality Francesco Pozzi 22 Oct 2008 10:02:06
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com