Technical Deep Dive, Forecasting, Data Science, Model Validation, Evaluation Metric.
Create the legend with labels for each forecast type plt.legend(['Actual Data', 'Naïve Forecast', 'Seasonal Naïve Forecast', 'Naïve with Drift Forecast', 'Moving Average Forecast']) plt.xlabel('Month') plt.ylabel('#Passengers') plt.title('Comparison of Time Series Forecasts') plt.grid(True) # Add