4.5.42 · D2 · HinglishLinear Algebra (Full)

Visual walkthroughPseudoinverse

2,019 words9 min read↑ Read in English

4.5.42 · D2 · Maths › Linear Algebra (Full) › Pseudoinverse


Step 1 — Ek matrix space ke saath aslaan karta kya hai?

KYA. Hum input world (left) aur output world (right) draw karte hain. Machine arrow ko cross le jaati hai.

KYUN. Kuch bhi "invert" karne se pehle, humein forward motion kaisi dikhti hai yeh picture karna hoga. Ek inverse bas "is arrow ke saath waapis chalo" hai. Agar forward motion information kho de, toh backward motion perfect nahi ho sakti — aur wahi loss poori wajah hai ki exist karta hai.

PICTURE. Figure dekho. Input vector (lavender) squeeze aur rotate hokar (coral) ban jaata hai jo tilted column-space sheet par rehta hai. Output world ka har point us sheet par nahi hota — woh unreachable points exactly wahan hain jahan mushkil shuru hoti hai.

Symbols mein, har piece padhte hue:


Step 2 — Problem: sheet se door hai

KYA. Hum (coral dot) ko tilted sheet ke oopar floating rakhte hain, aur sheet par sabse kareeb point ko mark karte hain.

YEH IDEA KYUN, AUR NAHI. "Closest" ka ek fair matlab hai jab exact impossible ho. Closest matlab hai sabse choti distance — aur ek point se flat sheet tak sabse choti distance hamesha perpendicular ke saath measure ki jaati hai (koi bhi tedha raasta zyada lamba hota hai). Wahi perpendicular har cheez ka beej hai.

PICTURE. se tak ka dashed coral line sheet se right angle par milta hai (chhota square). Us dashed line ki length woh error hai jo hum avoid nahi kar sakte — residual.

Hum length ko square isliye karte hain kyunki squaring awkward square-root ko hata deta hai aur ek smooth bowl-shaped function deta hai jise minimise karna aasaan hai — minimum waise bhi same jagah baitta hai.


Step 3 — Perpendicular condition (yahi hai orthogonal projection)

KYA. Hum kehte hain ", ke saare columns ke perpendicular hai" ek clean line mein.

DOT PRODUCT / TRANSPOSE KYUN. Har column ke against perpendicularity test karne ke liye, hum residual ko se maarte hain ( ki har row ka ek column hai). Saare zeros milna matlab "koi bhi leftover sheet ke saath lean nahi karta." Yeh Step 2 ke geometric right angle ka exact algebraic twin hai — Orthogonal Projection dekho.

PICTURE. Residual arrow (coral) mint sheet se oopar khada hai; columns usme flat pade hain. Residual aur har column ke beech ka har angle hai.

Bracket expand karne se normal equations milti hain — "normal" purane zamane ka word hai "perpendicular" ke liye:


Step 4 — Tall case: solve karo, aur paida hota hai

KYA. Hum undo karke isolate karte hain. Jo bhi ab multiply karta hai wahi pseudoinverse hai — wahi literally iski definition hai yahan.

YEH ALLOWED KYUN HAI. Independent columns exactly woh condition hai ki ki koi zero direction nahi hai, isliye iska ordinary inverse exist karta hai. Agar columns dependent hote, toh ek direction ko zero mein flat kar deta aur invert karne se mana kar deta — woh Step 6 hai.

PICTURE. (mint arrow) floating se waapis input world mein jaata hai, least-squares answer par land karta hai. Yeh ek genuine left inverse hai: phir karne se tum exactly waapis aate ho, kyunki

Yeh precisely Least Squares Regression hai: best-fit line yahan rehti hai.


Step 5 — Fat case: bahut saare answers, sabse chota chuno

KYA. Saare valid mein se, hum woh single out karte hain jiska sabse chota length ho.

"SHORTEST" KYUN. Saare solutions sirf null space mein vectors se differ karte hain (woh directions jinhein zero mein crush karta hai — free, wasted energy; Four Fundamental Subspaces dekho). Saari null-space content hatane se woh unique piece bachti hai jo row space mein hoti hai. Trick automatically ko row space mein force karti hai, junk khatam karte hue. Shortest = solution line ke perpendicular.

