Recall & Review
beginner
What is a scatter plot?
A scatter plot is a graph that shows points representing values for two different variables. It helps us see if there is a relationship or pattern between them.
Click to reveal answer
beginner
Which Python library is commonly used to create scatter plots?
Matplotlib is a popular Python library used to create scatter plots easily with the function
plt.scatter().Click to reveal answer
beginner
How do you add labels to the axes in a scatter plot using Matplotlib?
Use
plt.xlabel('X label') and plt.ylabel('Y label') to add labels to the x-axis and y-axis respectively.Click to reveal answer
beginner
What does it mean if points in a scatter plot form a clear upward trend?
It means there is a positive correlation: as one variable increases, the other tends to increase too.
Click to reveal answer
intermediate
How can you change the color and size of points in a scatter plot in Matplotlib?
Use the
c parameter to set colors and s parameter to set sizes in plt.scatter(). For example, plt.scatter(x, y, c='red', s=50).Click to reveal answer
What does each point in a scatter plot represent?
✗ Incorrect
Each point shows one value from each of the two variables, plotted on x and y axes.
Which function creates a scatter plot in Matplotlib?
✗ Incorrect
plt.scatter() is used specifically for scatter plots.If points in a scatter plot are randomly spread with no pattern, what does it suggest?
✗ Incorrect
Random spread means no clear relationship between variables.
How can you add a title to a scatter plot in Matplotlib?
✗ Incorrect
Use
plt.title() to add a title to your plot.Which parameter controls the size of points in
plt.scatter()?✗ Incorrect
The
s parameter sets the size of points.Explain how to create a basic scatter plot in Python using Matplotlib.
Think about the steps from importing the library to displaying the plot.
You got /4 concepts.
Describe what a scatter plot can tell you about the relationship between two variables.
Focus on what the pattern of points means.
You got /4 concepts.