Metrics

There is more than one way to define the norm || u ||, and these correspond to different ways of measuring distance, i.e., to different metrics. Two of the most common are
  1. Euclidean metric: || u || = sqrt( u12 + u22 + ... + ud2 )

  2. Manhattan (or taxicab) metric: || u || = |u1| + |u2| + ... + |ud|
In our template-matching example of classifying characters by counting the number of disagreements, we were implicitly using a Manhattan metric.* For the rest of these notes, we will use either the Euclidean distance or something called the Mahalanobis distance. We will see that

Left arrow Back to Min Dist Right arrow On to Inner Products Up arrow Up to Simple Classifiers