+ Reply to Thread
Results 1 to 16 of 16

GINI Coefficient Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    Guelph
    MS-Off Ver
    Excel 2003
    Posts
    8

    GINI Coefficient Formula

    Hello all, does anyone have any ideas on how the formula for the GINI coefficient could be expressed in Excel ΣiΣj(yi-yj)

    In the formula, y refers to income and both i and j refer to households. Thus for instance if there were two households then to get ΣiΣj(yi-yj) first set i equal to one then do the single sum across the js. Then set i = 2 and do the single sum across the js. Sum the two sums, and you have it. This is equivalent to:

    ΣiΣj(yi-yj) = |y1-y1| + |y1-y2| + |y2-y1| + |y2-y2|

    I represents the total number of households (which is why you sum from i = 1 to I and also from j = 1 to I).

    In my case I have 100 households.

    Any help would be much appreciated.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: GINI Coefficient Formula

    Perhaps =SUMPRODUCT(A1:A100 - TRANSPOSE(A1:A100)) / SUM(A1:A100)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-28-2010
    Location
    Guelph
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: GINI Coefficient Formula

    what would this do?
    I can't seem to get it to work on my excel sheet

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: GINI Coefficient Formula

    what would this do?
    It computes the double summation you requested
    I can't seem to get it to work on my excel sheet
    So post your sheet.

  5. #5
    Registered User
    Join Date
    05-28-2010
    Location
    Guelph
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: GINI Coefficient Formula

    ok here it is. thanks for your help.

    essentially what I have to find out is the sum of the absolute differences of all possible pairs...
    Attached Files Attached Files

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: GINI Coefficient Formula

    The average mean difference is

    =SUMPRODUCT(ABS(A2:A101 - TRANSPOSE(A2:A101))) / ROWS(A2:A101)^2 = 67209

    The function MUST be confirmed with Ctrl+Shif+Enter, not just Enter.

  7. #7
    Registered User
    Join Date
    05-28-2010
    Location
    Guelph
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: GINI Coefficient Formula

    I'm not sure if this is the correct method....my prof says it requires relative and absolute references:

    "It is in fact quite straightforward if you make use of the relative and absolute cell references - which I covered in the Excel tutorial. Again, take this step by step on a 2*2 example."

    this is just the numerator of a larger formula where the denominator is: 2*Isquared*mean where I is the number of observations...it should yield a number between 0 and 1, the gini coefficient.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: GINI Coefficient Formula

    The formula is for the mean absolute difference, which is clearly not a normalized number. The ROWS()^2 term in the denominator is what makes the sum of the differences in the numerator an average (but not a normalized average).

    It can be normalized; how about you do some research and explain how, and I'll help with the Excel part of it?

  9. #9
    Registered User
    Join Date
    05-28-2010
    Location
    Mississauga, Canada
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: GINI Coefficient Formula

    im having a little trouble with this too and any help would be awesome! how we would sum the absolute values of the differences of all possible pairs out of 100.basically i need a function in excel for: ΣiΣj(yi-yj) = |y1-y1| + |y1-y2| + |y2-y1| + |y2-y2|

  10. #10
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: GINI Coefficient Formula

    If you have difficulties with shgs' advice, then ask your prof!!!

    I'm not sure if this is the correct method....my prof says it requires relative and absolute references
    I'm ****** sure he will know better!!!

    P.S. I'll probably get an infraction penalty for this, but after a few pints, what the h****, advice is FREE.

  11. #11
    Registered User
    Join Date
    05-28-2010
    Location
    Guelph
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: GINI Coefficient Formula

    my prof is useless

  12. #12
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: GINI Coefficient Formula

    Then just try thinking it through, sdiazl, or try the web, or try a library. What would you do to make the income differences independent of the absolute income dollars?

    If you're just looking for a forum to do your homework, look elsewhere, or save time now and switch your major to Political Science.

    United, please take a few minutes to read the forum rules, and then start your own thread.

  13. #13
    Registered User
    Join Date
    02-03-2012
    Location
    Taipei, Taiwan
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: GINI Coefficient Formula

    In case the problem is not solved yet. The answer is
    =SUMPRODUCT(ABS(A2:A101 - TRANSPOSE(A2:A101)))/(COUNT(A2:A101)*2*SUM(A2:A101))

  14. #14
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: GINI Coefficient Formula

    @ rchou
    This thread is some 20 months old, I doubt if sdiazl will reply.
    He/she is now probably doing Political Science!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1