Recall & Review
beginner
What is a boxplot used for in data analysis?
A boxplot shows the distribution of a dataset by displaying its median, quartiles, and potential outliers. It helps compare groups by visualizing spread and central tendency.
Click to reveal answer
intermediate
What does a violinplot add to the information shown by a boxplot?
A violinplot shows the same summary statistics as a boxplot but also displays the data's density distribution, giving a fuller picture of how data points are spread.
Click to reveal answer
beginner
Which Python library is commonly used to create boxplots and violinplots?
Seaborn is a popular Python library that makes it easy to create boxplots and violinplots with simple commands and good default styles.
Click to reveal answer
intermediate
In a boxplot, what do the whiskers represent?
Whiskers extend from the box to show the range of the data within 1.5 times the interquartile range from the quartiles. Points outside are considered outliers.
Click to reveal answer
intermediate
Why might you choose a violinplot over a boxplot?
Choose a violinplot when you want to see the shape of the data distribution, such as if it is bimodal or skewed, which a boxplot alone does not show.
Click to reveal answer
What does the thick line inside a boxplot represent?
✗ Incorrect
The thick line inside the boxplot shows the median, which is the middle value of the data.
Which plot shows data density along with summary statistics?
✗ Incorrect
Violinplots combine summary statistics with a density plot to show data distribution shape.
In seaborn, which function creates a boxplot?
✗ Incorrect
sns.boxplot() is the function used to create boxplots in seaborn.
What do outliers look like in a boxplot?
✗ Incorrect
Outliers are shown as dots or points outside the whiskers in a boxplot.
Which plot is better to understand if data is bimodal?
✗ Incorrect
Violinplots show the shape of the data distribution, making it easier to see if data has two peaks (bimodal).
Explain the main differences between a boxplot and a violinplot.
Think about what extra information the violinplot provides beyond the boxplot.
You got /4 concepts.
Describe how you would use seaborn to create a boxplot for comparing groups in a dataset.
Remember the basic seaborn plotting steps and parameters.
You got /4 concepts.