Table 1 :
Transaction ID | Items |
1 | Apple, Cereal, Diapers |
2 | Beer, Cereal, Eggs |
3 | Apple, Beer, Cereal, Eggs |
4 | Beer, Eggs |
Table 2 :
Items | Transaction ID | Support of item |
1 | 2 | 3 | 4 |
Apple | 1 | 0 | 1 | 0 | 2/4 = 50% | |
Beer | 0 | 1 | 1 | 1 | 3/4 = 75% |
Cereal | 1 | 1 | 1 | 0 | 3/4 = 75% |
Diapers | 1 | 0 | 0 | 0 | 1/4 = 25% |
Eggs | 0 | 1 | 1 | 1 | 3/4 = 75% |
Table 3 :
Itemset | Transaction ID | Support of itemset |
1 | 2 | 3 | 4 |
{Apple, Beer} | 0 | 0 | 1 | 0 | 1/4 = 25% | |
{Apple, Cereal} | 1 | 0 | 1 | 0 | 2/4 = 50% | |
{Apple, Eggs} | 0 | 0 | 1 | 0 | 1/4 = 25% | |
{Beer, Cereal} | 0 | 1 | 1 | 0 | 2/4 = 50% |
{Beer, Eggs} | 0 | 1 | 1 | 1 | 3/4 = 75% |
{Cereal, Eggs} | 0 | 1 | 1 | 0 | 2/4 = 50% |
Table 4 :
Itemset | Transaction ID | Support of itemset |
1 | 2 | 3 | 4 |
{Beer, Cereal, Eggs} | 0 | 1 | 1 | 0 | 2/4 = 50% |
Table 5 :
Frequent Itemset | Support | Size |
{Apple} | 2/4 = 50% | 1 |
{Beer} | 3/4 = 75% | 1 |
{Cereal} | 3/4 = 75% | 1 |
{Eggs} | 3/4 = 75% | 1 |
{Apple, Cereal} | 2/4 = 50% | 2 |
{Beer, Cereal} | 2/4 = 50% | 2 |
{Beer, Eggs} | 3/4 = 75% | 2 |
{Cereal, Eggs} | 2/4 = 50% | 2 |
{Beer, Cereal, Eggs} | 2/4 = 50% | 3 |
|