What is a general Lp norm and how do the different values of p change its behavior?

Quick Overview

Asks you to define the general Lp norm and explain how the choice of p changes its behavior. Tests the special cases p = 1, 2 and infinity, how the unit ball changes shape, why p below 1 does not give a norm, and why L1 penalties produce sparse models.

What is a general Lp norm and how do the different values of p change its behavior?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

What is a general `Lp` norm and how do the different values of `p` change its behavior? ```hint Try one vector Compute the norm of a vector such as (3, -4, 0, 1) for p = 1, p = 2 and a large p. Then sketch the set of 2-D points whose norm equals 1 for each choice. ``` ### What a Strong Answer Covers - The general formula and the condition on p for it to be a true norm - The common special cases and what each one measures - How increasing p changes the weight on large components and the shape of the unit ball - What breaks for p below 1, and why the count of nonzero entries is not a norm - Where the choice of p matters in practice, such as regularization, loss functions or distance metrics ### Follow-up Questions - Why does an L1 penalty tend to produce coefficients that are exactly zero while an L2 penalty does not? - Show that the L-infinity norm is at most the L2 norm, which is at most the L1 norm. What are the reverse bounds in terms of the dimension n? - Give a concrete pair of vectors that breaks the triangle inequality for p = 1/2. - How does the choice of p in a Minkowski distance affect k-nearest neighbors?

Overview: Asks you to define the general Lp norm and explain how the choice of p changes its behavior. Tests the special cases p = 1, 2 and infinity, how the unit ball changes shape, why p below 1 does not give a norm, and why L1 penalties produce sparse models.

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

What is a general Lp norm and how do the different values of p change its behavior?

What a Strong Answer Covers Guidance

  • The general formula and the condition on p for it to be a true norm
  • The common special cases and what each one measures
  • How increasing p changes the weight on large components and the shape of the unit ball
  • What breaks for p below 1, and why the count of nonzero entries is not a norm
  • Where the choice of p matters in practice, such as regularization, loss functions or distance metrics

Follow-up Questions Guidance

  • Why does an L1 penalty tend to produce coefficients that are exactly zero while an L2 penalty does not?
  • Show that the L-infinity norm is at most the L2 norm, which is at most the L1 norm. What are the reverse bounds in terms of the dimension n?
  • Give a concrete pair of vectors that breaks the triangle inequality for p = 1/2.
  • How does the choice of p in a Minkowski distance affect k-nearest neighbors?