outlook temperature humidity windy play 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 Click on Associate and then on Start. You get the following 10 association rules in Associator output window:
1. humidity=normal windy=FALSE 4 ==> play=yes 4 conf:(1)
2. temperature=cool 4 ==> humidity=normal 4 conf:(1)
3. outlook=overcast 4 ==> play=yes 4 conf:(1)
4. temperature=cool play=yes 3 ==> humidity=normal 3 conf:(1)
5. outlook=rainy windy=FALSE 3 ==> play=yes 3 conf:(1)
6. outlook=rainy play=yes 3 ==> windy=FALSE 3 conf:(1)
7. outlook=sunny humidity=high 3 ==> play=no 3 conf:(1)
8. outlook=sunny play=no 3 ==> humidity=high 3 conf:(1)
9. temperature=cool windy=FALSE 2 ==> humidity=normal play=yes 2 conf:(1)
10. temperature=cool humidity=normal windy=FALSE 2 ==> play=yes 2 conf:(1)
One-item sets | Two-item sets | Three-item sets | Four-item sets |
Outlook = Sunny (5)
Temperature = Cool (4) ...
|
Outlook = Sunny
Temperature = Mild (2) Outlook = Sunny
...
|
Outlook = Sunny
Temperature = Hot Humidity = High (2) Outlook = Sunny
...
|
Outlook = Sunny
Temperature = Hot Humidity = High Play = No (2) Outlook = Rainy
|
3. Generating rules from item sets. Once all item sets with minimum support have been generated, we can turn them into rules.
A | B | C | D | ... |
1 | 0 | 1 | 0 | ... |
0 | 1 | 0 | 1 | ... |
... | ... | ... | ... | ... |
diapers | beers | milk | bread | ... |
1 | 1 | 0 | 1 | ... |
1 | 1 | 1 | 0 | ... |
... | ... | ... | ... | ... |
age | computer | computer_games | ... |
20 | 1 | 1 | ... |
35 | 1 | 0 | ... |
... | ... | ... | ... |
outlook=sunny | outlook<>sunny | Row total | |
play=yes | 2 | 7 | 9 |
play=no | 3 | 2 | 5 |
Column total | 5 | 9 | 14 |