# Data mining

> Canonical: https://skillalmanac.com/glossary/data-mining | Last verified: 2026-11-24 | Index status: index-eligible

Data mining finds patterns or models in data. IBM uses the term broadly alongside knowledge discovery in databases (KDD); Fayyad and colleagues distinguish mining as the algorithmic step within the broader KDD process.

Also called: data mining techniques, data mining definition.

## In plain language

Data mining can search records for unanticipated patterns or fit a model for a preselected classification or regression target. A shop might look through years of receipts to see which products tend to be bought together. The work uses statistics and machine learning, which are methods that let software find regularities in examples. The limits: a pattern found in past records may be a coincidence, or may not hold for new customers, and it does not explain why people behave that way. Results need testing on data the search did not see. If the records are about people, privacy and consent also need attention before you start.

## Technical definition

IBM describes data mining as the use of machine learning and statistical analysis to uncover patterns in large data sets, and lists techniques such as association rules, classification, clustering, decision trees, k-nearest neighbor, neural networks, predictive analytics and regression analysis. IBM adds that machine learning algorithms and AI can automate the analysis. Stanford's CS246 course, which succeeded CS345A: Data Mining, covers data mining and machine learning algorithms for analysing very large amounts of data, with an emphasis on parallel processing tools such as MapReduce and Spark.

## How it shows up when you use agents

Data mining is older than coding agents, but you meet it when you ask an agent to look through a large export for patterns: which customers churn, which errors occur together, which products sell as a set. The agent is doing the pattern search described by IBM: methods such as clustering or association rules applied to records.

What breaks when it is misunderstood. People treat a pattern as a finding without testing it on rows the search did not use. They also treat the output as an explanation, when it is a description of past data. See [Machine learning](/glossary/machine-learning) and [Unsupervised learning](/glossary/unsupervised-learning).

Next actions. Ask the agent what question the search answers, which technique it used, and how it checked that the pattern holds on held-out rows. Check the split with [split-leakage-check](/skills/skill-almanac/split-leakage-check). Profile the table first with [data-analysis-eda](/skills/skill-almanac/data-analysis-eda).

## Worked example (illustrative)

Choose three hypothetical baskets: {A,B}, {A}, and {A,B}. A and B co-occur in two of the three baskets. Counting this pattern illustrates a mining step; selection, cleaning and interpretation belong to the broader workflow. No dataset was mined here.

## Common confusions

- **Data mining versus machine learning.** IBM describes data mining as using machine learning and statistical analysis. Machine learning is one of the tools; data mining names the activity of uncovering patterns in large data sets.
- **Data mining versus KDD.** IBM says data mining is also known as knowledge discovery in databases, so that source uses the names broadly. Fayyad, Piatetsky-Shapiro and Smyth distinguish the mining algorithm step from KDD, which also includes selection, preparation and interpretation.
- **Pattern versus explanation.** A pattern in past data does not say why it appears. Test it before acting on it.
- **Myth.** Data mining needs a labelled target. IBM lists clustering and association rules among its techniques, and neither is described as needing a label given in advance.

## Worked examples in this catalogue

### [data-analysis-eda](https://skillalmanac.com/skills/skill-almanac/data-analysis-eda)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A fixed exploratory-analysis procedure and CSV profiler that keeps findings descriptive, evidenced and caveated.

Why it exercises the concept: Looking at a table to see what is in it is the early, descriptive part of finding patterns. This skill keeps findings caveated and does not fit models. The catalogue has no data-mining skills, so it is a contrast case.

### [huggingface-datasets](https://skillalmanac.com/skills/huggingface/huggingface-datasets)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: The skill reads Hugging Face datasets through the Dataset Viewer API: metadata, rows, search and filters.

Why it exercises the concept: Browsing a public data set's rows and filters is a way to see the raw material that data mining works on. The skill reads data; it does not mine it.

### [split-leakage-check](https://skillalmanac.com/skills/skill-almanac/split-leakage-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A check of train, validation and test files for duplicates, shared groups, time and label leakage, printed as JSON.

Why it exercises the concept: A pattern found in one slice of data should be tested on rows the search never saw. This check looks for leakage between such slices. It does not find patterns.

### [Claude Code](https://skillalmanac.com/tools/claude-code)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Claude Code's overview page describes it as an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.

Why it exercises the concept: Hypothetical task: ask a coding agent to prepare a script counting item co-occurrences in a supplied table. No script or mining result is claimed to have been run here.

## Related terms

- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [Unsupervised learning](https://skillalmanac.com/glossary/unsupervised-learning.md)
- [Supervised learning](https://skillalmanac.com/glossary/supervised-learning.md)
- [Classification](https://skillalmanac.com/glossary/classification.md)
- [Decision tree](https://skillalmanac.com/glossary/decision-tree.md)
- [k-means clustering](https://skillalmanac.com/glossary/k-means.md)

## Sources

- [From Data Mining to Knowledge Discovery in Databases (1996), Data Mining and KDD / Basic Definitions](https://www.kdnuggets.com/gpspubs/aimag-kdd-overview-1996-Fayyad.pdf), Fayyad, Piatetsky-Shapiro and Smyth (accessed 2026-11-25)
- [What is data mining?](https://www.ibm.com/think/topics/data-mining), IBM (accessed 2026-11-24)
- [CS246: Mining Massive Data Sets](https://web.stanford.edu/class/cs246/), Stanford University (accessed 2026-11-24)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-24. [Glossary index](https://skillalmanac.com/glossary.md).
