Thursday, April 9, 2015

Cluster distance


Given 5-dimensional numerical samples A= (1, 0, 2, 5, 3) and B = (2, 1, 0, 3, -1).

Find:

  1. Eucledian distance between points.
  2. City-block distance.
  3. Minkowski distance for p=3.
  4. Cosine-correlation distance.

Answer:

a) the Euclidean distance:
d2(A, B) =
 =
 = 5.1
b) the city-block distance:
d1(A, B) =
 =
 = 10
c) the Minkowski distance for p=3:
d3(A, B) =
 =
 = 4.34
d) the cosine-correlation distance:
scos(A, B) =
   =
   = 0.58

5 comments:

  1. https://sites.google.com/a/ganpatuniversity.ac.in/it/dmdw/2015-dmdw

    ReplyDelete
  2. This is additionally a generally excellent post which I truly delighted in perusing. It isn't each day that I have the likelihood to see something like this..
    data science courses in noida

    ReplyDelete
  3. This is a great motivational article. In fact, I am happy with your good work. They publish very supportive data, really. Continue. Continue blogging. Hope you explore your next post
    data scientist certification

    ReplyDelete
  4. Your content is very unique and understandable useful for the readers keep update more article like this.
    data science courses aurangabad

    ReplyDelete