Vector Norm

Vector Norm

By Juan Garcia

-

18-Apr-2024

Introduction


In the field of mathematics and machine learning, the concept of a norm is a central measure used to express the length or size of a vector. Among various types of norms, p-norms constitute a broad class that further expands the understanding and application of vector norms. This blog post aims to introduce the concept of vector norms and delve into the details of p-norms.



Applications


Understanding Vector Norms


In a simple sense, a norm is a function that assigns a positive length or size to a vector. In a \(n\)-dimensional real or complex space, a norm \(||x||\) of a vector \(x\) is usually denoted as:

\[||x|| = \sqrt{x_1^2 + x_2^2 + \dots + x_n^2}\]

Introducing p-norms


The concept of p-norms generalizes the idea of norms by introducing a parameter \(p\). For a vector \(x = [x_1, x_2, \dots, x_n]\) in \(n\)-dimensional space, the p-norm (\(1 \leq p < \infty\)) is defined as:

\[||x||_p = \left( \sum_{i=1}^{n} |x_i|^p \right)^{1/p}\]

Applications of p-norms


The different values of \(p\) in p-norms lead to different types of norms. For example, when \(p=1\), it is the Manhattan Norm, and when \(p=2\), it is the familiar Euclidean Norm. These norms are widely used in machine learning algorithms such as regression, classification, and clustering.



References


Stay Ahead with Algothingy

algothingy mascot coding

Wanna download quality software?

algothingy mascot talking to another mascot

Can't find what you are looking for?

Don't worry we have you covered. Tell us about your software needs here. We will get back to you with ways we can help!

Stay up to date with us

Follow us on LinkedIn to receive news about our latest implementations.

Code versions

Go ahead and send us your request!

Log In required

Modal message

Snackbar message