0% found this document useful (0 votes)
2 views9 pages

Data Preprocessing Notes

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views9 pages

Data Preprocessing Notes

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Data Preprocessing & Exploration

Academic Quick Reference & Revision Notes

1. Data Exploration

Meaning
Data Exploration refers to the preliminary step of studying and understanding the core characteristics of a
dataset before applying formal modeling or analysis techniques.

It explicitly helps analysts identify:

• What specific data fields and variables are available?


• Is the collected data correct and reliable?
• Are there any obvious anomalies, missing entries, or errors?

Example: Student Dataset

Name Marks

Amit 80

Raj 90

Priya 70

Through basic exploratory computation, we can instantly extract key statistical descriptors:

• Highest Marks: 90
• Lowest Marks: 70
• Average Marks: 80

The Data Exploration Workflow

Collect Data ➔ Observe Data ➔ Find Patterns ➔ Understand Data

Data Analytics Quick Revision Guide 1


Importance
✓ Provides a comprehensive initial understanding of attributes.

✓ Identifies apparent errors and outliers early.

✓ Lays the groundwork for selection of accurate downstream analysis models.

2. Data Transformation

Meaning
Data Transformation is the process of converting data from its raw, source format into a standardized,
optimized format specifically structured for downstream analysis or algorithmic processing.

Example: Date Standardization

BEFORE TRANSFORMATION (RAW) AFTER TRANSFORMATION (STANDARD ISO)

12-05-2026 2026-05-12

Post-transformation, the data fields reach format consistency, which eliminates logical mismatches during
operations.

The Critical Need for Transformation


Real-world raw data is frequently ingested from diverse pipelines, resulting in:

• Disparate formats across source systems.


• Incomplete or fragmented fields.
• High friction and logical hurdles during computation.

Systematic transformation bridges these gaps to render data structurally clean and analytically useful.

The Transformation Lifecycle

Raw Data ➔ Cleaning ➔ Transformation ➔ Analysis

Core Techniques of Data Transformation

A) Aggregation

Combining multiple high-frequency data points to form a unified summary metrics level.

Data Analytics Quick Revision Guide 2


DAILY SALES INGESTION MONTHLY SALES AGGREGATION

100 600 (Sum Total)


200
300

B) Normalization

Scaling variable values into a unified, targeted standard range to eliminate feature dominance due to
measurement magnitude differences.

Scenario: Combining Age = 25 and Salary = 50,000. Scaling maps both parameters into a mutual,
uniform distribution bounds (e.g., 0 to 1).

C) Generalization

Replacing granular, low-level data records with broader, higher-level conceptual abstractions.

Scenario: Abstracting urban nodes like Pune or Mumbai up to their macro geopolitical wrapper:
Maharashtra.

D) Smoothing

Filtering out systematic noise and random variances from a data sequence to reveal true baseline properties.

Scenario: Identifying an anomaly sequence like 100, 105, 5000, 110. The extreme spike of 5000 is
isolated as noise and smoothed or adjusted down to fit distribution bounds.

Importance
✓ Enhances structural data quality.

✓ Streamlines multi-dataset algorithmic integration.

✓ Drives accurate, data-backed operational choices.

3. Data Validation, Incompleteness, Noise &


Inconsistency

A) Data Validation
Definition: Rigorous validation protocols deployed to verify whether ingested values conform precisely to
defined domain constraints and structural business rules.

Data Analytics Quick Revision Guide 3


Example: An application registers a value of -5 in an Age attribute field. Validation scripts flag this as an
invalid entry, given that age metrics cannot possess negative properties.

✓ Guarantees strict source-level data integrity.

✓ Prevents cascading computation bugs in reporting pipelines.

B) Incompleteness
Definition: The systemic absence of attribute values across records within the dataset layout.

Name Age

Amit 21

Raj NULL

Core Impact: Triggers heavily skewed statistical models and significantly degrades evaluation accuracy.

C) Noise
Definition: Random, erroneous variations, or severe extreme values that obscure the underlying data
distribution trend.

Example: In a regular monthly salary tracking stream containing values like 30,000, 32,000, and 31,000,
an anomalous value entry of 5,000,000 acts as standard processing noise.

Core Impact: skews statistical derivations and compromises forecasting accuracy.

D) Inconsistency
Definition: The structural mismatch where identical real-world entities are logged using divergent naming
conventions across systems.

Example: Representing the exact same structural urban node using different string inputs like Pune vs.
Poona.

Core Impact: Causes semantic segmentation breakdown, producing fragmented reports during aggregations.

4. Dirty Data & Underlying Causes

Definition
Dirty Data acts as an overarching classification for any dataset that suffers from systemic errors, missing
values, duplicate records, or format violations, rendering it low quality.

Data Analytics Quick Revision Guide 4


Example Representation

Name Age Issue Isolated

Amit NULL Missing / Incomplete Field Value

Raj -5 Domain Constraint Violation (Logical Error)

Top 5 Primary Drivers of Dirty Data

1. Human Error: Typographical errors and faulty transcriptions committed during manual database entry
steps.
2. Missing Values: Incomplete user submissions or failure to collect non-mandatory fields.
3. Duplicate Records: Redundant tracking instances created by double-submitting forms or pulling raw
entries across un-deduplicated channels.
4. Different Formats: Storing temporal references across disparate syntax schemas like mixing
12/05/2026 alongside textual strings like May 12, 2026.
5. System Errors: Hardware failures, buffer truncations, or transmission drops occurring within ETL data
pipelines.

Downstream Problems
✗ Generates heavily distorted organizational reporting.

✗ Triggers high risks of operational strategy missteps.

5. The Need for Data Preprocessing

Meaning
Data Preprocessing represents the comprehensive suite of clean-up and formatting operations applied to
raw data vectors to prepare them for rigorous analytics or predictive model modeling.

Why Preprocessing is Mandatory


Raw foundational data is inherently messy, prone to containment of missing entries, noise artifacts, logical
anomalies, and redundant records. Executing analytical computations without preprocessing guarantees
inaccurate insights.

Data Analytics Quick Revision Guide 5


The Core Preprocessing Pipeline

Raw Data ➔ Preprocessing Pipeline ➔ Clean Standard Data ➔

Advanced Analytics

Two Essential Processing Pillars

A) Data Cleaning

Targeted elimination of missing records, deduplication of redundant logs, and resolution of logical constraint
errors.

Example: Programmatically filling or imputing a structural missing block (Age = NULL) to a reliable target
statistical mean value (Age = 22).

B) Data Transformation

Re-mapping raw values into consistent syntactic representations.

Example: Enforcing standard temporal patterns across string entries to resolve variations (e.g., mapping
12-05-26 into 2026-05-12).

Core Institutional Benefits


✓ Significantly improves predictive model accuracy.

✓ Establishes reliable baseline reporting foundations.

6. Data Reduction

Meaning
Data Reduction focuses on shrinking the underlying volume or scale of a target dataset while preserving its
core statistical information and analytical integrity.

Scenario: Scaling down a computationally heavy warehouse grid containing 100,000 records into an
optimized, representative subset of 10,000 records to run processing iterations quickly.

Primary Benefits
✓ Drastically minimizes infrastructure storage costs.

✓ Accelerates computational throughput speeds.

Data Analytics Quick Revision Guide 6


Core Methodologies of Data Reduction

A) Dimensionality Reduction

The practice of pruning down excess, redundant, or non-informative feature columns from the table matrix.

BEFORE (HIGH DIMENSION) AFTER (TARGET DIMENSIONS)

[Name | Age | Phone | Salary] [Age | Salary]

B) Data Compression

Deploying encoding algorithms to optimize the disk footprint layout of target data systems.

Scenario: Transforming a bulky, unoptimized tabular text file sizing at 100 MB down to a compact,
compressed representation of 20 MB.

C) Sampling

Extract to process a statistically valid subset of records capable of accurately generalizing behavior for the
entire parent population pool.

Scenario: Rather than performing long calculations across an entire campus matrix of 10,000 students,
engineers isolate and analyze a clean random selection of 500 students.

D) Feature Selection

The intentional screening and retention of key informative columns, discarding those with negligible predictive
power or variance.

Scenario: Dropping identifiers like Name and Phone from model training, keeping only Age and Salary to
maximize model convergence speeds.

E) Principal Component Analysis (PCA)

An advanced linear algebra transformation technique that maps a high-dimensional feature space of
correlated variables onto a compact space of uncorrelated orthogonal axes called Principal Components.

ORIGINAL FEATURE SET PCA OUTPUT AXES

Age, Income, Visits, Purchases Component 1, Component 2

Data Analytics Quick Revision Guide 7


7. Data Discretization & Binning

A) Data Discretization
The operational process of partition mapping continuous numeric scales into distinct, bounded qualitative
intervals or categories.

Continuous Ingestion: Ingesting numeric test score indices such as 85, 70, 40.

Rule-Based Mapping Strategy:

• 80 - 100 ➔ Grade A

• 60 - 79 ➔ Grade B

• 0 - 59 ➔ Grade C

Discretized Result Output: 85 maps to A, 70 maps to B, and 40 maps to C.

B) Binning
A specific discretization technique used to smooth out data variability and handle noise by grouping broad
sets of continuous values into small, neighboring buckets called "bins".

Continuous Sequence Vector: 10, 20, 30, 40, 50, 60

BIN 1 COMPOSITION BIN 2 COMPOSITION

[10, 20, 30] [40, 50, 60]

Core Purpose: Helps effectively counteract local signal noise distortions and simplifies deep attribute trends.

Data Analytics Quick Revision Guide 8


Very Short Exam Revision Matrix

Data Exploration Analyzing and understanding data characteristics prior to formal


modeling.

Data Transformation Formatting and restructuring data elements to ensure operational


standardization.

Data Validation Verifying value compliance with programmatic range and rule
constraints.

Incompleteness The state of data records containing missing or NULL fields.

Noise Erroneous elements, outliers, or random variances skewing accurate


data signals.

Inconsistency Discrepancies where identical entities carry different names or


representations.

Dirty Data An umbrella phrase for low-quality data containing errors, duplicates,
or omissions.

Data Preprocessing The mandatory operational pipeline of cleaning and preparation


before core analysis.

Data Reduction Minimizing data structural size while preserving baseline informational
value.

Dimensionality Reduction Systematically removing non-essential column features from the


database.

Data Compression Encoding files mathematically to use less storage and memory space.

Sampling Extracting a representative row subset to run faster computation


cycles.

Feature Selection Isolating and retaining only high-variance, informative attribute


columns.

PCA Mathematical matrix projection to compress multi-attribute spaces into


fewer components.

Data Discretization Transforming continuous numeric values into distinct categorical


labels.

Binning Grouping local numeric values into explicit neighborhood buckets to


reduce variance.

Data Analytics Quick Revision Guide 9

You might also like