ML Notes Mathematics FundamentalsLinear Algebra

Vectors, Norms, and Dot Product

Math fundamentals note for ML preparation.

Contents

Core Idea

Key Formulas

∥x∥1=∑i∣xi∣,∥x∥2=∑ixi2\|x\|_1 = \sum_i |x_i|, \quad \|x\|_2 = \sqrt{\sum_i x_i^2} x⊤y=∑ixiyix^\top y = \sum_i x_i y_i cos⁡(θ)=x⊤y∥x∥2∥y∥2\cos(\theta) = \frac{x^\top y}{\|x\|_2\|y\|_2}

Practical Notes

Feature scaling affects all norm-based comparisons.

L1 and L2 norms serve different modeling goals.

Why This Matters for ML

← Back to Blog