exam for studenr

Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

1.

A what the GINI of each index


Gin =1-[ + + + ]
Total GIN =1-[ ]
GIN =0.58
THEN total GIN=0.58
EACH GIN INDEX
WEATHER( SUNNY, WINDY ,RAINY)
GIN(SUNNY ,2 TENNIS, 1 CINIMA) =1-[ + ]
GIN(S) =0.444
GIN(WINDY ,3 CINIMA , 1 SHOPING)=1-( + ]
GIN (W) =1-[ ]
GIN(W) =0.9
GIN(RAINY ,2 CINIMA , 1 STAY IMN) =1-[ + ]
GIN(R) =1-[ ] GIN(R) =0.445
Weighted of gin =0.444* + 0.9* + 0.445 ∗ =0.6267

Parent ( yes ,no) then the gin is


Gin(yes ,5 are cinema ) =1-[ ]
Gin(yes)=0
Gin(no, 2 tennis,1 stay in ,1 cinema ,1 shoping )=1-[ + + + ]
Gin
Gin(no) =1-[ ] =0.72
Weighted of gin= 0* + *0.72 =0.36
Gin( money ,poor and rich)
Gin(poor, 3 cinema)=1-[ ] =0
Gin(rich ,3 cinema ,2 tannis , 1 stay in, 1 SHOPING) =1-[ + + + ]
Gin(R) =1-[ ] =0.694
Weighted OF GIN IN MONY=0* + ∗ 0.694 = 0.4858

Weighted OF WEATHER GIN =0.6267


Weighted of gin PARENT =0.36
Weighted OF GIN IN MONY=0.4858
THENB GINI IS SELECTED THE SMOLLEST ONE PARRENT IS THE ROOT NODE VALUE =0.36
PAREN
T

YESS NO

You might also like