You are on page 1of 4

Binary Representation of POS Transactions

Basket Apple Orange Grapes StrawberryPlums Green AppBanana


1 1 1 1 0 1 1 1
2 0 1 0 0 0 1 1
3 0 0 0 0 0 1 1
4 1 0 0 0 1 0 0
5 1 0 0 0 1 1 1
6 0 1 1 0 0 0 1
7 0 1 1 0 0 0 1

Cosine Similarity (Apple, Orange) 0.288675

Jaccard Coefficient (Apple, Orange) 0.166667

Dice Coeeficient (Apple, Orange) 0.285714

Relationship Co-efficient (Apple, Orange) No. of baskets in which Apple and Orange appear together
No. of times other items appear together with item 2 in all baskets
Apple U Orange
1
1
0
1
1
1
1

appear together
ith item 2 in all baskets
Apple Orange Grapes StrawberryPlums Green AppBanana
Apple 0.285714 0.333333 0 1 0.571429
Orange
Grapes
Strawberry
Plums
Green Apple
Banana
Apple Orange Grapes StrawberryPlums Green AppBanana
Apple
Orange
Grapes
Strawberry
Plums
Green Apple
Banana

You might also like