Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gini]

The Gini coefficient is used to measure income inequality and discriminatory power of a classifier. If everybody has the same income, Gini coefficient = 0. If one person has all the income, Gini coefficient = 1. All other values are somewhere in between.

0
votes
2answers
31 views

Gini index in classification tree

In Gareth etc.'s book "An introduction to statistical learning", when it's talking about Gini index, I clipped the paragraph in the following image: My question is the statement that "For this reason ...
2
votes
1answer
393 views

Comparing Gini coefficient of 2 distributions

I wonder if it is fair is to compare the gini coefficient of two discrete distributions with different number of elements. If not, how can I adjust the coefficients for a fair comparison. In ...
1
vote
1answer
71 views

Number of all possible splits in each node of trees in a Random Forest

The trees in a Random Forest are grown by recursive splitting the nodes, and the best split in each node is obtained by using the Gini index, I want to know if there is a possibility to know the ...
1
vote
1answer
36 views

Correcting for season-length bias of Gini on win percentage

I made this plot to try and compare the competitiveness of the major US sports (NHL/NBA/MLB/NFL): Each point of a given color represents, for a given season, the Gini coefficient of the win ...
1
vote
1answer
60 views

Is it appropriate to compare sports with different-length seasons using Gini?

I made this plot to try and compare the competitiveness of the major US sports (NHL/NBA/MLB/NFL): Each point of a given color represents, for a given season, the Gini coefficient of the win ...
0
votes
1answer
115 views

The reason why Gini index is in favor of multivalued attributes

I am a beginner in data science and I try to understand the similarity and dissimilarity between information gain and Gini index. In my lecture notes, the professor states one of disadvantage of Gini ...
0
votes
1answer
116 views

Interpreting MeanDecreaseGini graph in R

Using the randomForest package in R, I fitted a customer churn dataset to a random forest model. The first objective was to identify the most important variables in ...
0
votes
1answer
38 views

Gini coefficients - Accounting for firm exits

What is the appropriate way to measure the Gini coefficient over time in an industry where a large number of firms are exiting? Should the Gini coefficient be calculated using the initial number of ...
0
votes
1answer
97 views

Gini coefficient finite sample correction

I wanted to compute some gini coefficients for different populations of differents sizes. In R I used the ineq package containing a Gini coefficient implementation. One of the paramater (i.e. corr) ...
0
votes
1answer
72 views

Gini index on data with error margins

I have data series and I want to calculate Gini coefficients for each row as an estimate of matrix sparsity. Hoever values contained in the rows are not exact and have error bounds. My question is ...
3
votes
0answers
61 views

Can we use the Gini corefficient to calculate the standard deviation of an income distribution?

I have a question regarding the Gini coefficient. I want to know how I can calculate the $\%$ of people earning $x\$$ or less for a population in a country with a given mean income level. I know ...
3
votes
0answers
474 views

Comparing Gini coefficients: Variance estimation etc. needed?

