rupaliasati1992@gmail.
com
EH4VJF9GMO
Python for Visualization
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Visualization - One Variable
EH4VJF9GMO Agenda
rupaliasati1992@[Link]
Visualization - Two Variables
Visualization - Multiple Variables
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Let’s begin the discussion by answering a few questions
rupaliasati1992@[Link]
EH4VJF9GMO
on visualization.
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
What are the three statistics presented in box of a boxplot?
A First Quartile (Q1), Mode, Third Quartile (Q3)
rupaliasati1992@[Link]
EH4VJF9GMO
B Lower whisker, Median, Upper whisker
C First Quartile (Q1), Median, Third Quartile (Q3)
D First Quartile (Q1), Mean, Third Quartile (Q3)
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
What are the three statistics presented in box of a boxplot?
A First Quartile (Q1), Mode, Third Quartile (Q3)
rupaliasati1992@[Link]
EH4VJF9GMO
B Lower whisker, Median, Upper whisker
C First Quartile (Q1), Median, Third Quartile (Q3)
D First Quartile (Q1), Mean, Third Quartile (Q3)
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - One Variable
Plot Type of Data Usage Example
Helps us understand data distribution and skewness
Boxplot Numerical by displaying the data in the form of a box divided by
quartiles
rupaliasati1992@[Link]
EH4VJF9GMO
Inter Quartile
Range
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which of the following represents the general formula for computing the lower
whisker (fence) of a boxplot?
A Q1 - 1.5 * IQR
rupaliasati1992@[Link]
EH4VJF9GMO
B Q1 - 2 * IQR
C Q2 - 1.5 * IQR
D Q2 - 2 * IQR
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which of the following represents the general formula for computing the lower
whisker (fence) of a boxplot?
A Q1 - 1.5 * IQR
rupaliasati1992@[Link]
EH4VJF9GMO
B Q1 - 2 * IQR
C Q2 - 1.5 * IQR
D Q2 - 2 * IQR
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - One Variable
The whiskers of a boxplot show the range of the data, excluding outliers.
Upper whisker: Q3 + 1.5 * IQR
Lower whisker: Q1 - 1.5 * IQR
Data points to the left of the lower whisker and to the right of the upper whisker are
generally considered
rupaliasati1992@[Link] be outliers
EH4VJF9GMO
Inter Quartile
Range
Lower whisker Upper whisker
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
How does a KDE plot differ from a histogram?
A KDE plot displays the frequency of data points, while a histogram shows the
A probability density.
rupaliasati1992@[Link]
EH4VJF9GMO
A KDE plot provides a smoother representation of the data distribution
B
compared to a histogram.
A KDE plot is suitable for categorical data, while a histogram is designed for
C
numerical data.
D A KDE plot cannot handle large datasets in general, whereas a histogram can.
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
How does a KDE plot differ from a histogram?
A KDE plot displays the frequency of data points, while a histogram shows the
A probability density.
rupaliasati1992@[Link]
EH4VJF9GMO
A KDE plot provides a smoother representation of the data distribution
B
compared to a histogram.
A KDE plot is suitable for categorical data, while a histogram is designed for
C
numerical data.
D A KDE plot cannot handle large datasets in general, whereas a histogram can.
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - One Variable
Plot Type of Data Usage Example
Helps us understand data distribution by dividing it
Histogram Numerical into bins and showing the number of observations in
each bin via bars
rupaliasati1992@[Link]
EH4VJF9GMO
Kernel Density Helps us understand data distribution by displaying a
Numerical
Estimation distribution curve on top of the histogram bars
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which statements accurately describe scatterplot?
A Each point on a scatterplot represents a single observation or data point
rupaliasati1992@[Link]
EH4VJF9GMO
B Primarily visualize the relationship between two continuous variables
C Explores both positive and negative correlations
D Scatterplots are only useful for handling categorical variables
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which statements accurately describe scatterplot?
A Each point on a scatterplot represents a single observation or data point
rupaliasati1992@[Link]
EH4VJF9GMO
B Primarily visualize the relationship between two continuous variables
C Explores both positive and negative correlations
D Scatterplots are only useful for handling categorical variables
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - Two Variable
Plot Type of Data Usage Example
Helps us understand potential relationship
Scatterplot Numerical
between two numerical variables
rupaliasati1992@[Link]
EH4VJF9GMO
Enables identification of correlation and patterns between the variables.
+ve correlation -ve correlation
This file is meant for personal No correlation
use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
When should a jointplot be used instead of a scatterplot?
A When there are more than two variables
rupaliasati1992@[Link]
EH4VJF9GMO
B When we only want to visualize one variable
When we want to visualize both the relationship between variables and the
C
distribution of variables
When we want to visualize only the relationship between variables and not the
D
distribution of variables
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
When should a jointplot be used instead of a scatterplot?
A When there are more than two variables
rupaliasati1992@[Link]
EH4VJF9GMO
B When we only want to visualize one variable
When we want to visualize both the relationship between variables and the
C
distribution of variables
When we want to visualize only the relationship between variables and not the
D
distribution of variables
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - Two Variables
Plot Type of Data Usage Example
Helps us understand the distribution and
Jointplot Numerical relationship between two numerical variables on
the same plot.
rupaliasati1992@[Link]
EH4VJF9GMO
Integrates scatterplot with variable-specific histograms for comprehensive visualization
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which of the following statements accurately describes a pairplot?
A It visualizes the relationship between multiple variables
rupaliasati1992@[Link]
EH4VJF9GMO
B It is composed of boxplots and histograms
C It displays pairwise relationships in a grid format
D The diagonal line represents histograms of each variable
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which of the following statements accurately describes a pairplot?
A It visualizes the relationship between multiple variables
rupaliasati1992@[Link]
EH4VJF9GMO
B It is composed of boxplots and histograms
C It displays pairwise relationships in a grid format
D The diagonal line represents histograms of each variable
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - Multiple Variables
Plot Type of Data Usage Example
Helps us understand the relationship between two
Pairplot Numerical
or more pairs of numerical variables
rupaliasati1992@[Link]
EH4VJF9GMO
Offers simultaneous examination of multiple variables
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which of the following statements are TRUE for heatmap?
A Provide detailed information about outliers
rupaliasati1992@[Link]
EH4VJF9GMO
B Condense information into a single plot for easier pattern identification
C Exclusively designed for visualizing relationships between categorical variables
Represent the relationship between two numerical variables through color
D
gradients
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization Quiz
Which of the following statements are TRUE for heatmap?
A Provide detailed information about outliers
rupaliasati1992@[Link]
EH4VJF9GMO
B Condense information into a single plot for easier pattern identification
C Exclusively designed for visualizing relationships between categorical variables
Represent the relationship between two numerical variables through color
D
gradients
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Visualization - Multiple Variables
Plot Type of Data Usage Example
Helps us understand the correlation between pairs
Heatmap Numerical
of columns in the data by visualizing it as a matrix
rupaliasati1992@[Link]
EH4VJF9GMO
Provide quick insights into patterns
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.
Happy Learning !
rupaliasati1992@[Link]
EH4VJF9GMO
This file is meant for personal use by rupaliasati1992@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action. 25
Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited.