Gini Index
- GINI(M)=1−(1062+1042)=0.48
- GINI(F)=1−(1042+1062)=0.48
- GINIsplit(Gender)=2010⋅0.48+2010⋅0.48=0.48
| A | B | Total |
|---|
| High | 1 | 3 | 4 |
| Medium | 8 | 0 | 8 |
| Low | 1 | 7 | 8 |
| 10 | 10 | |
- GINI(High)=1−(412+432)=0.375
- GINI(Medium)=1−(882)=0
- GINI(Low)=1−(812+872)=0.21875
- GINIsplit(Income)=204⋅0.375+208⋅0+208⋅0.21875=0.1625
| A | B | Total |
|---|
| Excellent | 3 | 5 | 8 |
| Fair | 3 | 2 | 5 |
| Poor | 4 | 3 | 7 |
| 10 | 10 | |
- GINI(Excellent)=1−(832+852)=0.46875
- GINI(Fair)=1−(532+522)=0.48
- GINI(Poor)=1−(742+732)=0.48979
- GINIsplit(Credit Rating)=208⋅0.46875+205⋅0.48+207⋅0.490=0.4789285
Neural Network
TYPO: bottom most should be 4/3

Hidden layer uses ReLU activation function.
Output uses identity function.
ReLU(x)=max(0,x)
MSE=n1∑i=1n(y^i−yi)2
- xn=(1,2,3)
h1=0.5⋅1+2⋅2−1⋅3=1.5
h2=1⋅1=1
y^=2⋅1.5−2⋅2=1
- xn=(1,2,3)
h1=1⋅3+3⋅1=6
h2=1⋅−1−2⋅0.5+3⋅34=2
y^=−31⋅6+3⋅2=4
- xn=(5,−2,0)
h1=0.5⋅5−2⋅2=−1.5 (ReLU redefines as 0)
h2=5⋅1−2⋅0=5
y^=−5⋅2=−10
- xn=(5,−2,0)
h1=3⋅5=15
h2=−1⋅5−2⋅−0.5=−4 (ReLU redefines as 0)
y^=15⋅−31=−5
- MSE=21((1−5)2+(−10−(−3))2)=32.5
- MSE=21((4−5)2+(−5−(−3))2)=2.5
- xn=(1,1,0)
h1=3
h2=−1+−0.5=−1.5 (ReLU redefines as 0)
y^=3⋅−31=−1