Skip to main content
Log in

Finding associations and computing similarity via biased pair sampling

  • Regular paper
  • Published:
Knowledge and Information Systems Aims and scope Submit manuscript

Abstract

Sampling-based methods have previously been proposed for the problem of finding interesting associations in data, even for low-support items. While these methods do not guarantee precise results, they can be vastly more efficient than approaches that rely on exact counting. However, for many similarity measures no such methods have been known. In this paper, we show how a wide variety of measures can be supported by a simple biased sampling method. The method also extends to find high-confidence association rules. We demonstrate theoretically that our method is superior to exact methods when the threshold for “interesting similarity/confidence” is above the average pairwise similarity/confidence, and the average support is not too low. Our method is particularly advantageous when transactions contain many items. We confirm in experiments on standard association mining benchmarks that we obtain a significant speedup on real data sets. Reductions in computation time of over an order of magnitude, and significant savings in space, are observed.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Aggarwal A, Vitter JS (1988) The input/output complexity of sorting and related problems. Commun. ACM 31(9): 1116–1127

    Article  MathSciNet  Google Scholar 

  2. Aggarwal CC, Yu PS (1998) A new framework for itemset generation. In: Proceedings of the ACM SIGACT–SIGMOD–SIGART symposium on principles of database systems (PODS ’98). ACM Press, New York, pp 18–24

  3. Agrawal R, Mehta M, Shafer JC, Srikant R, Arning A, Bollinger T (1996) The quest data mining system. In: Proceedings of the 2nd international conference of knowledge discovery and data mining (KDD ’96). AAAI Press, CA, pp 244–249

  4. Agrawal R, Srikant R (1994) Fast algorithms for mining association rules in large databases. In: International conference on very large data bases (VLDB ’94). Morgan Kaufmann Publishers, Inc., CA, pp 487–499

  5. Amossen RR, Pagh R (2009) Faster join-projects and sparse matrix multiplications. In: Proceedings of database theory—12th international conference (ICDT ’09), vol 361 of ACM international conference proceeding series. ACM, New York, pp 121–126

  6. Arasu A, Ganti V, Kaushik R (2006) Efficient exact set-similarity joins. In: Proceedings of the 32nd international conference on very large data bases (VLDB ’06). ACM, New York, pp 918–929

  7. Brijs T, Swinnen G, Vanhoof K, Wets G (1999) Using association rules for product assortment decisions: a case study. In: Proceedings of the fifth ACM SIGKDD international conference on knowledge discovery and data mining (KDD ’99). ACM Press, New York, pp 254–260

  8. Brin S, Motwani R, Silverstein C (1997) Beyond market baskets: generalizing association rules to correlations. SIGMOD Rec ACM Special Interest Group Manag Data 26(2): 265–276

    Article  Google Scholar 

  9. Brin S, Motwani R, Ullman JD, Tsur S (1997) Dynamic itemset counting and implication rules for market basket data. In: Proceedings of the ACM-SIGMOD international conference on management of data (SIGMOD ’97), vol. 26(2) of SIGMOD record (ACM special interest group on management of data). ACM Press, New York, pp 255–264

  10. Broder AZ, Charikar M, Frieze AM, Mitzenmacher M (2000) Min-wise independent permutations. J Comput Syst Sci 60(3): 630–659

    Article  MathSciNet  MATH  Google Scholar 

  11. Campagna A, Pagh R (2010) On finding similar items in a stream of transactions. In: Proceedings of the 10th IEEE international conference on data mining workshops (ICDMW 2010). IEEE Computer Society, Silver Spring, pp 121–128

  12. Charikar MS (2002) Similarity estimation techniques from rounding algorithms. In: Proceedings of the thiry-fourth annual ACM symposium on theory of computing (STOC ’02). ACM, New York, pp 380–388

  13. Chaudhuri S, Ganti V, Kaushik R (2006) A primitive operator for similarity joins in data cleaning. In: Proceedings of the 22nd international conference on data engineering (ICDE 2006). IEEE Computer Society, Silver Spring, p 5

  14. Cohen E, Datar M, Fujiwara S, Gionis A, Indyk P, Motwani R, Ullman JD, Yang C (2001) Finding interesting associations without support pruning. IEEE Trans Knowl Data Eng 13(1): 64–78

    Article  Google Scholar 

  15. Cohen E, Lewis DD (1999) Approximating matrix multiplication for pattern recognition tasks. J Algorithms 30(2): 211–252

    Article  MathSciNet  MATH  Google Scholar 

  16. Coppersmith D, Winograd S (1990) Matrix multiplication via arithmetic progressions. J Symb Comput 9(3): 251–280

    Article  MathSciNet  MATH  Google Scholar 

  17. Cormode G, Hadjieleftheriou M (2008) Finding frequent items in data streams. PVLDB 1(2): 1530–1541

    Google Scholar 

  18. Cormode G, Korn F, Tirthapura S (2008) Exponentially decayed aggregates on data streams. In: Proceedings of the 24th international conference on data engineering (ICDE 2008). IEEE, New York, pp 1379–1381

  19. Cormode G, Muthukrishnan S (2005) What’s hot and what’s not: tracking most frequent items dynamically. ACM Trans Database Syst 30(1): 249–278

    Article  MathSciNet  Google Scholar 

  20. Demaine ED, López-Ortiz A, Munro JI (2002) Frequency estimation of internet packet streams with limited space. In: Proceedings of the 10th annual European symposium algorithms (ESA ’02), pp 348– 360

  21. Geurts K, Wets G, Brijs T, Vanhoof K (2003) Profiling high frequency accident locations using association rules. In: Proceedings of the 82nd annual transportation research board, p 18

  22. Goethals B, Zaki MJ (2004) Advances in frequent itemset mining implementations: report of fimi’03’. ACM SIGKDD Explor 6(1): 109–117

    Article  Google Scholar 

  23. Goethals B, Zaki MJ (eds) (2003) Proceedings of the ICDM 2003 workshop on frequent itemset mining implementations (FIMI ’03), Vol 90 of CEUR workshop proceedings. CEUR-WS.org

  24. Han J, Kamber M (2006) Data mining: concepts and techniques, 2nd edn. Morgan Kaufmann, CA

    MATH  Google Scholar 

  25. Indyk P (1999) A small approximately min-wise independent family of hash functions. In: Proocedings of the 10th annual ACM-SIAM symposium on discrete algorithms (SODA’99), pp 454–456

  26. Indyk P, Motwani R, Raghavan P, Vempala S (1997) Locality-preserving hashing in multidimensional spaces. In: Proceedings of the twenty-ninth annual ACM symposium on theory of computing (STOC ’97), pp 618–625

  27. Kohavi R, Brodley C, Frasca B, Mason L, Zheng Z (2000) KDD-Cup 2000 organizers’ report: peeling the onion. SIGKDD Explor 2(2): 86–98

    Article  Google Scholar 

  28. Lee Y-K, Kim W-Y, Cai YD, Han J (2003) Comine: Efficient mining of correlated patterns. In: Proceedings of the IEEE international conference on data mining (ICDM ’03). IEEE Computer Society, Silver Spring, pp 581–584

  29. Bayardo RJ, Jr. Goethals B, Zaki MJ (eds) (2004) Proceedings of the IEEE ICDM workshop on frequent itemset mining implementations (FIMI ’04), vol 126 of CEUR workshop proceedings, CEUR-WS.org

  30. Metwally A, Agrawal D, Abbadi AE (2005a) , Efficient computation of frequent and top-k elements in data streams. In: Proceedings of database theory—10th international conference (ICDT 2005), vol 3363 of lecture notes in computer science. Springer, Berlin, pp 398–412

  31. Metwally A, Agrawal D, Abbadi AE (2005b) , Efficient computation of frequent and top-k elements in data streams. Technical Report 23, University of California, Santa Barbara, USA

  32. Motwani R, Raghavan P (1995) Randomized algorithms. Cambridge University Press, Cambridge

    MATH  Google Scholar 

  33. Omiecinski E (2003) Alternative interest measures for mining associations in databases. IEEE Trans Knowl Data Eng 15(1): 57–69

    Article  MathSciNet  Google Scholar 

  34. Park JS, Chen M-S, Yu PS (1995) An effective hash-based algorithm for mining association rules. SIGMOD Rec ACM Special Interest Group Manag Data 24(2): 175–186

    Google Scholar 

  35. Savasere A, Omiecinski E, Navathe SB (1995) An efficient algorithm for mining association rules in large databases. In: Proceedings of the 21st international conference on very large data bases (VLDB ’95). Morgan Kaufmann Publishers, CA, pp 432–444

  36. Toivonen H (1996) Sampling large databases for association rules. In: Proceedings of the 22nd international conference on very large data bases (VLDB ’96). Morgan Kaufmann Publishers, pp 134–145

  37. Wu X, Zhang C, Zhang S (2004) Efficient mining of both positive and negative association rules. ACM Trans Inf Syst 22: 381–405

    Article  Google Scholar 

  38. Xiao C, Wang W, Lin X, Shang H (2009) Top-k set similarity joins. In: Proceedings of the 25th international conference on data engineering, (ICDE ’09). IEEE, London, pp 916–927

  39. Xiao C, Wang W, Lin X, Yu JX (2008) Efficient similarity joins for near duplicate detection. In: Proceedings of the 17th international conference on world wide web, (WWW ’08). ACM, New York, pp 131–140

  40. Yuster R, Zwick U (2005) Fast sparse matrix multiplication. ACM Trans Algorithms 1(1): 2–13

    Article  MathSciNet  Google Scholar 

  41. Zhang S, Wu X, Zhang C, Lu J (2008) Computing the minimum-support for mining frequent patterns. Knowl Inf Syst 15(2): 233–257

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Rasmus Pagh.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Campagna, A., Pagh, R. Finding associations and computing similarity via biased pair sampling. Knowl Inf Syst 31, 505–526 (2012). https://doi.org/10.1007/s10115-011-0428-y

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10115-011-0428-y

Keywords

Navigation