Problem 47879. Create co-occurrence matrix
Consider following transaction dataset;
We can transform this dataset to a binary format and then create co-occurence matrix as follow;
Co-occurence matrix shows how many times product pairs are bought together in market baskets (transactions). For example apple and tea bought together in two market baskets, milk and lemon never bought together and so on. It is a symmetric matrix.
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers12
Suggested Problems
-
Given an unsigned integer x, find the largest y by rearranging the bits in x
1697 Solvers
-
72 Solvers
-
Remove white space from the string
189 Solvers
-
Rotate input square matrix 90 degrees CCW without rot90
594 Solvers
-
301 Solvers
More from this Author92
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!