In a machine learning code, that computes optimum parameters $\theta _{MLE}$ of a linear regression model, by maximum likelihood estimation:
$$ \boldsymbol \theta^\text{ML} = (\boldsymbol\Phi^T\boldsymbol\Phi )^{-1}\boldsymbol\Phi^T\boldsymbol y $$
Where $y$ is the target vector and $\Phi$ is the polynomial feature matrix. In the linked notebook we can find:
For reasons of numerical stability, we often add a small diagonal "jitter" $\kappa$ to $\boldsymbol\Phi^T\boldsymbol\Phi$ so that we can invert the matrix without significant problems so that the maximum likelihood estimate becomes $$ \boldsymbol \theta^\text{ML} = (\boldsymbol\Phi^T\boldsymbol\Phi + \kappa\boldsymbol I)^{-1}\boldsymbol\Phi^T\boldsymbol y $$
In the code, $\kappa$ is very small value of 1e-08.
So, how does the diagonal "jitter" $\kappa$ affects stability?