How to use this calculator
Calculate Minkowski p-norm distance between two equal-length numeric vectors.
- Enter First vector, Second vector, Distance order p. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Measure a p-norm distance between matching vectors
The Minkowski distance combines coordinate differences using a selected order p. At p = 1 it is Manhattan distance; at p = 2 it is Euclidean distance. For p ≥ 1 it satisfies the metric properties on equally scaled coordinates.
Inputs and units
- First vector: Comma-separated numeric coordinates for the first point.
- Second vector: Comma-separated coordinates for the second point; it must have the same number of entries.
- Distance order p: A value at least 1 that selects how coordinate differences are combined.
Formula and method
dₚ(x,y) = [Σᵢ |xᵢ−yᵢ|ᵖ]^(1/p). Pair each coordinate by position; the order p changes the geometry of the resulting distance.
Worked example
For x = (1,2,3), y = (4,0,3), and p = 3, the coordinate differences have magnitudes 3, 2, and 0. Thus d₃ = (3³+2³+0³)^(1/3) = 35^(1/3) = 3.2711.
Interpreting the result
The output is the chosen p-norm distance in the coordinate scale supplied. A value is most useful when all dimensions are comparable or have been normalized for the application.
Assumptions and limits
Requires equal-length numeric vectors and p ≥ 1 for the metric interpretation. Features with different units or ranges can dominate the result; this calculation does not normalize or weight them.
Method references
Frequently asked questions
Which p value gives ordinary straight-line distance?
Use p = 2 for Euclidean distance. p = 1 gives the sum of absolute coordinate differences.
How do I use the Minkowski vector distance calculator?
Enter First vector, Second vector, Distance order p. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Minkowski vector distance?
For x = (1,2,3), y = (4,0,3), and p = 3, the coordinate differences have magnitudes 3, 2, and 0. Thus d₃ = (3³+2³+0³)^(1/3) = 35^(1/3) = 3.2711.
What does the Minkowski vector distance calculator calculate?
Calculate Minkowski p-norm distance between two equal-length numeric vectors.
What assumptions apply to Minkowski vector distance?
Requires equal-length numeric vectors and p ≥ 1 for the metric interpretation. Features with different units or ranges can dominate the result; this calculation does not normalize or weight them.