A vector norm, sometimes represented with a double bar as ∥x∥, is a function that assigns a non-negative length or size to a vector x in n-dimensional space. Norms are essential in mathematics and machine learning for measuring vector magnitudes and calculating distances.
A vector norm satisfies three properties:
- Non-negativity: ∣x∣ > 0| if x ≠ 0, and ∣x∣=0 if and only if x = 0.
- Scalar Multiplication: ∣kx∣ = ∣k∣ ⋅ ∣x∣ for any scalar k.
- Triangle Inequality: ∣x + y∣ ≤ ∣x∣ + ∣y∣.
Types of Vector Norms
The vector norm ∣x∣p, also known as the p-norm, for p = 1, 2,… is defined as:
| \mathbf{x} |_p = \left( \sum_{i=1}^{n} | x_i |^p \right)^{\frac{1}{p}}
This general formula encompasses several specific norms that are commonly used.
Commonly used norms are:
Let's discuss these in detail.
L1 Norm
The L1 norm, also known as the Manhattan norm or Taxicab norm, is a way to measure the "length" or "magnitude" of a vector by summing the absolute values of its components.
Mathematically, for a vector x = [x1, x2, . . ., xn], the L1 norm ∣x∣1 is defined as:
∣x∣1 = ∣x1∣ + ∣x2∣ + ∣x3∣ + ... + ∣xn∣
Example: If x = [3, −4, 2], then the L1 norm is:
∣x∣1 = ∣3∣ + ∣−4∣ + ∣2∣ = 3 + 4 + 2 = 9
L2 Norm
The L2 norm, also known as the Euclidean norm, is a measure of the "length" or "magnitude" of a vector, calculated as the square root of the sum of the squares of its components.
For a vector x = [x1, x2, . . ., xn], the L2 norm ∣x∣2 is defined as:
| \mathbf{x} |_2 = \sqrt{x_1^2 + x_2^2 + \dots + x_n^2}
Example: If x = [3, −4, 2], then the L2 norm is:
| \mathbf{x} |_2 = \sqrt{3^2 + (-4)^2 + 2^2}
= \sqrt{9 + 16 + 4}
=√29 ≈ 5.39
L∞ norm
The L∞ norm, also known as the Infinity norm or Max norm, measures the "size" of a vector by taking the largest absolute value among its components. Unlike the L1 and L2 norms, which consider the combined contribution of all components, the L∞ norm focuses solely on the component with the maximum magnitude.
For a vector x = [x1, x2, . . ., xn], the L∞ norm ∣x∣∞ is defined as:
∣x∣∞ = max∣xi∣ where 1 ≤ i ≤ n
Example: If x = [3, −4, 2], then the L∞ norm is:
∣x∣∞= max(∣3∣, ∣−4∣, ∣2∣) = 4
Read More,
Similar Reads
Vectors in Maths In mathematics, vectors are fundamental objects that represent quantities with both magnitude and direction. They are widely used in various branches of mathematics, physics, engineering, computer science, and other disciplines.Key Features of Vectors:1. Magnitude: The size or length of the vector.
8 min read
Unit Vector Unit Vector: Vector quantities are physical quantities that have both magnitude and direction. We define them using their initial point and final point. Unit vectors are the vectors that have a magnitude of 1. For example \vec A   = 2i + 3j is not a unit vector as its magnitude is,|A| = â(22 + 32)
11 min read
Types of Vectors Vector is a physical quantity that has both direction and magnitude, it is a quantity that not only tells us about its strength but also gives us details about the direction in which it is acting upon. There are various types of vectors based on different parameters like their direction, magnitude,
9 min read
Collinear Vectors Vectors are also called Euclidean vectors or Spatial vectors, and they have many applications in mathematics, physics, engineering, and various other fields. There are different types of vectors, including zero vectors (which have 0 magnitude and no direction), unit vectors (which have a magnitude o
7 min read
Properties of Vectors Vectors are one of the most important concepts in mathematics. Vectors are quantities that have both magnitude and direction. A vector quantity is represented by an arrow above its head.For example a vector \overrightarrow{A} where A or |A| represents the magnitude of the vectors.Vectors are used to
11 min read