Sign up ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

How to calculate probability that a customer bought this item also bought this other item?

I tried using google to no avail. It seems very simple, but I still am confused.

share|cite|improve this question

closed as not a real question by froggie, Austin Mohr, Micah, Alexander Gruber, Davide Giraudo Dec 14 '12 at 10:33

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

What is the application, and what is given? – apnorton Dec 14 '12 at 2:28
@anorton All the items all the customers bought. Like Customer1->X1, Customer2->X2, Customer1->X3 and so on where X1, X2 AND X3 are products. – user1831003 Dec 14 '12 at 2:32

1 Answer 1

up vote 1 down vote accepted

A simple way to do this would be to count all the people who bought product $X$, then count all the people who bought product $X$ and $Y$. This (somewhat) tells you the probability that someone who buys $X$ will buy $Y$.

However, this isn't that great unless you have a list of a lot of purchases.

share|cite|improve this answer
what is the flaw in this method? that was the method ringing in my mind too, but I kept feeling confused. – user1831003 Dec 14 '12 at 2:40
This answer is exactly correct--you want to calculate the conditional probability that a customer bought product Y given that he bought product X, and you can estimate that exactly as proposed. The "flaw" is that you might not have much (or any) relevant data. – Jonathan Christensen Dec 14 '12 at 3:07
You might also be interested in [Association rule learning] ( – Itai Zukerman Dec 14 '12 at 5:42

Not the answer you're looking for? Browse other questions tagged or ask your own question.