Unit-1&2 Viva Ques
Unit-1&2 Viva Ques
Sanity Checks:
Q: What are sanity checks in data analysis?
A: Sanity checks are used to verify the integrity and accuracy
of data by comparing it against known values or expectations.
Outliers Analysis with Box Plots:
Q: How do you identify outliers using box plots?
A: Outliers can be identified using box plots by looking for
data points that fall outside the whiskers of the box plot,
which are typically defined as 1.5 times the interquartile
range.
Histograms:
Q: What is a histogram?
A: A histogram is a graphical representation of the distribution
of numerical data, where the data is divided into bins and the
frequency of each bin is plotted.
Pie Charts:
Q: When is it appropriate to use a pie chart?
A: Pie charts are appropriate for showing the composition of a
whole, such as the distribution of different categories within a
dataset.
Bar Charts:
Q: How do you interpret a bar chart?
A: A bar chart is used to compare the values of different
categories, where the height of each bar represents the value
of the category.
Scatter Plots:
Q: What is a scatter plot?
A: A scatter plot is a graphical representation of the
relationship between two numerical variables, where each
data point is represented by a dot on the plot.
UNIT-2
Introduction to Seaborn:
Q: What is Seaborn?
A: Seaborn is a Python data visualization library based on
matplotlib that provides a high-level interface for drawing
attractive and informative statistical graphics.
Styling Options:
Q: How can you change the style of plots in Seaborn?
A: You can change the style of plots in Seaborn using the
sns.set_style() function, which allows you to choose from
different predefined styles such as "darkgrid", "whitegrid",
"dark", "white", and "ticks".
Regplots:
Q: What is a regplot in Seaborn?
A: A regplot is a scatter plot with a linear regression line fit to
the data, which allows you to visualize the relationship
between two numerical variables and assess the strength of
the relationship.
Pair Plots:
Q: What is a pair plot in Seaborn?
A: A pair plot is a grid of scatter plots that shows the
relationship between pairs of variables in a dataset, making it
easy to identify patterns and correlations.
Heatmaps:
Q: What is a heatmap in Seaborn?
A: A heatmap is a graphical representation of data where the
values of a matrix are represented as colors, making it easy to
visualize patterns and relationships in the data.
Line Charts:
Q: How can you create a line chart in Seaborn?
A: You can create a line chart in Seaborn using the
sns.lineplot() function, which allows you to plot the
relationship between two numerical variables over time or
another continuous variable.
Stacked Bar Charts:
Q: How can you create a stacked bar chart in Seaborn?
A: You can create a stacked bar chart in Seaborn using the
sns.barplot() function with the hue parameter set to a
categorical variable, which will stack the bars for each
category within the variable.
Plotly:
Q: What is Plotly?
A: Plotly is a Python graphing library that makes interactive,
publication-quality graphs online. It provides a wide range of
chart types, including line charts, scatter plots, bar charts, and
heatmaps, and allows for customization and interactivity.