I have data in the given form:
Date | Products
2014-01-01 | A,B,C,D
2014-01-02 | M,N
2014-01-03 | B,X
2014-01-06 | M
2014-02-07 | F,B
2014-02-09 | M,A
I want to use some algorithm to identify that M is mostly bought after B, i.e. B and M have some association. Has anyone here ever solved some problem of this sort?