Artificial Intelligence

Types of Data and Visualizations for Different Data

Class 12 · Artificial Intelligence

Types of Data and Visualizations for Different Data

Data can be classified in different ways based on its nature, values and structure. Understanding the type of data helps us select an appropriate visualization for communicating patterns, trends, relationships and comparisons.

1. Types of Data

Data can broadly be classified into Qualitative Data and Quantitative Data based on its nature.

Qualitative Data

Qualitative Data describes qualities, characteristics or categories rather than numerical measurements.

Nominal Data: Data used for naming or labelling categories without any specific order. Example: names of cuisines.

Ordinal Data: Data that follows a meaningful order or ranking. Example: customer satisfaction ratings.

Quantitative Data

Quantitative Data consists of numerical values that can be measured or counted.

Discrete Data: Numerical data consisting of distinct and countable values. Example: number of students in a class.

Continuous Data: Data that can take any value within a given range. Example: height, weight or temperature.

2. Classification Based on Data Structure

Type of Data Description Examples
Structured Data Data organised in a predefined format, generally in rows and columns. Excel spreadsheets, SQL tables
Semi-Structured Data Data that does not follow the rigid structure of relational databases but contains organisational elements such as tags or keys. XML, JSON, HTML
Unstructured Data Data without a predefined structure, making it difficult to process using traditional database systems. Images, audio, video, social media posts

3. Visualizations for Different Data

Data visualization is the graphical representation of data using charts, graphs, maps and other visual elements. The choice of visualization depends on the type and purpose of the data.

Data / Purpose Visualization Use
Text Data Word Cloud Represents word frequency. Frequently occurring words appear larger.
Numeric Data over Time Line Graph Shows trends and changes over a period of time.
Numeric / Categorical Data Bar Chart Compares values between different categories.
Numerical Proportions Pie Chart Shows how different categories contribute to a whole.
Two Numerical Variables Scatter Plot Shows relationships, correlations and trends between two variables.
Continuous Data Histogram Represents the distribution of continuous data.
Multiple Variables FacetGrid Uses a grid of plots to compare distributions and relationships between multiple variables.
Stock / Financial Data Candlestick Chart Shows open, high, low and close prices of financial instruments.
Geographic Data Map Chart Displays data associated with specific geographical locations.
Categorical Data Heat Map Uses colour intensity to compare values and identify strong and weak areas.

4. Important Visualizations

Word Cloud: The size of a word represents its frequency in the corpus.

Line Graph: Useful for identifying trends and changes over time.

Bar Chart: Useful for comparing values across different categories.

Pie Chart: Useful for representing numerical proportions.

Scatter Plot: Useful for identifying relationships between two variables.

Histogram: Useful for representing the distribution of continuous data.

Candlestick Chart: Commonly used for stock, forex and commodity trading.

Map Chart: Used to represent data associated with geographical locations.

5. Choosing the Right Visualization

Requirement Recommended Visualization
Show word frequency Word Cloud
Show a trend over time Line Graph
Compare categories Bar Chart
Show proportions Pie Chart
Show relationship between two variables Scatter Plot
Show distribution of continuous data Histogram
Analyse stock price movements Candlestick Chart
Represent geographical information Map Chart

Board Exam Focus

Question 1: Which visualization is used to represent word frequency?

Click to View Answer

Word Cloud. The more frequently a word occurs, the larger it appears in the word cloud.

Question 2: Which visualization is most appropriate for showing the relationship between two variables?

Click to View Answer

Scatter Plot.

Question 3: Which chart is commonly used for stock or forex trading?

Click to View Answer

Candlestick Chart.

Question 4: Which visualization is suitable for identifying trends over time?

Click to View Answer

A Line Graph is suitable for identifying trends and changes over time.

Question 5: Which visualization is used to represent the distribution of continuous data?

Click to View Answer

A Histogram is used to represent the distribution of continuous data.

Quick Revision:

Text → Word Cloud  |  Trend → Line Graph  |  Comparison → Bar Chart

Relationship → Scatter Plot  |  Distribution → Histogram  |  Stock → Candlestick  |  Geography → Map