You are on page 1of 8

Binary Representation of POS Transactions

Basket Apple Orange Grapes StrawberryPlums Green AppBanana


1 1 1 1 0 1 1 1
2 0 1 0 1 0 1 1
3 0 0 0 0 0 1 1
4 1 0 0 1 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
Basket Apple Orange Grapes StrawberryPlums Green AppBanana
1 1 1 1 0 1 1 1
2 0 1 0 1 0 1 1
3 0 0 0 0 0 1 1
4 1 0 0 1 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

Support 0.428571 0.571429 0.428571 0.285714 0.428571 0.571429 0.857143

Confidence(Apple, Orange) 0.333333 Lift(Apple => Orange) 0.583333


Confidence(Apple, Grapes) 0.333333 0.777778
Confidence(Apple,Strawberry) 0.333333 1.166667

Support(Apple, Strawberry) 0.142857


Confidence(Apple,Strawberry,Plums) 1
Lift() 2.333333
AppleStrawberry Plums
0 1
0 0
0 0
1 1
0 1
0 0
0 0

Apple + Strawbeery Plums


Apple Orange Grapes Strawberry Plums Green Apple Banana
Apple 0 0.285714 0.333333 0.4 1 0.5714285714 0.444444
Orange 0.285714 0 0.857143 0.33333333333 0.285714 0.5 0.8
Grapes 0 0 0.333333 0.2857142857 0.666667
Strawberry 0 0.4 0.3333333333 0.25
Plums 0 0.5714285714 0.444444
Green Apple 0 0.8
Banana 0

Fruits in your Basket


Apples StrawberryGreenApple Max SimilarityRank
Fruits not in Orange 0.285714 0.333333 0.5 0.5 3
the basket Grapes 0.333333 0 0.28571428571 0.3333333333 4
Plums 1 0.4 0.57142857143 1 1
Banana 0.444444 0.25 0.8 0.8 2

Fruits in your Basket


Oranges Grapes GreenApple Max SimilarityRank
Apples 0.285714 0.333333 0.57142857143 0.5714285714 2
Banana 0.8 0.666667 0.8 0.8 1
Plums 0.285714 0.333333 0.57142857143 0.5714285714 2
Strawberry 0.333333 0 0.33333333333 0.3333333333 3
Apple Banana
Apple 0 1
Banana 0 0
Apple Orange Grapes Strawberry Plums Green Apple
Apple 0 1 1 1 3 2
Orange 1 0 3 1 1 2
Grapes 1 3 0 0 1 1
Strawberry 1 1 0 0 1 1
Plums 3 1 1 1 0 2
Green Apple 2 2 1 1 2 0
Banana 2 4 3 1 2 4

Relationship Coefficient
Apple Orange Grapes Strawberry Plums Green Apple
Apple 0 0.1 0.1 0.1 0.3 0.2
Orange 0.083333333 0 0.25 0.083333333 0.083333333 0.166666667
Grapes 0.111111111 0.333333333 0 0 0.111111111 0.111111111
Strawberry 0.2 0.2 0 0 0.2 0.2
Plums 0.3 0.1 0.1 0.1 0 0.2
Green Apple 0.166666667 0.166666667 0.083333333 0.083333333 0.166666667 0
Banana 0.125 0.25 0.1875 0.0625 0.125 0.25
Banana
2
4
3
1
2
4
0

Banana
0.2
0.333333333
0.333333333
0.2
0.2
0.333333333
0

You might also like