Questions tagged [metric]

A metric is a function that outputs a distance between 2 elements of a set & meets certain strict criteria (some 'distance' functions are not metrics).

A metric is a function that outputs a distance between 2 elements of a set. To meet the definition of a metric, a distance function must fulfill the following criteria:

  1. There is no distance between an element and itself: $d(x_i,x_i)=0$.
  2. If the distance between two elements is $0$, those elements are equivalent: $d(x_i,x_j)=0\implies x_i=x_j$.
  3. All distances are non-negative: $d(x_i,x_j)\ge0$.
  4. The distance between two elements is the same in either direction: $d(x_i,x_j)=d(x_j,x_i)$.
  5. The distance between two elements is less than or equal to the sum of the distances between those elements and a third: $d(x_i,x_j)\le d(x_i,x_k)+d(x_j,x_k)$
414 questions
7
votes
4 answers

What is a metric can I use to calculate the distance between labels?

Let's say we have a set of labels of the same length, and we need to find the distance between them. In the case of binary labels, one can use the Hamming distance. For example, if $l_1 = 01101$ and $l_2 = 00111$, then $d(l_1, l_2) = 2$. In my case,…
Nick
  • 858
2
votes
0 answers

How to choose more "balanced" metric?

I have a set of features F and a set of items X. Each item x_i is a vector: (w_i_1, ..., w_i_n) where w_i_j is a weight of feature f_j in the item x_i. For each item sum of weights is arbitrary, but each weight is in [0, 1] range (e.g. there are…
1
vote
0 answers

Feature learning vs metric learning

What is the fundamental difference between metric learning and feature learning? From feature we can get metric as $M(x,y) = ||f(x) - f(y)||^2$ and vice versa right? (assuming that metric satisfy distance definition)
Dzung Nguyen
  • 223
  • 2
  • 11
1
vote
0 answers

How to measure "controversialness" of a document given upvotes and downvotes

Say that I had upvotes and downvotes for a document. I'm trying to come up with a good "controversialness" measure from this. When both upvotes and downvotes are large, then this measure should be large. This is my very naive attempt at doing…
user46925
1
vote
1 answer

What are the statistics methods used in this analysis?

This is from an article I am reading recently. The authors compared information seeking results derived from different information needs. Here is how they reported comparison.While I know "p" means significance level, I cannot figure out what…
Kathryn
  • 13
  • 2
0
votes
1 answer

Need a suitable Metric to indicate closeness between a set of expected vs observed values

I have the expected ratio of four parameters A, B, C and D A : B : C : D 3.9 : 12.0 : 24.3 : 59.8 I perform three experiments which provides me ratios of A,B,C and D. As the results show, the ratios obtained in Experiment…
0
votes
0 answers

Is there a name for this metric?

I'm testing different methods for carrying out variant calling with HIV sequencing data and want to compare the performance of each method. I have true and false positive counts for each method but have no way of calculating the true negative or…
0
votes
1 answer

Learning error metrics

We're using a decision tree based classifier that assigns record to one of two classes (true /false). Model is producing answers with probability of this value. So to check how good are answers the squared error is used (expected{0, 1} - result{0.0…
piotrpo
  • 168
0
votes
0 answers

Suitable metric for comparing overlap of intervals

I am trying to compare two methods but I am looking for an appropriate metric. I have two methods which both infer stop-locations for a person - each using a different type of data. A stop-location is represented as a time interval. For example,…
utdiscant
  • 1,570