Ordinary Least Squares (Linear Regression) Ordinary Least Squares (OLS) is the canonical linear regression model. It estimates coefficients that minimize squared prediction error and provides an interpretable baseline for continuous targets.
What is learned. During training, the algorithm builds or adjusts the parameters and internal representation used by Ordinary Least Squares (Linear Regression). The core learning mechanism is: Fits a linear function by minimizing the sum of squared residuals between observed and predicted continuous targets.
How training becomes inference. Prepare data → initialise the model state → evaluate the current objective → update parameters or structure → validate progress → use the final state for inference. Once training stops, the fitted state is reused on unseen inputs rather than being reconstructed from scratch. The resulting output is: A continuous numeric prediction; some probabilistic variants can also provide uncertainty or intervals.
Why practitioners use it. Fast, transparent coefficients, closed-form solution when assumptions and matrix conditioning permit. Typical fits include Interpretable baseline regression, trend estimation, econometrics, calibration, effect-size analysis.
What to verify before trusting it. Sensitive to outliers and multicollinearity; only linear in the chosen features unless features are transformed. The visual simulation is intentionally simplified, so real use should still validate preprocessing, data independence, hyperparameters, uncertainty and task-appropriate metrics.
Internal statethe parameters and internal representation used by Ordinary Least Squares (Linear Regression)
Typical outputA continuous numeric prediction; some probabilistic variants can also provide uncertainty or intervals.
Good fitInterpretable baseline regression, trend estimation, econometrics, calibration, effect-size analysis.
Main cautionSensitive to outliers and multicollinearity; only linear in the chosen features unless features are transformed.