What are vector norms and can you explain the difference between L1, L2, and L∞ norms?

Quick Overview

Asks what a vector norm is and how the L1, L2 and L-infinity norms differ in definition, geometry and use. Tests the norm axioms, unit-ball shapes, why an L1 penalty produces sparse solutions, and where each norm appears in machine learning.

What are vector norms and can you explain the difference between L1, L2, and L∞ norms?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

What are vector norms, and can you explain the difference between the L1, L2 and L∞ norms? ```hint Try one vector Compute all three for a small vector such as $(3, -4)$, then picture the set of 2D points where each norm equals 1. ``` ### What a Strong Answer Covers - The definition of a norm and the properties a function must satisfy to be one - The formula for each of the three norms, with a worked example - The shape of each unit ball and what it says about how the norm treats coordinates - Where each norm appears in data science and machine learning, including why an L1 penalty leads to sparsity ### Follow-up Questions - Why does an L1 penalty set some coefficients exactly to zero while an L2 penalty does not? - Is the "L0 norm" (the number of nonzero entries) a norm? Why or why not? - How are the three norms ordered for any vector, and how do the gaps between them grow with dimension? - Which of these norms stays the same when you rotate the coordinate system?

Overview: Asks what a vector norm is and how the L1, L2 and L-infinity norms differ in definition, geometry and use. Tests the norm axioms, unit-ball shapes, why an L1 penalty produces sparse solutions, and where each norm appears in machine learning.

General logo
General
Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

What are vector norms, and can you explain the difference between the L1, L2 and L∞ norms?

What a Strong Answer Covers Guidance

  • The definition of a norm and the properties a function must satisfy to be one
  • The formula for each of the three norms, with a worked example
  • The shape of each unit ball and what it says about how the norm treats coordinates
  • Where each norm appears in data science and machine learning, including why an L1 penalty leads to sparsity

Follow-up Questions Guidance

  • Why does an L1 penalty set some coefficients exactly to zero while an L2 penalty does not?
  • Is the "L0 norm" (the number of nonzero entries) a norm? Why or why not?
  • How are the three norms ordered for any vector, and how do the gaps between them grow with dimension?
  • Which of these norms stays the same when you rotate the coordinate system?