Could you clarify the interplay between PCA and k-means in your setup? Are you running PCA then k-means?
– chlNov 07 '20 at 13:03
Hi. I am running a k-means clustering algorithm using 20 variables. Separately I am using PCA analysis to obtain the first two principal components, and checking which of my variables contributed the most to those principal components. Asking if those variables are also the ones that have more weight in the k-means clustering process. Thanks
– RR_28023Nov 09 '20 at 14:07
That is exactly what I want to know (how to estimate the weight of each variable in the k-means). I am asking if checking the variables that contribute to the top Principal Components is a valid approximation.
– RR_28023Nov 10 '20 at 17:13
Ah, I see now. You will probably find useful information in this [related thread](https://stats.stackexchange.com/q/183236/930). If this is the case, then I believe this thread should be closed as a duplicate. Otherwise, please clarify.
– chlNov 11 '20 at 06:21