Gain d'information
Age | ncl | scl | hcl |
young | 4 | 2 | 2 | 8 |
pre-presbyopic | 5 | 2 | 1 | 8 |
presbyopic | 6 | 1 | 1 | 8 |
Classe | 15 | 5 | 4 | 24 |
- H(Classe) = -15/24 log2 15/24 - 5/24 log2 5/24 - 4/24 log2 4/24 = 1,32
- H(Classe|young) = -4/8 log2 4/8 - 2/8 log2 2/8 - 2/8 log2 2/8 = 1,5
- H(Classe|pre-presbyopic) = -5/8 log2 5/8 - 2/8 log2 2/8 - 1/8 log2 1/8 = 1,298795
- H(Classe|presbyopic) = -6/8 log2 6/8 - 1/8 log2 1/8 - 1/8 log2 1/8 = 1,061278
- GainInfo(Age) = 1,32 - 8/24*1,5 - 8/24*1,298795 -8/24*1,061278 = 0,0393965
- GainInfo(Prescription) = 0,03951084
- GainInfo(Astigmatic) = 0,3770052
- GainInfo(Tear) = 0,5487949