Gini Index in Excel

Anonymousg

New Member
Joined
May 3, 2015
Messages
2
Hello,


How should I create Gini index in excel for this table?
no. outcome venue A B C
1 W H y y y
2 L A y n y
3
4
.
.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Pardon? What does any of that data mean?
 
Upvote 0
[TABLE="width: 500"]
<tbody>[TR]
[TD]no[/TD]
[TD]outcome[/TD]
[TD]venue[/TD]
[TD]a[/TD]
[TD]b[/TD]
[TD]c[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Won[/TD]
[TD]Home[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Lost[/TD]
[TD]abroad[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]no[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]Lost[/TD]
[TD]abroad[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[TD]yes[/TD]
[/TR]
</tbody>[/TABLE]


This is related to building a decision tree model for predicting the outcome of a cricket match using the information provided in the sample data and I need to identify a split for Gini index.
 
Last edited:
Upvote 0
Here's an example of the calculation described in the paper:

[Table="width:, class:grid"][tr][td]Row\Col[/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][td]
E​
[/td][td]
F​
[/td][/tr][tr][td]
6​
[/td][td]
Innings, N
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
7​
[/td][td]
10​
[/td][td][/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
8​
[/td][td]
Inning
[/td][td]
Runs
[/td][td][/td][td]
Avg
[/td][td]
15.7​
[/td][td]E8: =AVERAGE(B9:B18)[/td][/tr]
[tr][td]
9​
[/td][td]
1​
[/td][td]
20​
[/td][td][/td][td]
G
[/td][td]
0.155​
[/td][td]E9: {=1/(2*N^2 * Avg) * SUM(ABS(B9:B18 - TRANSPOSE(B9:B18)))}[/td][/tr]
[tr][td]
10​
[/td][td]
2​
[/td][td]
14​
[/td][td][/td][td]
CAA
[/td][td]
13.3​
[/td][td]E10: =Avg*(1-G)[/td][/tr]
[tr][td]
11​
[/td][td]
3​
[/td][td]
8​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
12​
[/td][td]
4​
[/td][td]
19​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
13​
[/td][td]
5​
[/td][td]
18​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
14​
[/td][td]
6​
[/td][td]
10​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
15​
[/td][td]
7​
[/td][td]
19​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
16​
[/td][td]
8​
[/td][td]
17​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
17​
[/td][td]
9​
[/td][td]
21​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[tr][td]
18​
[/td][td]
10​
[/td][td]
11​
[/td][td][/td][td][/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top