The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"which is better for k-means ? CorrelationSimilarity or EuclideanDistance?"
k-means algorithm in version 5.0 uses EuclideanDistance as distance. but i think CorrelationSimilarity is better . what do you think ?
Tagged:
0
Answers
According to the no free lunch theorem they are equally good.
According to Tom Mitchell, they choice you make influences the bias of the k-NN leaner.
You should make the choice such that the bias matches your problem best.
another note since you asked for k-means: k-means always uses Euclidean distance, there is no other option since this distance measure is directly connected to the fitness function k-means tries to optimize. For this reason it can work in time O(n log n) only. If you want to use different similarity measures (there are dozens available in RapidMiner), you have to use k-medoids which is slower and has a quadratic runtime.
Cheers,
Ingo
The work time of k-mean is O(nkt), which n is number of objects, k is number of clusters and t is number of iteration. not O(n log n)
Thanks
I am actually no expert for runtime analyses at all - and I certainly do not want to open this old thread again - but I think the question is if the number of iterations "t" is a function of "n", right? As far as I remember, this was in average indeed the case:
http://doc.utwente.nl/70194/1/FOCS2009_ArthurEA_kMeans.pdf
For K-Medoids, all similarities have to be calculated at least once (hence the quadratic term) which is not necessary for the fitness function in K-Means derived from the euclidean distance. In fact, I would expect that the runtime of K-Medoids indeed is as well slower than quadratic and would expect something like (On*n*log(n)) in analogy to the runtime analysis in the paper above.
However, I dit not look into the details of the paper and just remembered that I have heard about if before. But maybe this helps somebody...
Cheers,
Ingo