Tuesday, March 20, 2012

Pairing using associations

Hello,

I’m trying to find pairs in my data.

A pair is two (and only two) products – both were bought by two different customers.

The more customers bought the same two products, the stronger the pair is.

So the rules I’m looking for should be something like that:

X <=> Y & importance of the rule. That’s it.

I thought association algorithm will do the work and I tried to play with the parameters, but I just couldn’t get there.

Is it possible doing it with association algorithm?

(If it’s not possible) what are my options? Writing a plug-in?

You should be able to simply set MAXIMUM_ITEMSET_SIZE to 2 and MINIMUM_SUPPORT to 2. This will give you all of the pairs of items that appear in at least two transactions. Note that this will likely be very large.

If you want every itemset to turn into a rule, you can set MINIMUM_PROBABILITY to some absurdly low number - e.g. 0.000001

No comments:

Post a Comment