Skip to content

Formula for Gini coefficient #92

Answered by petersenpeter
przemyslawj asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Prez

The Gini calculation follows the definition on the Wikipedia page (I use the third definition 1-2B):

Gini = A/(A + B) = 2A = 1 − 2B

where B is the cumulative sorted distribution of X values across the population, which could be the average firing rates across the population (L1408-L1412).

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by petersenpeter
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@przemyslawj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants