📈 Linear Regression
Linear regression models the relationship between a dependent variable and one or more features by fitting a linear function.Hypothesis
For an input vector , the model predictsLoss Function
Parameters are learned by minimizing the mean squared error (MSE):Example (scikit-learn)
Interpretation
- Coefficients show how much the prediction changes per unit increase in feature .
- The model is fast and interpretable but assumes a linear relationship between features and target.