In a project on software measurement, we plan to use aggregating statistics (e.g., Gini) to describe the concentration of certain observed program attributes (size) among program units (e.g., modules, ...
3
votes
0answers
4k views

SAS PROC LOGISTIC: Hosmer and Lemeshow test is good but Gini is bad?

I am using PROC LOGISTIC along with Class statements to do binary logit model(default=1,non-default=0) on a bank loan dataset ...
2
votes
0answers
536 views

How to compare two Gini results?

I'm comparing two Gini results from two distributions of income, in which one income is a source of the other. Let, say that Gini_1 = 0,770 and Gini_2 = 0,373. Clearly, Gini_2 shows a less inequal ...
1
vote
0answers
28 views

Classification trees: contingency table and Gini index at split point (grouped categories)

I am working through chapter 14 of the book Applied predictive modeling (Kuhn, Max, and Kjell Johnson. Applied predictive modeling. Vol. 26. New York: Springer, 2013.). For tree models with categorial ...
1
vote
0answers
73 views

Gini index question

If a country A has a higher Gini index than country B, can you interpret this as that the income distribution in A is lower because of the higher inequality? So we would expect to see wealth being ...
1
vote
0answers
136 views

Gini coefficients : compare two samples with different sample sizes

I've two samples representing the distribution of tumor cell clones in two patient. In sample 1 I've about 10,000 clones - each clone has a relative abundance (so the sum of the relative abundance of ...
1
vote
0answers
27 views

Quantifying group homogeneity

I'm trying to find a way to quantify the homogeneity of a group. An example dataset is below, where group D, for example, has 5 members of type1, 1 member of type2, and 1 member of type3. Groups A ...
1
vote
0answers
115 views

How calculate Gini coefficient (unbiased) and Lorenz Curve with stratified sample?

I'm working with a stratified sample by minimum variance method with 3 levels that becomes at 1176 stratum. The sample comes from finite population of income taxes data. I'm looking for how calculate ...
1
vote
0answers
120 views

Computing Gini Index

I'm trying to compute the Gini coefficient of the following table: ...
1
vote
0answers
362 views

Bootstrapping and comparing Gini coefficients

for my dissertation I need to compare the Gini coefficients of 5 different markets with approx. the sample population size. I would like to do bootstrapping to compare the means (instead of ...
1
vote
0answers
323 views

Arithmetic mean and Gini index in a grouped distribution

In the following table is represented the relative frequency distribution of 100 families related to the class of annual income (in thousands of dollars): ...
1
vote
0answers
315 views

Mapping gini index

In my model, there are 3 players, whose income is function of two arbitrary parameters. Say, ...
0
votes
0answers
38 views

Gini Index Formula

I've read many related articles and posts. The more I read, the more I got confused about 'Gini index' and 'Gini Impurity'. I understood the concept but it seems to me that these things are used ...
0
votes
0answers
30 views

How Gini/AUC of two features is bounded by individual features?

Consider binary classification problem and popular quality measure ROC AUC (which is almost the same as Gini coefficient G = 2*AUC - 1 ). Assume we have two features F1, F2. Question (rough version)...
0
votes
0answers
14 views

How to calculate the Gini coefficient from vectors of income rather than cumulative income?

I want to calculate the Gini coefficient of a dataset of assets for which I the cumulative share of the population $W$ and the monthly returns $Y$. $$G=1-\sum _{{k=0}}^{{n-1}}(X_{{k+1}}-X_{{k}})(...
0
votes
0answers
12 views

Measuring relative variability for variables with different scales II

I'm reformulating this question to see if I might have better luck than OP did at encouraging a response. Consider that you have two univariate datasets at different scales, and need to establish ...
0
votes
0answers
49 views

Calculate Gini coefficient by hand

I have been asked to calculate the Gini coefficient (dispersion of allocation weighting) in 18 sectoral ETFs with historical data available since 2000. Here is an excerpt: ...
0
votes
0answers
32 views

Lorenz Curve for Insurance Pure Premium

I'm testing various pure premium models and want to make a Lorenz curve to compare the models. The goal is to show underwriters which models are better. I'm not sure if I'm doing it correctly. I'm ...
0
votes
0answers
175 views

What does a high GINI in a random forest model imply?

I ran a classification problem using random forest to predict whether a customer will have more than zero revenue in the next 12 months. I am getting a gini of 95 and accuracy of 90% as well. I know ...
0
votes
0answers
15 views

How can I distill revenue diversity into a single number?

I have a dataset of revenue per customer per month. I want to have a measure of the diversity of this revenue, for which (to me) there are two aspects: More customers is better A more equal ...
0
votes
0answers
102 views

Computing Gini index and cross-entropy for a dendrogram

I am trying to calculate purity of clusters obtained through hierarchical clustering. I followed this tutorial here: Decision tree learning My question is: is computing these measures the same for ...
0
votes
0answers
183 views

What is the interval of Gini Index?

Suppose we have 2 classes. C1: 0 C2: 6 The Gini index is: $1−(0÷6)^2−(6÷6)^2 = 0$ C1: 3 C2: 3 The Gini Index is: $1−(3÷6)^...
0
votes
0answers
127 views

Deducing an approximation to the Gini coefficient

Assuming we do not know the Lorenz curve function, If $(X_k, Y_k)$ are the known points on the Lorenz curve, with the $X_k$ indexed in increasing order $(X_{k – 1} < X_k)$, so that: $X_k$ is the ...