Skip to main content

> ML_ALGORITHM // LINEAR-REGRESSION_v1.0

Ordinary Least Squares Linear Regression

The foundational parametric method for modeling continuous target variables via linear combinations of independent predictors.

Linear & Generalized Modelsclassical-supervisedhigh-intrinsicsmall (<1k)
Back to All Algorithms
Computational Complexity
Training Complexity:O(n * p^2 + p^3) for exact solution
Inference Complexity:O(p) dot product
Hardware Profile
CPU Friendly:Yes
Requires GPU:No
Memory Footprint:low
Interpretability & Data
Interpretability Tier:high-intrinsic
Training Data Needs:small (<1k)

Interpretability Assessment

Directly readable regression coefficients represent marginal impact per unit change.

Suitable Tasks & Supported Modalities

Suitable Tasks:
regressionforecasting
Supported Modalities:
tabulartime-series

Implementing Libraries

scikit-learnscikit-learn Consortium / Inria · v1.5.2
View Spec
statsmodelsstatsmodels Developers / NumFOCUS · v0.14.4
View Spec
caret-r
linfa

Foundational Literature

Common Pitfalls & Warnings
  • Extrapolating beyond training feature ranges
  • Ignoring leverage points and influential outliers