Inner Product and Norms
1 Inner Product is a Metric
- Dot product is an inner product that measure similarity.
- Dot product is Cos of angle between 2 vectors.
- Dot product measures how well 2 vectors align.
- Dot product of recentered vectors is the correlation coefficient r.
- Gram Matrix is all permutations of dot product between 2 pairs of vectors in a set of vectors.
- Gram matrix gives us pairwise similarity for all vectors.
\[\langle x,y \rangle = d(x,y) = x^T y\]
Inner Product is a Metric function
\[\sqrt{\langle x,x} \rangle = \|x\| =d(x,0)\] Norm is just an inner product against the origin with these constraints
- \(d(p+x,p+y) = d(x,y)\)
- \(\|k\| \cdot d(x,y) = d(kx,ky)\)
2 Euclidean Norm(2-Norm)
\[\cdot \text{ is Norm Operation}\]
\[X \cdot Y = X^T Y\]
2.1 Intuition of dot product
- let’s say given that:
- \(A = A_{x} + A_{y}\)
- \(B= B_{y}\)
- \(A = A_{x} + A_{y}\)
\[A \cdot B = (A_{x} + A_{y}) \cdot B_{y} = {\color{red}A_{x} \cdot B_{y}} + A_{y} \cdot B_{y} = {\color{red}0} + A_{y} \cdot B\]
Notice how only the y-component of \(A\) matters since \(A_{x} \perp B\) making the dot product of A’s x-component 0.
\[ \prod\limits_{vectors}(\text{x-components of each vector}) + \prod\limits_{vectors}(\text{y-components of each vector}) = \text{dot product of vectors}\]
3 Inner Product Space
Inner Product Space = Vector Space
for all intents and purposes
Inner product space just means vector space with a defined inner product function.
4 Adjoint
T :: V -> W
T* :: W -> V
\[\langle Tv, w \rangle = \langle v, T^* w \rangle\]