Mastering Linear Regression: From Theories to Predictions