Skip to content
Linear Algebra•beginner

Vector Norms and Distance

Different ways to measure the "size" of a vector

Why This Matters for ML

L1/L2 regularization, loss functions, and k-NN all depend on distance metrics

Interactive Visualization

Interact with the visualization to explore

L1 (Manhattan)

7.00

L2 (Euclidean)

5.00

L∞ (Max)

4.00

The Key Intuition

Explore this concept through the interactive visualization. Try different parameters and observe how the output changes!

Try It Yourself

Use the visualization controls to:

  • Drag vectors to see transformations in real-time
  • Adjust parameters with sliders
  • Observe how changes affect the output
  • Connect the visual behavior to the math