Data Science, Machine Learning, Regression, Data Analysis, Statistics.
color='gray', label='Data Points') plt.plot(x_test, y_linear, label='Linear Model (Underfit)', color='blue') plt.plot(x_test, y_poly_good, label='Polynomial Model (Good Fit)', color='green') plt.plot(x_test, y_poly_overfit, label='Polynomial Model (Overfit)', color='red') plt.xlabel('Predictor