🇮🇳 Data Science & Machine Learning · subject
Data Science & Machine Learning Exploratory Data Analysis and Visualization Syllabus
The Exploratory Data Analysis and Visualization syllabus for Data Science & Machine Learning in full: 4 chapters, 12 topics and 20 sub-topics, every one listed below, plus 50 Exploratory Data Analysis and Visualization flashcards with answers.
Exploratory Data Analysis and Visualization syllabus: all 4 chapters
Expand any chapter to see its topics and sub-topics.
-
Exploratory Data Analysis Workflow
3 topics- Univariate Analysis
- Distribution of single variables
- Bivariate and Multivariate Analysis
- Relationships between features
- Correlation heatmaps
- Summary Statistics and Profiling
- describe and info
- Automated profiling reports
- Univariate Analysis
-
Visualization with Matplotlib
3 topics- Plot Anatomy
- Figure and axes objects
- Subplots and layout
- Basic Chart Types
- Line and scatter plots
- Bar and histogram
- Customization
- Labels, legends and titles
- Colors and styles
- Plot Anatomy
-
Statistical Visualization with Seaborn
3 topics- Distribution Plots
- histplot, kdeplot and boxplot
- Relationship Plots
- scatterplot and pairplot
- Regression plots
- Categorical Plots
- countplot and violinplot
- Heatmaps
- Distribution Plots
-
Interactive and Dashboard Visualization
3 topics- Plotly Basics
- Interactive charts
- Insight Communication
- Choosing the right chart
- Storytelling with data
- Dashboards and Reporting
- Streamlit and Power BI overview
- Plotly Basics
Data Science & Machine Learning Exploratory Data Analysis and Visualization flashcards — 50 questions with answers
What is Exploratory Data Analysis (EDA)?
An approach to analyzing datasets to summarize their main characteristics, often using visual methods, to discover patterns, spot anomalies, test hypotheses, and check assumptions before formal modeling. The term was popularized by John Tukey.
What is univariate analysis?
The analysis of a single variable at a time. Its purpose is to describe and summarize that one variable, examining its distribution, central tendency, and spread, without examining relationships to other variables.
Which plots are commonly used for univariate analysis of a numerical variable?
Histograms, density (KDE) plots, box plots, and violin plots — used to show the distribution, shape, spread, and outliers of a single numerical variable.
Which plots are commonly used for univariate analysis of a categorical variable?
Bar charts (count plots) and pie charts, which show the frequency or proportion of each category.
What is bivariate analysis?
The analysis of the relationship between exactly two variables at a time, to determine whether and how they are associated (e.g., correlation, dependence, or differences across groups).
What is multivariate analysis?
The simultaneous analysis of three or more variables to understand relationships, interactions, and combined effects among them (e.g., using pair plots, correlation heatmaps, or color/size encodings).
Which plot type is best for visualizing the relationship between two numerical variables?
A scatter plot, which plots one variable on the x-axis and the other on the y-axis to reveal correlation, clusters, trends, and outliers.
How can you visualize the relationship between a numerical and a categorical variable?
Using grouped box plots, violin plots, or bar plots of an aggregate (e.g., mean) of the numerical variable across the categories.
What tool visualizes the relationship between two categorical variables?
A contingency table (cross-tabulation), often visualized with a grouped/stacked bar chart or a heatmap of the counts.
What is a pair plot (scatterplot matrix) used for?
It is a multivariate tool that plots pairwise scatter plots for every combination of numerical variables in a dataset (with distributions on the diagonal), giving a quick overview of all bivariate relationships.
List the common measures of central tendency.
The mean (arithmetic average), the median (middle value when sorted), and the mode (most frequent value).
List the common measures of dispersion (spread).
Range, variance, standard deviation, and the interquartile range (IQR).
What is the formula for the sample variance?
s² = Σ(xᵢ − x̄)² / (n − 1), the average of squared deviations from the mean using Bessel's correction (n − 1 denominator).
How is the standard deviation related to the variance?
The standard deviation is the square root of the variance. It expresses spread in the same units as the original data.
What is the interquartile range (IQR) and how is it calculated?
The IQR is the spread of the middle 50% of the data, calculated as Q3 − Q1 (the 75th percentile minus the 25th percentile).
What is the 1.5×IQR rule for identifying outliers?
A value is flagged as an outlier if it falls below Q1 − 1.5×IQR or above Q3 + 1.5×IQR. This is the basis for the whiskers in a standard box plot.
What does skewness measure?
Skewness measures the asymmetry of a distribution. Positive (right) skew has a long right tail (mean > median); negative (left) skew has a long left tail (mean < median); zero skew is symmetric.
What does kurtosis measure?
Kurtosis measures the 'tailedness' (heaviness of the tails) of a distribution relative to a normal distribution. High kurtosis indicates heavy tails/more outliers; low kurtosis indicates light tails.
In pandas, what does df.describe() produce?
A summary of descriptive statistics for numerical columns: count, mean, standard deviation, min, 25%, 50% (median), 75%, and max.
What is data profiling in EDA?
The process of examining and summarizing a dataset's structure and quality — data types, missing values, unique counts, distributions, and statistics — often automated by tools like ydata-profiling (pandas-profiling).
Show the other 30 Exploratory Data Analysis and Visualization flashcards
Name the main anatomical components of a Matplotlib plot.
The Figure (the overall container), the Axes (an individual plot/subplot), the axis (x and y with ticks, tick labels, and axis labels), the title, the legend, and the plotted artists (lines, markers, bars).
What is the difference between a Figure and an Axes in Matplotlib?
The Figure is the top-level container holding everything; an Axes is a single plotting area (with its own data, ticks, and labels) inside the Figure. A Figure can contain multiple Axes.
What is the difference between Matplotlib's pyplot (state-based) and object-oriented interfaces?
The pyplot interface (plt.plot, plt.title) implicitly acts on the 'current' Figure/Axes and is convenient for quick plots; the object-oriented interface (fig, ax = plt.subplots(); ax.plot()) explicitly references objects and is preferred for complex, multi-axes figures.
Which Matplotlib function creates a Figure with one or more Axes?
plt.subplots(nrows, ncols), which returns a tuple of the Figure and the Axes (or array of Axes).
When should you use a line chart?
A line chart is best for showing trends in a continuous variable over an ordered sequence, typically time (time series data).
When should you use a bar chart versus a histogram?
A bar chart compares values across distinct categories (categorical x-axis with gaps between bars); a histogram shows the frequency distribution of a single continuous variable by binning it (adjacent bars, no gaps).
What does each part of a box plot represent?
The box spans Q1 to Q3 (the IQR), the line inside is the median (Q2), the whiskers extend to the most extreme points within 1.5×IQR, and points beyond the whiskers are plotted as outliers.
What is a histogram bin, and why does bin width matter?
A bin is an interval into which data values are grouped; the bar height is the count in that interval. Bin width controls granularity: too wide hides structure, too narrow adds noise; choice strongly affects the histogram's appearance.
What is a kernel density estimate (KDE) plot?
A smoothed, continuous estimate of a variable's probability density function, produced by summing kernels placed at each data point — a smooth alternative to a histogram.
What is a violin plot and what does it add over a box plot?
A violin plot combines a box plot with a mirrored KDE, showing not just the quartiles and median but also the full shape (density) of the distribution, including multimodality.
In Matplotlib, how do you add axis labels, a title, and a legend?
Use ax.set_xlabel(), ax.set_ylabel(), ax.set_title(), and ax.legend() (the legend uses the 'label' argument given to each plotted series).
What is a colormap (cmap) in plotting?
A mapping from data values to colors used to encode a numeric dimension. Types include sequential (ordered data), diverging (data with a meaningful midpoint), and qualitative (categorical data).
How can you change the size of a Matplotlib figure?
Pass figsize=(width, height) in inches to plt.figure() or plt.subplots(), e.g., plt.subplots(figsize=(10, 6)).
What is Seaborn and how does it relate to Matplotlib?
Seaborn is a high-level statistical data visualization library built on top of Matplotlib. It provides attractive default styles and concise functions for complex statistical plots, integrating closely with pandas DataFrames.
What is the difference between Seaborn's figure-level and axes-level functions?
Axes-level functions (e.g., sns.scatterplot, sns.histplot) draw onto a single Matplotlib Axes; figure-level functions (e.g., sns.relplot, sns.displot, sns.catplot) manage their own Figure and can create faceted grids of multiple subplots.
Which Seaborn function creates distribution plots, and what kinds can it show?
sns.displot (figure-level) and sns.histplot/sns.kdeplot/sns.ecdfplot (axes-level) create distribution plots — histograms, KDE curves, and empirical cumulative distribution functions (ECDFs).
What does an ECDF (empirical cumulative distribution function) plot show?
It plots, for each value, the proportion of data points less than or equal to that value — a monotonically increasing step curve from 0 to 1 that shows percentiles without binning.
Which Seaborn function is used for relationship plots between two numerical variables?
sns.relplot (figure-level) with kind='scatter' or kind='line', or the axes-level sns.scatterplot and sns.lineplot.
How do hue, size, and style parameters enrich a Seaborn relationship plot?
They add extra dimensions via semantic mapping: hue maps a variable to color, size maps a variable to marker/line size, and style maps a variable to marker shape or line dash — enabling multivariate visualization in one plot.
What is a regression plot (sns.regplot / lmplot) used for?
It draws a scatter plot of two numerical variables and overlays a fitted regression line with a confidence interval, to visualize a linear (or polynomial) trend between them.
What categorical plot types does Seaborn's catplot support?
strip, swarm (scatter-type); box, violin, boxen (distribution-type); and bar, count, point (estimate-type) plots — selected via the kind parameter.
What is the difference between a strip plot and a swarm plot?
Both show individual points across categories; a strip plot may overlap points (often with jitter), while a swarm plot adjusts point positions so none overlap, giving a clearer view of density at small data sizes.
What does a Seaborn count plot show?
It shows the number of observations in each category (a bar chart of frequencies), equivalent to a histogram for a single categorical variable.
What does the bar in a Seaborn barplot represent by default, and what do the error bars show?
By default the bar height is the mean of the numerical variable for each category, and the error bars show a 95% confidence interval of that estimate (via bootstrapping).
What is a heatmap and a common EDA use for it?
A heatmap encodes matrix values as colors. A common EDA use is visualizing a correlation matrix to quickly see which variable pairs are strongly positively or negatively correlated.
What is Plotly and what key feature distinguishes it from Matplotlib/Seaborn?
Plotly is a graphing library that produces interactive, web-based visualizations supporting hover tooltips, zooming, panning, and toggling — unlike the static images typically produced by Matplotlib and Seaborn.
What is Plotly Express?
plotly.express (imported as px) is the high-level, concise interface to Plotly that creates entire interactive figures with a single function call (e.g., px.scatter, px.line, px.bar) directly from a DataFrame.
What are the principles of effective insight communication in data visualization?
Choose the right chart for the message, reduce clutter (high data-ink ratio), use clear titles and labels, highlight the key takeaway, use color purposefully, and tailor the visualization to the audience.
What is a dashboard in the context of data reporting?
A single interface that consolidates and displays multiple related visualizations and key metrics (KPIs), often interactive, to monitor and communicate the state of a system or business at a glance.
Name common Python tools for building interactive data dashboards.
Dash (by Plotly), Streamlit, Panel, and Voila — used to turn Python analyses and Plotly/Matplotlib charts into shareable interactive web dashboards.
Data Science & Machine Learning Exploratory Data Analysis and Visualization FAQ
What is in the Data Science & Machine Learning Exploratory Data Analysis and Visualization syllabus?
Data Science & Machine Learning Exploratory Data Analysis and Visualization is split into 4 chapters: Exploratory Data Analysis Workflow, Visualization with Matplotlib, Statistical Visualization with Seaborn and Interactive and Dashboard Visualization. Together they contain 12 topics and 20 sub-topics.
How many chapters are in Data Science & Machine Learning Exploratory Data Analysis and Visualization?
4 chapters, containing 12 topics and 20 sub-topics. The largest chapter is Exploratory Data Analysis Workflow, with 3 topics.
Are there flashcards for Data Science & Machine Learning Exploratory Data Analysis and Visualization?
Yes — a 50-card Exploratory Data Analysis and Visualization deck, printed in full in the flashcards section of this page and available in the Examius app with spaced repetition. The free plan covers one exam of your choice, including its flashcards; Examius Pro, a one-time purchase, unlocks every other exam and deck.