chrisricard.com
Archive aisle lined with shelves of case boxes and card-catalog drawers

Association Analysis Basic Concepts and Algorithms

July 17, 2026 · 609 KB

A data mining textbook chapter on association analysis, explaining frequent itemsets, association rules, the Apriori and FP-growth algorithms and how to judge which patterns matter.

Overview

Businesses collect vast amounts of data, such as the purchase records gathered at grocery checkouts. Chapter 6 of a data mining textbook, "Association Analysis: Basic Concepts and Algorithms," explains how to find interesting relationships hidden in such data. It runs from page 327 and includes bibliographic notes and exercises.

The Basic Idea

Using a small table of "market basket" transactions, the chapter shows how a rule such as {Diapers} → {Beer} can suggest that customers who buy one item often buy another. Retailers can use such rules for cross-selling, promotions, inventory and customer relationship management. The same techniques apply to bioinformatics, medical diagnosis, web mining and Earth science, where patterns may reveal links among ocean, land and atmospheric processes.

The chapter is organised around two problems:

  • Mining patterns from large data sets can be computationally expensive
  • Some discovered patterns may be spurious, occurring purely by chance

Key Concepts and Algorithms

The chapter defines the core vocabulary, including binary representation of transactions, itemsets, support counts and confidence. It then covers:

  • Frequent itemset generation, using a lattice structure and the Apriori principle to prune candidates, with hash trees for efficient support counting
  • Rule generation from frequent itemsets, pruning low-confidence rules
  • Compact representations through maximal and closed frequent itemsets
  • Alternative methods for generating frequent itemsets, including horizontal and vertical data layouts
  • The FP-growth algorithm, which compresses data into an FP-tree and mines it without generating candidates

The Apriori principle does much of the work. If an itemset is frequent, all its subsets must be frequent too, and if an itemset is infrequent, all its supersets can be pruned at once without counting their support. In the chapter's small grocery example, applying the principle cuts the number of candidate itemsets by 68%, from 41 under brute force to 13. The algorithm builds frequent itemsets level by level, generating larger candidates only from smaller ones already found to be frequent. Pseudocode accompanies each algorithm, along with worked examples using the same set of grocery transactions so readers can follow each step.

Evaluating Patterns

Because algorithms can produce huge numbers of patterns, the chapter discusses how to measure which ones are interesting. It explains the limits of confidence through a tea-and-coffee example and compares alternative objective measures, such as interest factor, correlation and all-confidence, by properties like inversion, null addition and scaling. A grade-and-gender example illustrates why scaling invariance matters. The chapter also covers subjective approaches and visualisation, and examines how skewed support distributions affect mining algorithms, including cross-support patterns.

Bibliographic Notes

The notes trace the history of association rule mining and its extensions, including constraint-based mining, methods to rank and filter redundant rules, statistical tests to avoid spurious patterns and the multiple comparison problem. Applications include web mining, document analysis, telecommunications alarm diagnosis, network intrusion detection and bioinformatics.

Why It Matters

The chapter is a thorough, widely used introduction to the techniques behind market basket analysis and recommendation in retail and beyond.

Page 1 of Association Analysis Basic Concepts and Algorithms
Page 1 · click to open the full PDF
Open full PDF (609 KB) ↗

More from Marketing & Business Research

See all 64 in Marketing & Business Research →