Recall & Review
beginner
What is the purpose of adding jitter in a categorical scatter plot?
Jitter adds small random noise to data points to prevent them from overlapping, making it easier to see the distribution of points in categories.
Click to reveal answer
beginner
How do you create a basic categorical scatter plot using matplotlib?
Use plt.scatter() with x as categorical labels converted to numbers and y as values. Adding jitter to x helps separate overlapping points.
Click to reveal answer
intermediate
What is a simple way to add jitter to categorical x-axis values in matplotlib?
Add a small random value (e.g., from numpy.random.normal) to the numeric positions of categories before plotting.
Click to reveal answer
beginner
Why might a categorical scatter plot without jitter be misleading?
Without jitter, points with the same category and value overlap exactly, hiding the true number of points and distribution.
Click to reveal answer
beginner
Which matplotlib function is commonly used to create scatter plots with jitter?
plt.scatter() is used to create scatter plots; jitter is added manually by adjusting x or y values before plotting.
Click to reveal answer
What does jitter do in a categorical scatter plot?
✗ Incorrect
Jitter adds small random noise to points to prevent overlap and improve visibility.
Which Python library is commonly used to add jitter in scatter plots?
✗ Incorrect
numpy provides functions like random.normal to generate jitter values.
In matplotlib, how do you represent categorical x-axis values for scatter plots?
✗ Incorrect
Matplotlib scatter requires numeric x values, so categories are converted to numbers.
What happens if you do not add jitter to a categorical scatter plot with many overlapping points?
✗ Incorrect
Without jitter, overlapping points hide the true distribution.
Which matplotlib function is used to create scatter plots?
✗ Incorrect
plt.scatter() creates scatter plots.
Explain how to create a categorical scatter plot with jitter using matplotlib.
Think about how to avoid overlapping points in categories.
You got /4 concepts.
Why is jitter important in categorical scatter plots and how does it improve data understanding?
Consider what happens when many points share the same category and value.
You got /4 concepts.