Data Mining as Observation

A companion to Tan, Steinbach, Karpatne, and Kumar, with Observation Theory as its spine. Draft 0.3, 2026-09-09. Standard content is cited to Tan, Steinbach, Karpatne, Kumar and to Hastie, Tibshirani, Friedman. Every number in the book traces to a committed artifact listed at the end of its chapter.

Online edition of draft 0.3, built from commit bccca4f. Copyright © 2026 Andrew H. Bond. All rights reserved. The answer key, appendix B, is not part of the online edition. The book’s terms are defined, with their evidence, in the Geometric Series Encyclopedia.

Data Mining as ObservationA companion to Tan, Steinbach, Karpatne, and Kumar,with Observation Theory as its spinereader at 15 degrees reads 0.39 from this errorreader at 15 degrees reads 1.61 from this errorreader at 75 degrees reads 1.61 from this errorreader at 75 degrees reads 0.39 from this errorAndrew H. BondSan José State University
The cover. The four-to-one flip of chapter 3, drawn to scale by tools/make_cover.py. Two errors of equal trace, and two readers that rank them the opposite way.

Preface

This book teaches a one-semester graduate course in data mining, in the week order of ECE 514 at Sonoma State University, with one idea running through every week. The quality of a representation, a distance, a reduction, an index, or an evaluation is not a property of the object. It is a property of the relation between the object and the consumer that reads it, under a budget. The idea has a name, Observation Theory, and a theory book of its own, cited throughout as Volume 14. This is not that book. It cites Volume 14 for proofs and the standard texts, Tan, Steinbach, Karpatne, and Kumar and Hastie, Tibshirani, and Friedman, for the classical content, and it never rewrites either. Its own pages are three things per chapter. The observer reading of that week's topic. The instruments the reading produced. The failures that earned it.

The cover is the book's one idea drawn to scale and left without a label, so that this paragraph is the only place it is explained. Two error distributions share the page. The first has variance 0.3 along the horizontal axis and 1.7 along the vertical, the second is the reverse, and each is drawn as its ellipse one standard deviation out, blue for the first and orange for the second. Their traces, the sums of their variances, are both 2.0, so mean squared error, total variance, and every other measure that does not name a reader calls them the same size. Two readers cross the picture as dashed lines through the centre, one at 15 degrees from horizontal and one at 75. A reader that reads a single direction experiences an error as the error's shadow on its line, and the half-length of that shadow is the square root of the read distortion of equation 3.1, $u^{\top}\Sigma u$, the variance of the error along the direction read. The dotted lines drop from the point of each ellipse that lies farthest along a reader's direction to that reader's line, and the heavy bars beside each line are the shadows themselves. The reader at 15 degrees sees the first error as 0.39 and the second as 1.61. The reader at 75 degrees sees the first as 1.61 and the second as 0.39. Each reader ranks the pair about four to one, and the two readers rank it the opposite way, while nothing about either error changed. The ranking belongs to the pair of error and reader, and that sentence is what the fourteen data-mining chapters that follow spend their pages earning, on attention keys, seismograms, legal opinions, database replicas, and radio channels. Every number on the cover is computed by the script that draws it, tools/make_cover.py, from the two variances and the two angles, and chapter 3 section 3.2 works the same example by hand.

Every number in the book traces to a committed artifact. Each chapter ends with a table naming, for each number, the repository, file, and line range it came from, and where one exists, a commit hash or a DOI. Failures are printed at the prominence of the results they bound. Refuted bars, retracted results, and vacuous passes are chapter material rather than footnotes, because a claim that cannot fail cannot inform.

Chapter 0 introduces every mathematical tool the book uses beyond a first course in linear algebra and a first course in statistics, each with a small example that can be checked by hand. Two primers before it, L for linear algebra and S for probability and statistics, rebuild those first courses from arithmetic for the reader who needs them, in the order the book uses the ideas and with the same hand-checked examples. Every chapter ends with three tiers of exercises, warm-up, by hand with an answer key, and programming, and one homework aligned to the course calendar with a preregistration step that is graded on having been made rather than on being right. The exercise notebooks, the toolkit module they import, the figures and the scripts that draw them, and the consistency checker that keeps the cross-references true all live in the book's repository.

