# Least Squares & Regression

Canonical: https://manyspace.aporia.systems/topics/least-squares-regression-mth-opt-241
Updated: 2026-10-24

Mathematics · Optimization · MTH-OPT-241

- Difficulty: 3 / 5
- Importance: 5 / 5
- Study time: 4–8.5 h

normal equations, ridge regression, regularization

## Why it matters

Choosing the best under constraints; central to operations research, ML training, engineering design and business resource allocation.

## Where it is used

Supply chains, pricing algorithms, portfolio optimization, neural network training, logistics, ad auctions.

## How you know you have learned it

Produce working code/model + convergence/validation/error analysis.

## What you need first

- [Gaussian Elimination](https://manyspace.aporia.systems/topics/gaussian-elimination-mth-linalg-155) (required)
- [Orthogonal Projections & Least Squares](https://manyspace.aporia.systems/topics/orthogonal-projections-least-squares-mth-linalg-165) (required)
- [3D Coordinates & Vectors](https://manyspace.aporia.systems/topics/3d-coordinates-vectors-mth-multc-168) (required)

## What it opens

- [Linear Regression II: Least Squares Fitting](https://manyspace.aporia.systems/topics/linear-regression-ii-least-squares-fitting-aiml-lin-003)

## Resources

- Introduction to Linear Programming — Bertsimas & Tsitsiklis
- Convex Optimization (Boyd & Vandenberghe) — Boyd & Vandenberghe
- Convex Optimization (Boyd & Vandenberghe) — Boyd & Vandenberghe
