Math-803-Lecture 19-Matrix - Approx - PCA
Math-803-Lecture 19-Matrix - Approx - PCA
MATH-810
Mathematical Methods for
Artificial Intelligence
Covid-19 SOPs
• Wear a mask at all times in the class
• Practice social distancing
• Follow good hygiene practices
• Use a hand sanitizer
• Avoid Handshakes
3
General Conduct
• Be respectful of others
• Only speak at your turn and preferably raise your hand if you want to say
something
• Do not cut off others when they are talking
• Join the class on time
4
Objective Today
Recap
SVD Example
1 0 1 1 −2
𝑨= 1 0 1 2 −2
−2 1 0 𝑨𝑨𝑻 = 0 1 =
−2 1 0 −2 5
1 0
𝑨 = 𝑼𝜮𝑽𝑇 𝑨𝑨𝑻 − 𝝀𝑰 =
2−𝜆 −2
−2 5−𝜆
(2 × 3) = (2 × 2)(2 × 3)(3 × 3)
𝒅𝒆𝒕 𝑨𝑨𝑻 − 𝝀𝑰 = 2 − 𝜆 5 − 𝜆 − 4
𝜆1 = 6 , 𝜆2 = 1
7
2−𝜆 −2
𝑨𝑨𝑻 − 𝝀𝑰 =
−2 5−𝜆
For 𝜆1 = 6 , 𝑨𝑨𝑻 − 𝝀𝑰 = 0
4𝑥 + 2𝑦 = 0
𝑥 1 1 1
−4 −2 ⋮ 0 −4 −2 ⋮ 0 𝐿𝑒𝑡 𝑥 = 𝑟 𝑦 = 𝑟 −2 𝒖𝟏 =
−2 −1 ⋮ 0 0 0 ⋮ 0 5 −2
𝑦 = −2𝑟
For 𝜆2 = 1 , 𝑨𝑨𝑻 − 𝝀𝑰 = 0 𝑥 − 2𝑦 = 0
𝑥 2 1 2
𝐿𝑒𝑡 𝑦 = 𝑟
1 −2 ⋮ 0 1 −2 ⋮ 0 𝑦 =𝑟 1 𝒖𝟐 =
5 1
−2 4 ⋮ 0 0 0 ⋮ 0 𝑥 = 2𝑟
11 2
𝑼=
5 −2 1
8
𝟏 𝑻 1 1 1 0 1 = 1
𝒗𝑻𝟏 = 𝒖𝟏 𝑨 = × 1 −2 5 −2 1
𝜎𝟏 6 5 −2 1 0 30
𝟏 𝑻 1 1 0 1 = 1
𝒗𝑻𝟐 = 𝒖𝟐 𝑨 = 2 1 0 1 2
𝜎𝟐 5 −2 1 0 5
9
𝒗𝑻𝟑 = 𝑎 𝑏 𝑐
𝐿𝑒𝑡 𝑐 = 𝑟
𝑏 = −2𝑟 𝑎 𝑏 𝑐 = 𝑟 −1 −2 1
5𝑎 − 2 −2𝑟 + 𝑟 = 0
𝑎 = −𝑟
1
𝒗𝑻𝟑 = −1 −2 1
𝟔
𝑨 = 𝑼𝜮𝑽𝑇
10
5 −2 1
30 30 30
1 1 2 6 0 0 1 2
𝑨= 0
5 −2 1 0 1 0 5 5
−1 −2 1
6 6 6
5 −2 1
30 30 30
1 26 0 1 2 1 0 1
𝑨= 0 𝑨=
5 −2 6 1 0 5 5 −2 1 0
−1 −2 1
6 6 6
11
Matrix Approximation
Matrix Approximation
𝐴 = 𝜎𝑖 𝑢𝑖 𝑣𝑖𝑇 = 𝜎𝑖 𝐴𝑖
𝑖=1 𝑖=1
• 𝜎𝑖 are the singular values
• If the sum runs only up to a value k < r, we obtain a rank-k approximation
of A:
𝑘 𝑘
መ
𝐴(𝑘) = 𝜎𝑖 𝑢𝑖 𝑣𝑖𝑇 = 𝜎𝑖 𝐴𝑖
𝑖=1 𝑖=1
13
1 −2
• 𝑨= 0 1
1 0
14
QUIZ
15
Summary
Questions?