PICTURE. Green solution line space mein drift karti hai; mint dot us par origin ke sabse kareeb point hai, line ki direction (null-space arrow) ke perpendicular baitha hua.

Yahan ek right inverse hai: .


Step 6 — Degenerate case: ek squashed direction

KYA. Hum machine ko poori ek axis ko zero mein flatten karte hue picture karte hain — ek pancake.

HUM FAKE KYU NAHI KAR SAKTE. Koi hamesha suggest karta hai "zero ki jagah bas ek chhote se divide karo." Lekin blast karta hai, noise ko sky-high uda deta hai (parent Mistake 3). Sachchi move: ek crushed direction mein koi information nahi hoti, isliye iska inverse contribution exactly zero hai.

PICTURE. Input square (lavender) ek single line (coral) par flat press ho jaata hai. Vertical direction hamesha ke liye chali gayi — koi honest arrow use waapis nahi la sakta.


Step 7 — SVD: universal machine, direction by direction

KYA. Kyunki pure rotations hain, unhe undo karna bas waapis rotate karna hai (, ). Sirf stretch step ko care ki zaroorat hai.

SIRF NONZEROS INVERT KYUN. Diagonal mein, ek nonzero stretch ko se shrink karke reverse kiya jaata hai. Ek zero stretch (Step 6 ki ek crushed direction) ka koi reverse nahi hota — use zero chhoddo. term by term padho:

PICTURE. ke liye teen coloured stages left-to-right follow karo: rotate, stretch, rotate. Phir return path right-to-left chalta hai: unrotate, un-stretch (sirf live axes), unrotate. Dead axis dono taraf flat rehti hai.

Yeh single formula Step 4 aur Step 5 ko special cases ke roop mein reproduce karta hai, aur Step 6 se bachta bhi hai. Squared stretches , ke eigenvalues hain.


Ek-picture summary

Poori journey ek canvas par: ke through forward hum rotate, stretch, rotate karte hain aur ek direction kho sakte hain; ke through backward hum unrotate, live parts un-stretch karte hain, unrotate — sab kuch recover karte hain jo recoverable hai, aur kuch nahi.

Recall Feynman retelling — poori walkthrough plain words mein

Ek matrix ek machine hai jo tumhara arrow pakad kar reshape karti hai, use ek flat sheet par gira deti hai. Phir tum use apna arrow waapis maangne ko kehte ho.

Agar tumhara target sheet se door float karta hai (noisy data), toh perfect return impossible hai — isliye nearest sheet point tak seedha-neeche perpendicular giraa deta hai aur wahi return karta hai. Woh perpendicular least squares hai (Steps 2–4), tall matrices ke liye deta hai.

Agar instead machine bahut saare correct returns allow kare (wide matrix), toh sabse chota, sabse aasaan wala choose karta hai — koi wasted null-space wandering nahi (Step 5), deta hai.

Aur jab machine ek direction ko kuch bhi nahi karna mein flatten kare (Step 6), koi honest arrow use un-flatten nahi kar sakta — isliye use zero par chhodta hai. SVD (Step 7) yeh automatically karta hai: rotations undo karo, sirf living stretches invert karo, dead ones skip karo. Wahi hai — ek formula sab par raaj karne ke liye.

Recall

Least-squares solution par residual kis ke perpendicular hota hai? ::: ke column space ke ( ke har column ke). tall case mein invertible kyun hota hai lekin rank-deficient case mein nahi? ::: Independent columns koi zero direction nahi dete; rank deficiency ek aise crushed direction chhodti hai jise zero par map karta hai. SVD formula mein, ek zero singular value ke saath kya hota hai? ::: Woh mein zero rehta hai — us direction mein invert karne ke liye koi information nahi hoti. Fat-matrix answer ko infinitely many solutions mein unique kya banata hai? ::: Woh sabse chota hota hai, null space ke perpendicular (saari null content remove kar di gayi).


Connections