Problem in the output of k-means

Discuss statistics related things
Post Reply
fabstat
Posts: 8
Joined: Fri Feb 01, 2019 7:49 am

Problem in the output of k-means

Post by fabstat »

Hello
I realised a k-means analysis in Jamovi (Snowcluster package) and I have found a problem in the output.

The label of the clusters in the table Centroids of cluster Table is not the same than in the graph Plot of means across clusters. See the file attached:
Cluster 4 which is the maximum on the first variable, is labelled cluster 1 in the graph.

If I save the cluster membership and make descriptive statistics , I find the same results than in the Table.

Do I understand incorrectly the outputs ?

Thanks for your help.
Fabienne
Attachments
Output
Output
Capture d’écran 2023-11-27 à 15.23.02.png (307.56 KiB) Viewed 13521 times
User avatar
seol
Posts: 188
Joined: Mon Dec 04, 2017 8:40 am
Location: Seoul, Korea
Contact:

Re: Problem in the output of k-means

Post by seol »

Hi fabstat

Are you using latest version of snowCluster module(ver.7.2.6)? you can check it in jamovi library. Here is a example data(iris data) in folder, which produce correct results.

Best Regards
Seol
Attachments
이미지 003.png
이미지 003.png (110.99 KiB) Viewed 13500 times
User avatar
Arnaud Mortier
Posts: 37
Joined: Tue Apr 27, 2021 11:39 am

Re: Problem in the output of k-means

Post by Arnaud Mortier »

Hello,

I am having the exact same issue on jamovi 2.3.17.0 with snowCluster version 7.0.1 (the latest version that seems available for linux).
More precisely, the problem occurs when I click (or unclick) the "optimal number of clusters" option from the Plot section: it randomly assigns new labels to the clusters, so that the means table changes, but it doesn't change the means plot accordingly - so that the means plot is no more consistent with the labels.

Thanks for any help.

Best regards,
Arnaud
User avatar
seol
Posts: 188
Joined: Mon Dec 04, 2017 8:40 am
Location: Seoul, Korea
Contact:

Re: Problem in the output of k-means

Post by seol »

Hi Arnaud

Could you try to install the latest version of jamovi and snowCluster module(ver. 7.3.9) in jamovi library?

Kind Regards
Seol
Attachments
snow.png
snow.png (26.49 KiB) Viewed 1789 times
User avatar
Arnaud Mortier
Posts: 37
Joined: Tue Apr 27, 2021 11:39 am

Re: Problem in the output of k-means

Post by Arnaud Mortier »

Hi Seol,

In the library (https://www.jamovi.org/library.html), the latest version that I can see is 6.7.1:
Screenshot from 2024-08-29 16-27-24.png
Screenshot from 2024-08-29 16-27-24.png (34.47 KiB) Viewed 1623 times
Perhaps is it related to the fact that I'm browsing from a linux distribution?
For some reason when I browse the library from within jamovi, the latest version appears to be 7.0.1:
Screenshot from 2024-08-29 16-30-59.png
Screenshot from 2024-08-29 16-30-59.png (25.45 KiB) Viewed 1623 times
Kind regards,
Arnaud
User avatar
seol
Posts: 188
Joined: Mon Dec 04, 2017 8:40 am
Location: Seoul, Korea
Contact:

Re: Problem in the output of k-means

Post by seol »

Hi Arnaud

The module versions you mentioned above are very old versions that have not been updated.
It is simply a webpage that shows that these kinds of modules are available.
You can download the latest modules from the jamovi library, which is available inside the jamovi program.

Best Regards
Seol
User avatar
Arnaud Mortier
Posts: 37
Joined: Tue Apr 27, 2021 11:39 am

Re: Problem in the output of k-means

Post by Arnaud Mortier »

Hi Seol,

From inside jamovi, I see the version 7.0.1 which is installed, and I don't have the "update" option (see the second screenshot of my previous post).
This usually indicates that there are no later versions available for linux.

Kind regards,
Arnaud
User avatar
Arnaud Mortier
Posts: 37
Joined: Tue Apr 27, 2021 11:39 am

Re: Problem in the output of k-means

Post by Arnaud Mortier »

Additional info (sorry I couldn't find a button to simply edit my previous answer): I checked with a colleague of mine who works on windows, from inside jamovi the version that he sees is 7.1.7 and the problem does occur similarly.

Best regards,
Arnaud
User avatar
seol
Posts: 188
Joined: Mon Dec 04, 2017 8:40 am
Location: Seoul, Korea
Contact:

Re: Problem in the output of k-means

Post by seol »

Hi Arnaud

Here is a snowCluster module in Ubuntu jamovi now. Please check the version of snowCluster module.

Kind Regards
Seol
Attachments
2024-08-31 09 24 10.png
2024-08-31 09 24 10.png (37.05 KiB) Viewed 1320 times
User avatar
Arnaud Mortier
Posts: 37
Joined: Tue Apr 27, 2021 11:39 am

Re: Problem in the output of k-means

Post by Arnaud Mortier »

Hi Seol,

It works, thank you very much for your help and your patience.

I had to update jamovi to 2.5.9 for the module to show up in the library.

Thanks again.

Kind regards,
Arnaud
Post Reply