Gradient Descent Algorithm

<aside> 💡

Gradient descent is a mathematical technique that iteratively finds the weights (slope) and bias (intercept) that produce the model with the lowest loss.

</aside>

IMG_20250726_094921.jpg


The Updated Equation:

$$ \begin{align*} \hat{y}i &= w_0 + w_1 x_i \\ \\ \text{MSE} &= \frac{1}{n}\sum_{i=1}^{n} (y_i - \hat{y}i)^2 \\ \\ w{\text{new}} &= w_{\text{old}} - \alpha \frac{\partial}{\partial w}\text{Error}(w) \end{align*} $$