Sie sind auf Seite 1von 1

Market Basket Tutorial

Market Basket analysis looks at the frequency that different products are purchased together

EXAMPLE DATA FOR PRODUCTS A & B

 

count

Probability

P(…)

n

1000

---

A

80

80/1000 = 0.08

B

100

100/1000 = 0.10

A & B

20

20/1000 = 0.02

make sure to not mix up A and B while doing these computationsfollow the model

If A then B

Support both A and B are purchased together

(&) =

&

=

20

1000 = 0.02

Confidence probability of A given that B is already in the basket words]

[this is what P(A|B) says in

(|) =

&

=

20

80 = 0.25

Benchmark Confidence be sure to do this for the consequent, or the product after the then clause

 

100

 

() =

=

1000 = 0.10

 

0.25

=

0.10 = 2.50

 

0.02

0.02

 

() ∙ () =

0.08 ∙ 0.10 =

0.008 = 2.50

Lift

alternately, this formula could be used:

a lift > 1 means that the two products have a useful association; higher implies stronger

updated 25 nov 2013