Week 3 Flashcards

1
Q

Describe several properties of Vector Similarity.

A

Describe several properties of Vector Similarity.

  1. if more non-empty dimensions in common, the more similar.
  2. If values are closer in each shared dimension, the greater the similarity.
  3. Must handle real values.
  4. Normalization is often required.
  5. Vector dimensions must be aligned to calculate similarity.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is the similarity dot product defined?

A

How is the similarity dot product defined? X = [x1, x2,…, xp], Y = [y1, y2, …, yp] sim(X, Y) = [i=1 to p] sum( xi * yi)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is Manhattan Distance defined?

A

How is Manhattan Distance defined? d(X, Y) = [i=1 to p] sum |xi - yi|

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is Euclidean Distance defined?

A

How is Euclidean Distance defined? d(X, Y) = sqrt( [i=1 to p] sum (xi - yi)^2 )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the advantages of Manhattan or Euclidean distance measures?

A

What are the advantages of Manhattan or Euclidean distance measures? 1. Symmetry: d(X, Y) = d(Y, X) 2. Non-Negative 3. d(X, X) = 0 4. Triangle inequality: d(X, Y) <= d(X, Z) + d(Z, Y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are some disadvantages of Manhattan and Euclidean distance measures?

A

What are some disadvantages of Manhattan and Euclidean distance measures? 1. Vectors may not be normalized. 2. Vectors with larger values likely to yield higher values. 3. These are the same issues with Dot Products.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the properties of Cosine Similarity?

A

What are the properties of Cosine Similarity?

  1. Cos-Sim measures the angle between two vectors, not the magnitude.
  2. The less the angle the greater the similarity.
  3. Cos-Sim is the Normalized dot product.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the equation for Cosine Similarity?

A

What is the equation for Cosine Similarity?

cos(X, Y) = Eip xi * yi / ( Eip x2 * Ein y2 )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advantages of Cosine Similarity?

A

What are the advantages of Cosine Similarity?

  1. Symmetric
  2. Bounded in [-1, 1]
  3. Non-negative vectors result in cos >= 0.
  4. Orthogonal vectors result in cos = 0; this usually indicates no relation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the benefits of the Pearson Correlation Coefficient?

A

​What are the benefits of the Pearson Correlation Coefficient?

  • Linear correlation between two vectors
  • Deducting mean (centering on the mean) from the vector, then cosine
  • Similarity to the Cosine Similarity
  • Mean of a vector indicates the trend
  • Useful if dimensions are homogeneous (e.g. rating of some product)
  • Not meaningful if dimensions are heterogeneous (e.g. height vs weight)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly