1.1.4 · HinglishLinear Algebra Essentials

Vector norms (L1, L2, L-infinity, Lp)

1,541 words7 min readRead in English

1.1.4 · AI-ML › Linear Algebra Essentials


Norm kya hai? (first principles)

Yeh teen axioms kyun? Yeh woh minimum hain jo "size" ko sensibly behave karaane ke liye chahiye:

  • Axiom 1 kehta hai sirf zero vector ki zero length hoti hai.
  • Axiom 2 kehta hai ek vector ko double karne se uski length double hoti hai (scaling linear hai).
  • Axiom 3 kehta hai ek detour kabhi seedhe raaste se chota nahi hota.

Lp family

Ise kaise padhen: har coordinate ki magnitude ko power pe raise karo, sum karo, phir -th root lo. Root "undo" karta hai power ko taaki homogeneity hold kare.

Special cases derive karna

L∞ limit ki derivation (scratch se). Maano . Ise factor out karo: Har ratio hota hai. Maano coordinates max ke equal hain (ratio ), baaki hain. Jab , ratio waale terms vanish ho jaate hain, toh sum ho jaata hai. Phir kyunki kisi bhi fixed ke liye hota hai. Is tarah . ∎

Figure — Vector norms (L1, L2, L-infinity, Lp)

Worked examples

Poore examples mein hai.


Common mistakes (Steel-manned)


Feynman check

Recall Ek 12-saal ke bachche ko explain karo

Imagine karo tum ghar pe ho aur tumhara dost 3 blocks east aur 4 blocks north rehta hai.

  • Agar tum galiyoon pe chalte ho toh 3 + 4 = 7 blocks jaoge. Yeh L1 distance hai.
  • Agar tum seedhi line mein ud sako toh yeh 5 blocks hai (diagonal). Yeh L2 hai.
  • Agar tumhe sirf sabse lamba single stretch chahiye, toh woh 4 hai (north wala hissa). Yeh L∞ hai. Same do dost, teen jawaab — kyunki "kitni door" depend karta hai tum kaise move kar sakte ho.

Flashcards

Norm ko define karne waale teen axioms kya hain?
Non-negativity (), absolute homogeneity (), triangle inequality ().
Lp norm ka general formula?
for .
ka L1 norm?
.
ka L2 norm?
.
ka L∞ norm?
.
L1 sparsity kyun induce karta hai lekin L2 nahi?
L1 ka unit ball ek diamond hai jiske corners axes pe hain, toh optimal solutions axes pe land karte hain → coordinates exactly 0 ho jaate hain; L2 ka ball smooth hai (ek circle) jiske koi corners nahi.
Same vector ke norms ke beech general inequality?
; bada chota-ya-equal norm deta hai.
L0 true norm kyun nahi hai?
Yeh nonzeros count karta hai lekin homogeneity violate karta hai: .
derive karo.
factor karo: ; ratios vanish ho jaate hain jab , bachta hai.
Dot product se kaunsa norm relate karta hai?
L2, kyunki .
Lp kis ke liye valid norm hai?
(usse neeche triangle inequality fail ho jaati hai).

Connections

Concept Map

3 axioms define

set p=1

set p=2

p to infinity

equals sqrt of

shape is

shape is

shape is

used as

used as

corners induce sparsity

Norm axioms

Lp norm family

L1 Manhattan

L2 Euclidean

L-infinity Max

Unit balls in 2D

ML applications

Dot product x^T x

Diamond corners

Circle

Square

Lasso regularizer

Ridge regularizer