Lo 4
Lo 4
2. Generalization:
a. Cross-Validation Performance:
Interpretation: Cross-validation (e.g., k-fold cross-validation) helps ensure the
model's ability to generalize well to unseen data.
Interpretation: Comparing the performance on the training data versus the test
data helps to assess if the model is overfitting or underfitting.
Overfitting: If the model performs much better on the training data
compared to the test data, it may have memorized patterns in the
training data, making it unable to generalize to new data.
Underfitting: If both training and test performance are poor, the model
may be too simple (e.g., linear regression may not capture the
complexity of the relationship).
Linear regression makes several assumptions that need to be validated for the
model to be effective:
Effective Model:
Ineffective Model: