Inner Prod
Inner Prod
M Narasimha Murty
Professor, Dept. of CSA
Indian Institute of Science, Bengaluru
[email protected]
August-December 2017
1 / 24
Inner Products1
( ) ( )
x1 y
• Definition: Given α = , and β = 1 ∈ ℜ2 , the dot product
x2 y2
or inner product denoted by < α, β > of these two vectors is
< α, β >= x1 y1 + x2 y2
• We restrict to length and orthogonality (perpendicularity) of vectors.
[1] R. Vittal Rao, Lecture Notes, Linear Algebra, Fall 2010 (http://clweb.csa.iisc.ernet.in/linear_algebra2010/) 3 / 24
Inner Products
• In classification
1 In both SVMs and Perceptrons, the classifier is of the form
Wt X + b > 0 ⇒ X ∈ C+ and Wt X + b < 0 ⇒ X ∈ C− .
2 In general, we need to compute Wa .X where Wa and X are vectors of
size d + 1. Wt X = W.X is the dot product between W and X.
3 Even neural networks involve computations of the form Wt X.
4 / 24
Inner Products
• < α, α >= x21 + x22 . It can be seen that < α, α > ≥ 0, ∀α ∈ ℜ2 and
< α, α >= 0 if and only if α = θ2 where θ2 = 0 ∈ ℜ2 .
√
• So, < α, α > = Euclidean distance of (x1 , x2 ) from the origin (0, 0).
∑
• Extend to ℜk : for α, β ∈ ℜk , < α, β >= ki=1 xi yi .
• For α ∈ Ck , < α, α > may be complex; so, < α, α > ≥ 0 may not
make sense.
∑
• So, for α, β ∈ Ck , < α, β > is defined as ki=1 xi ȳi .
• The inner product of w = (w1 , · · · , wn ) ∈ Cn with z ∈ Cn is
w1 z¯1 = · · · + wn z¯n .
• The inner product of w with z equals the complex conjugate of the
inner product of z with w. √
• If λ = a + bi, where a, b ∈ ℜ, then | λ |= a2 + b2 is its absolute
value. Complex conjugate λ̄ = a − bi ⇒| λ |2 = λλ̄.
• We are now ready to define an inner product on V, which may be a
real or a complex vector space.
5 / 24
Inner Products
9 / 24
Norms
11 / 24
Inner Product Spaces
= ||β||2 − |<α,β>|
2
||α||2
• This is because in case of reals < α, β >=< β, α > and in case of
complex field, < β, α >= < α, β >. So, in either case
< α, β >< β, α >=|< α, β >|2 .
• Hence |< α, β >|2 ≤ ||α||2 ||β||2 .
• Now using this, we find that
||α + β||2 = ||α||2 + < α, β > + < β, α > +||β||2
= ||α||2 + 2Re < α, β > +||β||2 ≤ ||α||2 + 2||α|| ∥|β|| + ||β||2
= (||α|| + ||β||)2 .
• Thus, ||α + β|| ≤ ||α|| + ||β||. (Triangle Inequality).
13 / 24
Cauchy-Schwarz Inequality
16 / 24
Orthogonal Sets