Recall & Review
beginner
What is the main purpose of comparing multiple time series in data science?
To observe and analyze how different variables change over time relative to each other, helping identify patterns, correlations, or differences.
Click to reveal answer
beginner
Which matplotlib function is commonly used to plot multiple time series on the same graph?
The
plt.plot() function can be called multiple times or with multiple series to plot several time series on the same axes.Click to reveal answer
beginner
Why is it important to use a legend when plotting multiple time series?
A legend helps identify which line corresponds to which time series, making the graph easier to understand.
Click to reveal answer
intermediate
How can you improve readability when multiple time series have very different scales?
You can use separate y-axes (twin axes) or normalize the data so all series fit well on the same scale.
Click to reveal answer
beginner
What does overlapping multiple time series on one plot help you discover?
It helps discover relationships like trends, seasonal patterns, or anomalies that occur at the same time across series.
Click to reveal answer
Which matplotlib function is used to add a legend to a plot?
✗ Incorrect
The
plt.legend() function adds a legend to the plot, showing labels for each line.What is a good way to handle multiple time series with very different value ranges?
✗ Incorrect
Normalizing or using separate y-axes helps visualize series with different scales clearly.
What does overlapping multiple time series on one plot help identify?
✗ Incorrect
Overlapping time series helps identify relationships, trends, and patterns across the series.
Which of these is NOT a good practice when plotting multiple time series?
✗ Incorrect
Plotting without labels makes it hard to understand which line represents which series.
In matplotlib, how do you plot two time series stored in lists x and y1, y2 on the same graph?
✗ Incorrect
Calling
plt.plot() twice with the same x and different y values plots both series on the same graph.Explain how you would plot and compare two time series using matplotlib. Include how to make the plot clear and easy to understand.
Think about how to show both series clearly on one graph.
You got /4 concepts.
Describe methods to handle multiple time series with very different scales when plotting them together.
Consider how to make all series visible and comparable.
You got /4 concepts.