Two chapters, 5 and 7, are standard content with one sidebar each, and the book says so rather than stretch. The rest carry the thesis, and six of them, 3, 4, 8, 11, 12, and 13, carry most of it.

Contents

References

  1. Tan, Pang-Ning, Steinbach, Michael, Karpatne, Anuj, Kumar, Vipin. Introduction to Data Mining. Pearson, edition 2, 2019.
  2. Hastie, Trevor, Tibshirani, Robert, Friedman, Jerome H.. The Elements of Statistical Learning: Data Mining, Inference, and Prediction. Springer, edition 2, 2009. doi 10.1007/978-0-387-84858-7.
  3. Simpson, E. H.. The Interpretation of Interaction in Contingency Tables. Journal of the Royal Statistical Society, Series B, volume 13(2), pages 238–241, 1951.
  4. Nadeau, Claude, Bengio, Yoshua. Inference for the Generalization Error. Machine Learning, volume 52, pages 239–281, 2003. doi 10.1023/A:1024068626366.
  5. Shannon, Claude E.. A Mathematical Theory of Communication. Bell System Technical Journal, volume 27, pages 379–423, 623–656, 1948.
  6. Ng, Andrew Y., Jordan, Michael I., Weiss, Yair. On Spectral Clustering: Analysis and an Algorithm. Advances in Neural Information Processing Systems, volume 14, 2002.
  7. Weyl, Hermann. Über die asymptotische Verteilung der Eigenwerte. Nachrichten von der Gesellschaft der Wissenschaften zu Göttingen, Mathematisch-Physikalische Klasse, pages 110–117, 1911.
  8. Lundberg, Scott M., Lee, Su-In. A Unified Approach to Interpreting Model Predictions. Advances in Neural Information Processing Systems, volume 30, 2017.
  9. Kleinberg, Jon, Mullainathan, Sendhil, Raghavan, Manish. Inherent Trade-Offs in the Fair Determination of Risk Scores. Proceedings of Innovations in Theoretical Computer Science (ITCS), 2017. doi 10.4230/LIPIcs.ITCS.2017.43.
  10. Chouldechova, Alexandra. Fair Prediction with Disparate Impact: A Study of Bias in Recidivism Prediction Instruments. Big Data, volume 5(2), pages 153–163, 2017. doi 10.1089/big.2016.0047.
  11. Bond, Andrew H.. ECE 514 Data Mining, Fall 2026, Session-by-Session Outlines and Syllabus. Sonoma State University, instructor working documents, 2026.
  12. Bond, Andrew H.. TurboQuant Pro: Consumer-Aware Compression with Rank Certificates. Zenodo, version 1.9.0, and PyPI turboquant-pro, 2026. doi 10.5281/zenodo.20660087. Repository https://github.com/ahb-sjsu/turboquant-pro.
  13. Bond, Andrew H.. Geometric Observation: The Mathematical Structure of What an Observer Can Use (Volume 14 of the Geometric Series), evidence ledger and drafted monograph. Zenodo concept record, 2026. doi 10.5281/zenodo.21776291. Repository https://github.com/ahb-sjsu/geometric-observation.
  14. Bond, Andrew H.. Observation Theory Campaigns: Twenty Tracks, Sealed Registrations, and Twelve Published Papers. Repository https://github.com/ahb-sjsu/observation-theory-campaigns, 2026. Published papers include 10.5281/zenodo.21789011, 10.5281/zenodo.21837523, 10.5281/zenodo.21814848, 10.5281/zenodo.21814854, 10.5281/zenodo.21814860, 10.5281/zenodo.21818268, 10.5281/zenodo.21821378, 10.5281/zenodo.21833690.
  15. Bond, Andrew H.. readscope: A Specified Instrument for Recovering a Consumer's Read Operator. PyPI readscope 0.1.0, 2026. Repository https://github.com/ahb-sjsu/readscope.
  16. Bond, Andrew H.. OpenVector Bench: A Nested, Content-Addressed Benchmark Family for Vector Search with Three Truth Layers. Repository https://github.com/ahb-sjsu/openvector-bench, version 0.0.1, 2026.
  17. von Luxburg, Ulrike, Radl, Agnes, Hein, Matthias. Hitting and Commute Times in Large Random Neighborhood Graphs. Journal of Machine Learning Research, volume 15, pages 1751–1798, 2014.
  18. Bond, Andrew H.. Keep the Angle: A Geometry-Preserving Basis in Spectral Embeddings (Paper I) and Keep the Angle, in Practice (Paper I.b). Repository https://github.com/ahb-sjsu/the-angular-observer, version 0.1.0; arXiv source archived in the repository, 2026.
  19. Radovanović, Miloš, Nanopoulos, Alexandros, Ivanović, Mirjana. Hubs in Space: Popular Nearest Neighbors in High-Dimensional Data. Journal of Machine Learning Research, volume 11, pages 2487–2531, 2010.
  20. Coifman, Ronald R., Lafon, Stéphane. Diffusion Maps. Applied and Computational Harmonic Analysis, volume 21(1), pages 5–30, 2006. doi 10.1016/j.acha.2006.04.006.
  21. Agrawal, Rakesh, Srikant, Ramakrishnan. Fast Algorithms for Mining Association Rules. Proceedings of VLDB, 1994.
  22. Han, Jiawei, Pei, Jian, Yin, Yiwen. Mining Frequent Patterns without Candidate Generation. Proceedings of SIGMOD, 2000. doi 10.1145/342009.335372.
  23. Bond, Andrew H.. Theory Radar: Interpretable Symbolic Classifiers and the Question of Whether a Formula Suffices. Zenodo, and PyPI theory-radar, 2026. doi 10.5281/zenodo.20660206. Repository https://github.com/ahb-sjsu/theory-radar.
  24. Bond, Andrew H.. Safe-Pruning Compositional Search with Equivariant Priors on ARC-AGI-2: A Method Demonstration. Repository https://github.com/ahb-sjsu/arc-equivariant-search, experiments logged 2026-06-25, 2026.
  25. Bond, Andrew H.. constraint-gap: A Lean-Checked Closed Form and an Independent Review of the Theory Radar Win/Tie Rule. Repositories https://github.com/ahb-sjsu/constraint-gap, https://github.com/ahb-sjsu/constraint-gap-lean, https://github.com/ahb-sjsu/constraint-gap-measurements, 2026.
  26. Breiman, Leo. Random Forests. Machine Learning, volume 45(1), pages 5–32, 2001. doi 10.1023/A:1010933404324.
  27. Freund, Yoav, Schapire, Robert E.. A Decision-Theoretic Generalization of On-Line Learning and an Application to Boosting. Journal of Computer and System Sciences, volume 55(1), pages 119–139, 1997. doi 10.1006/jcss.1997.1504.
  28. Friedman, Jerome H.. Greedy Function Approximation: A Gradient Boosting Machine. The Annals of Statistics, volume 29(5), pages 1189–1232, 2001. doi 10.1214/aos/1013203451.
  29. Chen, Tianqi, Guestrin, Carlos. XGBoost: A Scalable Tree Boosting System. Proceedings of KDD, 2016. doi 10.1145/2939672.2939785.
  30. Bengio, Yoshua, Grandvalet, Yves. No Unbiased Estimator of the Variance of K-Fold Cross-Validation. Journal of Machine Learning Research, volume 5, pages 1089–1105, 2004.
  31. Bond, Andrew H.. Geometric Aesthetics (Volume 13 of the Geometric Series), with the Empirical Chapter on Books and Music. Repository https://github.com/ahb-sjsu/geometric-aesthetics, 2026.
  32. Bond, Andrew H.. xbse: Per-Dimension Moral Sentence Encoders Validated by a Shared Cross-Corpus Gate. Repository https://github.com/ahb-sjsu/xbse, 2026.
  33. Ester, Martin, Kriegel, Hans-Peter, Sander, Jörg, Xu, Xiaowei. A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise. Proceedings of KDD, 1996.
  34. Bond, Andrew H.. wolfram-observer-bridge: The Angular Coarse-Graining Operator on Hypergraph-Rewriting Substrates. Repository https://github.com/ahb-sjsu/wolfram-observer-bridge, 2026.
  35. Bond, Andrew H.. Moral Spectrum Analyzer. PyPI moral-spectrum-analyzer; repository https://github.com/ahb-sjsu/moral-spectrum-analyzer, 2026.
  36. Breunig, Markus M., Kriegel, Hans-Peter, Ng, Raymond T., Sander, Jörg. LOF: Identifying Density-Based Local Outliers. Proceedings of SIGMOD, 2000. doi 10.1145/342009.335388.
  37. Mikolov, Tomas, Chen, Kai, Corrado, Greg, Dean, Jeffrey. Efficient Estimation of Word Representations in Vector Space. arXiv preprint arXiv:1301.3781, 2013.
  38. Reimers, Nils, Gurevych, Iryna. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks. Proceedings of EMNLP-IJCNLP, 2019. doi 10.18653/v1/D19-1410.
  39. Malkov, Yu. A., Yashunin, D. A.. Efficient and Robust Approximate Nearest Neighbor Search Using Hierarchical Navigable Small World Graphs. IEEE Transactions on Pattern Analysis and Machine Intelligence, volume 42(4), pages 824–836, 2020. doi 10.1109/TPAMI.2018.2889473.
  40. Jégou, Hervé, Douze, Matthijs, Schmid, Cordelia. Product Quantization for Nearest Neighbor Search. IEEE Transactions on Pattern Analysis and Machine Intelligence, volume 33(1), pages 117–128, 2011. doi 10.1109/TPAMI.2010.57.
  41. Bond, Andrew H.. LeBSE: Citation-Supervised Legal-Domain Sentence Embeddings. Technical report; repository https://github.com/ahb-sjsu/lebse; model https://huggingface.co/ahbond/lebse, 2026.
  42. Devlin, Jacob, Chang, Ming-Wei, Lee, Kenton, Toutanova, Kristina. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. Proceedings of NAACL-HLT, 2019. doi 10.18653/v1/N19-1423.
  43. Lewis, Patrick, Perez, Ethan, Piktus, Aleksandra, Petroni, Fabio, Karpukhin, Vladimir, Goyal, Naman, Küttler, Heinrich, Lewis, Mike, Yih, Wen-tau, Rocktäschel, Tim, Riedel, Sebastian, Kiela, Douwe. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. Advances in Neural Information Processing Systems, volume 33, 2020.
  44. Blei, David M., Ng, Andrew Y., Jordan, Michael I.. Latent Dirichlet Allocation. Journal of Machine Learning Research, volume 3, pages 993–1022, 2003.
  45. McCoy, R. Thomas, Pavlick, Ellie, Linzen, Tal. Right for the Wrong Reasons: Diagnosing Syntactic Heuristics in Natural Language Inference. Proceedings of ACL, 2019. doi 10.18653/v1/P19-1334.
  46. Landauer, Rolf. Irreversibility and Heat Generation in the Computing Process. IBM Journal of Research and Development, volume 5(3), pages 183–191, 1961. doi 10.1147/rd.53.0183.
  47. Bond, Andrew H.. Consumer-Relative Landauer: Description Rate and Conditional Reset Work as Separate Resources (Paper V). Zenodo, 2026. doi 10.5281/zenodo.21777905.
  48. Bond, Andrew H.. erisml-lib: Concept Registry and the Machine-Checked Hohfeldian V$_4$ Structure. Repository https://github.com/ahb-sjsu/erisml-lib, Lean development verified 2026-08-17, 2026.
  49. Bond, Andrew H.. sqnd-probe: An Advice-Column Game for Eliciting Normative Positions, and a Complete Null for Contextuality. Zenodo, 2026. doi 10.5281/zenodo.20660110.