What does the $2$ in $\|Xw-y\|_2$ mean?

569 Views Asked by At

I was going through this link and I found the minimization expression. It says $\|Xw-y\|_2^2$.

What is the significance of $2$ in the subscript? What does it mean? I understand that the double vertical lines mean the length of the vector.

1

There are 1 best solutions below

4
On BEST ANSWER

This designates the $2$-norm of your vector. If $1<p<\infty$, then the $p$ norm of a vector $x=[x_1,x_2,\dots,x_n]\in\mathbb C^n$ is defined as

$$||x||_p = \sqrt[p]{|x_1|^p + |x_2|^p + \cdots + |x_n|^p}$$

For the particular case of $p=2$, the $2$-norm of the vector is also called the Euclidean norm (and it is equal to our standard definition of distance):

$$||x||_2 = \sqrt{\langle x,x\rangle}$$

Where $$\langle x,y\rangle = \sum_{i=1}^n x_i \bar{y_i}$$ denotes the euclidian inner product in $\mathbb C^n$ (or in $\mathbb R^n$)