liveBook · Manning

Data mining

As explained in Grokking Statistics

Data mining is the process of discovering patterns or relationships by analyzing data, often before formulating a specific hypothesis.

Data mining discovers possible patterns or relationships by collecting data first and forming hypotheses from what appears in it. It can reveal useful questions, but open-ended searching also increases the risk of spurious findings. section 1.7 section 2.2

Use data mining as an exploratory process, then examine the result carefully:

  • Collect or obtain data, recognizing that machine learning may proceed directly to fitting a model. section 1.7
  • Inspect the data for patterns, relationships, or other useful signals before committing to a specific hypothesis. section 1.7
  • Fit a model or other analysis to the apparent pattern, then test it on data it has not seen. section 1.7
  • Question the data’s context, representativeness, missing information, and possible bias before treating the finding as reliable. section 2.2

Photographs and golf ability

Suppose photographs are collected to decide whether someone is good at golf. A fist-pump may celebrate another player, and a scorecard may be forged. Narrowing the objective and collecting relevant evidence is safer than mining an unrestricted family-photo archive. Searching repeatedly for a favorable statistical result can become p-hacking: selecting models or data because they produce a desired low p-value rather than a realistic conclusion. section 2.2 section 9.12

Figure 1.1 An example of the four steps in applying statistical analysis to data, studying whether temperature affects sports drink sales

Trace the four-stage analysis of whether temperature affects sports-drink sales: data, hypothesis, model fitting, and testing. section 1.7

How Grokking Statistics covers it

How deep it goes
Explains the modeling sequence and cautions about testing, context, bias, representativeness, and p-hacking.
Examples
Uses sports-drink sales, family photographs, golf performance, scorecards, and favorable p-values as concrete illustrations.
What it assumes
Assumes no specialized background, but teaches the roles of data, hypotheses, models, testing, and evidence quality.
What you can do after
Evaluate/understand exploratory findings while checking generalization, context, representativeness, bias, and selective analysis.
How it connects
Connects data mining with statistics, machine learning, hypothesis formation, model fitting, testing, and p-hacking.

Also explained in

Compare how 4 books explain data mining →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Grokking Statistics. The section links point to the parts of the book it draws on.