Principles and Techniques of Computational Data Pre-Processing
Module 1: Introduction to Knowledge Discovery and Data Mining
Data Mining is a non-trivial process of identifying valid, novel, potentially useful, and ultimately understandable patterns in data. Knowledge Discovery in Databases (KDD) maps out this cycle through sequential but iterative phases: Data Cleaning, Data Integration, Data Selection, Data Transformation, Data Mining, Pattern Evaluation, and Knowledge Presentation.
A more refined process model is the CRISP-DM (Cross-Industry Standard Process for Data Mining) model, representing the cyclical nature of business understanding, data understanding, data preparation, modeling, evaluation, and deployment.
OLTP vs. OLAP
- On-line Transaction Processing (OLTP): Supports order processing and billing, typically executing simple queries across isolated databases.
- On-line Analytical Processing (OLAP): Designed for decision-makers requiring complex, multi-dimensional queries. OLAP operates on a Data Cube, an efficient structure allowing dimensions like products, time, and region to be cross-analyzed.
- Data Cube Operations:
- Slice: Vertical selection by a single value.
- Dice: Subcube selection by multiple values and dimensions.
- Roll-Up: Aggregating data upwards in a hierarchy (e.g., ).
- Drill-Down: Moving downwards in a hierarchy of values.
Module 2: Data Pre-Processing
Data pre-processing accounts for roughly of a data mining task. It includes Feature Subset Selection, Feature Transformation (e.g., discretization), Feature Construction, Sampling, and Data Cleaning.
Outlier Detection
The 2-Sigma Rule is a standard unsupervised statistical method. It classifies an example as an outlier if there is a numerical attribute whose value deviates from the mean by more than two standard deviations:
Discretization
- Top-down (Splitting): Starts with a single interval and recursively splits.
- Bottom-up (Merging): Starts with points as intervals and merges neighbours.
- Chi-Merge Algorithm (Supervised): Sorts examples by feature value and iteratively merges adjacent intervals with the lowest value. The statistic is calculated as:
where is the number of examples in the -th interval of class , and is the expected number of examples.
Module 3: Rule Learning and Subgroup Discovery
Subgroups and predictive models are frequently represented as logical rules providing a balance of human understandability and machine executability. Attributes can be viewed as statements in propositional logic using conjunctions ( ), disjunctions ( ), negations ( ), and implications ( ).
Separate-and-Conquer Rule Learning
Predictive learning requires sets of rules to handle complexity. The Separate-and-Conquer (Covering) strategy builds a theory by learning a single consistent rule from the set , adding it to , and deleting the covered examples before repeating the search.
Anti-Monotonicity and Generality
A key operational property in finding hypotheses is the generality relation. A rule is more general if its set of conditions is a subset of another's.
Adding a condition (specializing the rule) may never increase the support or frequency of a rule.
Overfitting and Pruning
Overfitting occurs when algorithms fit error or noise in the training data, leading to rules that do not generalize.
Incremental Reduced Error Pruning (I-REP): Efficient pruning method ( ) splitting data into growing and pruning sets, dropping conditions as long as the error on the pruning set does not increase.
Multi-Class Rule Learning: Pairwise classification decomposes a problem into binary models. The total number of training examples for all binary classifiers in a pairwise classification ensemble with classes and examples is:
Module 4: Association Rule Mining
Association rules capture frequent co-occurrences. The base itemset must surpass a minimum support ( ) and minimum confidence ( ).
Support: The proportion of examples for which both the head and body of the rule are true.
Confidence: The proportion of examples for which the head is true among those where the body is true.
Module 5: Evaluation Methods
Validating learned models on separate, out-of-sample datasets prevents biased estimates. Evaluation relies on the confusion matrix extracting true positives ( ), false positives ( ), true negatives ( ), and false negatives ( ).
Core Evaluation Formulas
- True Positive Rate:
- False Positive Rate:
- Accuracy:
- Error Rate:
Cost-Sensitive Evaluation
Predicting class instead of correct class carries a cost . The overall expected cost (Loss) incorporates the base confusion rates:
If there are no costs for correct classifications ( ), the formula condenses to:
Stream Mining Evaluation Complexity
When attempting naive stream sampling, maintaining of queries creates an incorrect bias for estimating unique duplicates ( ) over single searches ( ). The expected sample-based result calculates as:
Which leads to the false total estimate of:
.