Update pages/Linear_Regression_Algorithm.py
Browse files
pages/Linear_Regression_Algorithm.py
CHANGED
|
@@ -28,8 +28,7 @@ Where:
|
|
| 28 |
- `y`: predicted output
|
| 29 |
|
| 30 |
The model is trained using **Ordinary Least Squares (OLS)** to minimize the **Mean Squared Error (MSE)**:
|
| 31 |
-
|
| 32 |
-
\[ \text{MSE} = \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y}_i)^2 \]
|
| 33 |
|
| 34 |
---
|
| 35 |
|
|
|
|
| 28 |
- `y`: predicted output
|
| 29 |
|
| 30 |
The model is trained using **Ordinary Least Squares (OLS)** to minimize the **Mean Squared Error (MSE)**:
|
| 31 |
+
\text{MSE} = \frac{1}{n} \sum_{i=1}^{n} (y_i - \hat{y}_i)^2
|
|
|
|
| 32 |
|
| 33 |
---
|
| 34 |
|