Re: [R] Quick question on kmeans

From: Gavin Simpson <>
Date: Tue, 15 Jan 2008 18:06:15 +0000

On Tue, 2008-01-15 at 14:34 +0100, Serguei Kaniovski wrote:
> Hello,
> when kmeans draws random vectors for the initial centroids, does it then
> select the clustering that has emerged most frequently?

No. It simply selects random starting centres and converges to a solution, which may be a local not a global minimum. You'll have to do the checking yourself to see if similar clusterings are obtained from repeated calls to kmeans.


> Serguei

 Dr. Gavin Simpson             [t] +44 (0)20 7679 0522
 ECRC, UCL Geography,          [f] +44 (0)20 7679 0565
 Pearson Building,             [e]
 Gower Street, London          [w]
 UK. WC1E 6BT.                 [w]

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 15 Jan 2008 - 18:17:24 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 15 Jan 2008 - 19:30:07 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive