Pass path: Learn the KDD process steps (Selection, Preprocessing, Transformation, Data Mining, Interpretation/Evaluation) and major distance metrics (Euclidean, Manhattan, Cosine, Jaccard). Top path: Master data preprocessing pipelines (handling missing values, binning, min-max vs z-score normalization) and dimensionality reduction via Principal Component Analysis (PCA).
Part 1: Core Concepts (2 Marks)
- ★ Knowledge Discovery in Databases (KDD): The iterative process of discovering valid, novel, potentially useful, and ultimately understandable patterns and knowledge from massive volumes of structured or unstructured data.
- ★ Euclidean vs Manhattan Distance: For vectors
and : Euclidean distance is , while Manhattan distance (L1 norm) is . - ★ Min-Max Normalization: A linear data transformation mapping values from an initial range
to a target range via .
Part 2: Structural Frameworks (10 Marks)
1. The KDD Process Lifecycle and Comprehensive Data Preprocessing Pipeline
- Introduction: Define Data Mining as the core computational step within the broader multidisciplinary KDD framework (combining statistics, machine learning, and database systems).
- The Seven Stages of KDD:
- Data Cleaning: Removing noise, handling inconsistent records, and imputing missing values.
- Data Integration: Combining heterogeneous data sources (multiple relational databases, flat files, data cubes) while resolving schema collisions.
- Data Selection: Retrieving data subsets relevant to the analysis task from the operational data store.
- Data Transformation: Consolidating data into formats suitable for mining (normalization, aggregation, feature construction).
- Data Mining: Essential algorithmic phase extracting hidden data patterns (classification, clustering, association rules).
- Pattern Evaluation: Identifying truly interesting patterns representing actionable knowledge using statistical thresholds.
- Knowledge Presentation: Visualizing discovered insights to business stakeholders (charts, dashboards, decision trees).
- Data Preprocessing Techniques:
- Data Cleaning: Methods for missing values (Ignore tuple, manual fill, global constant, attribute mean/median, most probable value via decision tree imputation).
- Data Transformation:
- Min-Max Normalization: Preserves exact relationships among data values; maps to
. - Z-Score Normalization (Standardization):
, ideal when outliers exist or min/max are unknown. - Decimal Scaling: Normalizes by moving decimal points based on
.
- Min-Max Normalization: Preserves exact relationships among data values; maps to
- Data Reduction:
- Dimensionality Reduction: PCA (orthogonal projection maximizing variance), Wavelet transforms, attribute subset selection.
- Numerosity Reduction: Parametric models (regression, log-linear) and non-parametric models (histograms, clustering, sampling).
- Conclusion: Unprocessed raw data is typically dirty, incomplete, and high-dimensional; preprocessing consumes up to 80% of total project effort but directly dictates downstream algorithmic accuracy.
Part 3: Distinction Tables
| Criteria | Min-Max Normalization | Z-Score Normalization (Standardization) |
|---|---|---|
| Formula | ||
| Output Range | Strictly bounded within specified range, typically |
Unbounded; centered at |
| Outlier Sensitivity | Highly sensitive: a single extreme outlier compresses regular data into tiny sub-interval | Robust: outliers remain represented as extreme standard deviation values |
| Requirement | Requires knowing absolute minimum and maximum values of the dataset | Requires calculating or estimating sample mean and standard deviation |
| Algorithm Suitability | Neural networks, image processing, bounded activation functions | Distance-based algorithms (k-NN, k-Means, SVM, PCA) |
Part 4: Worked Problems & Exam Traps
- Problem 1 (Easy - Distance Calculation): Given two data points in 2D space:
and , calculate: - Euclidean Distance
- Manhattan Distance
- Solution:
- Problem 2 (Exam-Level Normalization): Given the age attribute values:
. Normalize the value : - Using Min-Max Normalization onto the range
. - Using Z-Score Normalization where the mean
and standard deviation .
- Solution:
- Min-Max:
, . - Z-Score:
- Min-Max:
- Using Min-Max Normalization onto the range
- Problem 3 (Twist / Case Scenario): Why is Cosine Similarity preferred over Euclidean Distance when measuring the similarity between two text document vectors in information retrieval?
- Solution:
- Euclidean distance measures the absolute geometric distance between vectors in multidimensional term-frequency space; it is heavily distorted by document length.
- A short article about cricket and a 100-page book about cricket share identical topic distributions, but Euclidean distance between them is massive because the book has 100x higher word counts.
- Cosine similarity measures the cosine of the angle between the two vectors (direction, not magnitude):
, normalizing out document length completely.
- Students lose marks here because they describe data mining as the entire KDD process (data mining is only one specific algorithmic phase of KDD), or they fail to square the differences in Euclidean distance.
- Solution: