How unit 1 is examined
This unit covers what data visualization is, why and where it is used, and how raw data is prepared for it; the marks sit in data pre-processing (aggregation, integration, k-NN missing-value imputation).
Overview of data visualization, Definition
Not asked since 2022
Definition. Data visualization is the graphical representation of data and information using charts, graphs, maps and dashboards, so that patterns, trends and outliers become easy to see and understand.
Key points.
- The human eye grasps shapes, colours and positions far faster than rows of numbers, so a picture makes large data understandable at a glance.
- Common forms are bar charts, line charts, scatter plots, histograms, pie charts, heat maps and maps.
- It serves two purposes: exploration (the analyst finds patterns) and explanation (the analyst communicates a finding to others).
- A good visualization is accurate, clear and purposeful; a chart that misleads is worse than none.
Significance in AI and Data Science
Not asked since 2022
Definition. Significance means the role visualization plays in the data science workflow: it turns data and model output into insight that people can act on.
Key points.
- In exploratory analysis, plots reveal distributions, outliers, missing values and relationships before any model is built.
- It guides feature selection and data cleaning by showing which variables matter and which are faulty.
- In AI, plots such as loss curves, confusion matrices and feature-importance charts help explain and debug models.
- It communicates results to non-technical decision makers, which supports trust and better decisions.
Principal of Data Visualization, Methodology
Not asked since 2022
Definition. The principles are the design rules that make a visualization truthful and readable; the methodology is the step-wise process of producing it.
Key points.
- Know the audience and the question first, then choose the chart type that fits the data (comparison, trend, distribution, relationship, composition).
- Keep it simple: remove clutter and decoration so that the data carries the message (high data-ink ratio, after Tufte).
- Be honest: use a proper axis scale starting from a sensible baseline, and do not distort proportions.
- Use colour, size and position purposefully, label axes and units, and add a title and legend.
- Methodology: acquire data, clean and transform it, choose the visual encoding, build the chart, then refine and interpret.
Applications
Not asked since 2022
Definition. Applications are the fields in which visual representation of data supports analysis and decisions.
Key points.
- Business: sales, marketing and finance dashboards track KPIs, trends and forecasts.
- Healthcare: patient trends, disease spread maps and medical imaging visualization.
- Science and engineering: simulation results, weather and climate maps, sensor data.
- Government and social use: census and election maps, and public-policy reporting.
- AI and machine learning: model diagnostics and monitoring of data quality.
Data pre-processing for visualization: Extraction, Cleaning, Transformation, Aggregation
Medium weight
Definition. Data pre-processing is the set of steps that converts raw, incomplete and inconsistent data into clean, consistent, summarised data that is ready to be visualized.
Key points.
- Extraction pulls the needed records and fields from sources such as databases, files, web pages and APIs.
- Cleaning removes noise and duplicates, corrects errors and inconsistencies, and handles missing values by deleting, filling with mean or median, or imputing with k-NN.
- Transformation changes the form of data: normalisation or scaling, encoding categories, type conversion, log transform and derived columns.
- Aggregation summarises many records into fewer ones using sum, count, average, min or max over groups or time, for example daily sales rolled up to monthly sales per region.
- Aggregation levels are hierarchical (day, month, year; city, state, country), so the analyst can drill down or roll up.
- Aggregation and integration together reduce clutter, speed up rendering of large data, and make trends visible.
Data integration (Q1). Integration combines data from heterogeneous sources (a sales database, a CSV of customers, a web API) into one consistent view by matching keys, resolving naming and unit conflicts and removing duplicates. Example: join Sales(cust_id, amount) with Customers(cust_id, region), then aggregate SUM(amount) by region and draw one bar chart of sales per region.
Missing values with k-NN (Q2). Missing values are absent entries in a record. In heterogeneous (mixed numeric and categorical) data, use a mixed distance such as Gower: numeric features contribute $|x-y|/\text{range}$, categorical features contribute 0 if equal and 1 if different, and the distance is their average.
Step 1: Find the record with the missing value.
Step 2: Compute the mixed distance from it to every complete record using the known features.
Step 3: Select the k nearest records.
Step 4: Fill with the mean of their values (numeric) or the majority value (categorical).
Example. Fill Income for R5 (Age 30, Bhopal), with Age range 20 (25 to 45), k = 2:
| Record | Age | City | Income | Distance to R5 |
|---|---|---|---|---|
| R1 | 25 | Bhopal | 20 | (5/20 + 0)/2 = 0.125 |
| R2 | 32 | Bhopal | 30 | (2/20 + 0)/2 = 0.05 |
| R3 | 45 | Indore | 60 | (15/20 + 1)/2 = 0.875 |
| R4 | 28 | Indore | 24 | (2/20 + 1)/2 = 0.55 |
Nearest two are R2 and R1, so Income of R5 = (30 + 20)/2 = 25.
Answer frame. Open with the definition of aggregation and of integration (or of missing values); draw the pipeline diagram; develop the definition, types or steps, then the example, in that order; close with the benefit: cleaner, faster and more insightful charts.
Pitfall: Do not use plain Euclidean distance on categorical columns, and do not forget to scale numeric features before k-NN.
Asked: [7 marks] (Dec 2024) Explain Aggregation and Data Integration in visualization with help of example. Asked: [7 marks] (Dec 2024) Explain how you will find missing values in heterogeneous data using k-nearest neighbors?
Data Integration
Not asked since 2022
Definition. Data integration combines data from multiple sources into one unified, consistent dataset for analysis.
Key points.
- Sources may differ in format, schema, units and naming, so schema matching and key matching are needed.
- Entity resolution removes duplicates that refer to the same real object.
- Conflicts in values, such as different units or date formats, are resolved by standardising them.
- It is commonly done through ETL (extract, transform, load) into a data warehouse.
Data Reduction
Not asked since 2022
Definition. Data reduction produces a smaller representation of the data that gives nearly the same analytical results.
Key points.
- Dimensionality reduction cuts the number of attributes, for example by PCA or feature selection.
- Numerosity reduction cuts the number of records, using sampling, histograms or clustering.
- Data compression encodes the data in less space.
- Reduction makes large data faster to plot and less cluttered.
Last-minute revision
- Data visualization is the graphical representation of data to reveal patterns, trends and outliers.
- Two purposes: exploration and explanation.
- Pre-processing order: Extraction, Cleaning, Transformation, Aggregation.
- Aggregation summarises records with sum, count, average, min, max over groups or time.
- Integration merges heterogeneous sources into one consistent view (joins, key matching, ETL).
- k-NN imputation: find k nearest complete records, then average (numeric) or take the majority (categorical).
- Mixed data uses Gower distance: numeric $|x-y|/\text{range}$, categorical 0 or 1.
- Worked example: k = 2 neighbours with incomes 30 and 20 give a filled value of 25.
- Data reduction: dimensionality, numerosity, compression.
- Tufte principle: maximise the data-ink ratio.
Memory hooks
- ECTA: Extract, Clean, Transform, Aggregate.
- Gower: numbers by distance, words by match (0 or 1).
- Reduction has three routes: fewer columns, fewer rows, fewer bytes.
- Integration is "many sources, one truth".
Coverage checklist
- Overview of data visualization, Definition: covered.
- Significance in AI and Data Science: covered.
- Principal of Data Visualization, Methodology: covered.
- Applications: covered.
- Data pre-processing for visualization: Extraction, Cleaning, Transformation, Aggregation: covers Dec 2024 Q1 (aggregation and integration) and Dec 2024 Q2 (k-NN missing values).
- Data Integration: covered, also answered under pre-processing (Q1).
- Data Reduction: covered.