You are on page 1of 16

outlook(o) temperature(t) humidity(h) windy (w) play (p)

sunny hot high FALSE no


sunny hot high TRUE no
overcast hot high FALSE yes
rainy mild high FALSE yes
rainy cool normal FALSE yes
rainy cool normal TRUE no
overcast cool normal TRUE yes
sunny mild high FALSE no
sunny cool normal FALSE yes
rainy mild normal FALSE yes
sunny mild normal TRUE yes
overcast mild high TRUE yes
overcast hot normal FALSE yes
rainy mild high TRUE no
Num. Registros 14

Play (no) 5 0.357142857


Play (yes) 9 0.642857143
Entropía(S) 0.940285959

Cálculo para el nodo raíz

yes no yes % no %
outlook (sunny) #NAME? #NAME? 0.4 0.6
outlook (overcast) #NAME? 0 1 0
outlook (rainy) #NAME? #NAME? 0.6 0.4

Entropia(outlook-sunny) 0.970950594
Entropia(outlook-overcast) 0
Entropia(outlook-rainy) 0.970950594
Ganancia(s,o) 0.24674982

yes no yes % no %
temp (hot) #NAME? #NAME? 0.5 0.5
temp (mild) #NAME? #NAME? 0.666666667 0.333333333
temp (cool) #NAME? #NAME? 0.75 0.25

Entropia(temp-hot) 1
Entropia(temp-mild) 0.918295834
Entropia(temp-cool) 0.811278124
Ganancia(s,o) 0.029222566

yes no yes % no %
humidity(high) #NAME? #NAME? 0.428571429 0.571428571
humidity(normal) #NAME? #NAME? 0.857142857 0.142857143

Entropia(humidity-high) 0.985228136
Entropia(humidity-normal) 0.591672779
Ganancia(s,o) 0.151835501

yes no yes % no %
windy(TRUE) #NAME? #NAME? 0.5 0.5
windy(FALSE) #NAME? #NAME? 0.75 0.25

Entropia(windy-TRUE) 1
Entropia(windy-FALSE) 0.811278124
Ganancia(s,o) 0.04812703

Ganancia mayor 0.24674982


Categoría seleccionada outlook(o)
outlook

? ?
?
outlook(o) temperature(t) humidity(h) windy (w) play (p)
sunny hot high FALSE no
sunny hot high TRUE no
sunny mild high FALSE no
sunny cool normal FALSE yes
sunny mild normal TRUE yes

num. filas 5

Play (no) 3 0.6


Play (yes) 2 0.4
Entropía(S) 0.9709505944547

outlook(o) temperature(t) humidity(h) windy (w) play (p)


overcast hot high FALSE yes
overcast cool normal TRUE yes
overcast mild high TRUE yes
overcast hot normal FALSE yes

numero filas 4

Play (no) 0 0
Play (yes) 4 1
Entropía(S) 0

outlook(o) temperature(t) humidity(h) windy (w) play (p)


rainy mild high FALSE yes
rainy cool normal FALSE yes
rainy cool normal TRUE no
rainy mild normal FALSE yes
rainy mild high TRUE no

numero filas 5

Play (no) 2 0.4


Play (yes) 3 0.6
Entropía(S) 0.9709505944547
Rama de sunny

yes no yes % no %
temp (hot) 0 #NAME? 0 1
temp (mild) #NAME? #NAME? 0.5 0.5
temp (cool) #NAME? 0 1 0

Entropia(temp-hot) 0
Entropia(temp-mild) 1
Entropia(temp-cool) 0
Ganancia(s,o) 0.57095059445

yes no yes % no %
humidity(high) 0 #NAME? 0 1
humidity(normal) #NAME? 0 1 0

Entropia(humidity-high) 0
Entropia(humidity-normal 0 outlook
Ganancia(s,o) 0.97095059445
sunny
yes no yes % no %
windy(TRUE) #NAME? #NAME? 0.5 0.5 humidity
windy(FALSE) #NAME? #NAME? 0.3333333 0.6666667

Entropia(windy-TRUE) 1
Entropia(windy-FALSE) 0.91829583405
Ganancia(s,o) 0.01997309402

Ganancia mayor 0.97095059445


Categoría seleccionada humidity(h)

outlook

sunny ?
overcast
humidity
Yes
Yes

Rama de rainy

yes no yes % no %
temp (hot) 0 0 0 0
temp (mild) #NAME? 0 0.6666667 0.3333333
temp (cool) #NAME? 0 0.5 0.5

Entropia(temp-hot) 0
Entropia(temp-mild) 0.91829583405
Entropia(temp-cool) 1
Ganancia(s,o) 0.01997309402

yes no yes % no %
humidity(high) 0 0 0.5 0.5
humidity(normal) #NAME? 0 0.6666667 0.3333333 outlook

Entropia(humidity-high) 1 sunny
Entropia(humidity-normal0.91829583405
Ganancia(s,o) 0.01997309402 humidity

yes no yes % no %
windy(TRUE) 0 0 0 1
windy(FALSE) #NAME? 0 1 0

Entropia(windy-TRUE) 0
Entropia(windy-FALSE) 0
Ganancia(s,o) 0.97095059445

Ganancia mayor 0.97095059445


Categoría seleccionada windy (w)
outlook

?
outlook

rainy
overcast
windy

Yes
outlook(o) temperature(t) humidity(h) windy (w) play (p)
sunny hot high FALSE no
sunny hot high TRUE no
sunny mild high FALSE no

num filas 3

Play (no) 3 1
Play (yes) 0 0
Entropía(S) 0

outlook(o) temperature(t) humidity(h) windy (w) play (p)


sunny cool normal FALSE yes
sunny mild normal TRUE yes

num filas 2

Play (no) 0 0
Play (yes) 2 1
Entropía(S) 0

outlook(o) temperature(t) humidity(h) windy (w) play (p)


rainy cool normal TRUE no
rainy mild high TRUE no

num filas 2

Play (no) 2 1
Play (yes) 0 0
Entropía(S) 0
outlook(o) temperature(t) humidity(h) windy (w) play (p)
rainy mild high FALSE yes
rainy cool normal FALSE yes
rainy mild normal FALSE yes

num filas 3

Play (no) 0 0
Play (yes) 3 1
Entropía(S) 0
outlook

rainy
sunny
overcast
windy
humidity
yes
high

no

outlook

rainy
sunny
overcast
windy
humidity
high yes
normal

no
yes

outlook

rainy
sunny
overcast
windy
humidity
high yes TRUE
normal

no no
yes
outlook

rainy
sunny
overcast
windy
humidity
high yes TRUE FALSE
normal

no no yes
yes

You might also like