How to Apply PCA before K-means Clustering in R Programming (Example) | Principal Component Analysis

  Рет қаралды 4,418

Statistics Globe

Statistics Globe

Күн бұрын

Пікірлер: 28
@gt6139a
@gt6139a 8 ай бұрын
Great video. Thank you for making it:) It would've been interesting to plot the same, but coloring the dots using the original labels as well. Then we can see how well the groupings done using unsupervised learning compared to the original labels!!
@StatisticsGlobe
@StatisticsGlobe 8 ай бұрын
Thanks for the kind words and the nice idea! It would definitely be nice to visualize this comparison. Next time! :)
@smartinssmart
@smartinssmart 8 ай бұрын
nicely done! 👌
@StatisticsGlobe
@StatisticsGlobe 8 ай бұрын
Thank you so much, glad you like it! :)
@rodrigopalmacl
@rodrigopalmacl 8 ай бұрын
muy interesante estimado practicare con su ejercicio y agradezco su video.
@StatisticsGlobe
@StatisticsGlobe 8 ай бұрын
That's great to hear, Rodrigo! Glad the videos are helpful!
@ibrahimlawan9663
@ibrahimlawan9663 8 ай бұрын
Great video. Thank you. Is there any assumption before deciding to use PCA or PCoA?
@StatisticsGlobe
@StatisticsGlobe 8 ай бұрын
Thanks for the kind comment, Ibrahim! Glad you liked the video. Before using PCA (Principal Component Analysis), it's assumed that linear relationships exist in the data and that the most important variance directions are the ones to focus on. For PCoA (Principal Coordinates Analysis), the assumption is that distances or dissimilarities between data points can meaningfully reflect their relationships. So it depends on your specific data whether to use PCA or PCoA. I hope this helps!
@korman9872
@korman9872 2 ай бұрын
Thank you sir, i helps
@micha.statisticsglobe
@micha.statisticsglobe 2 ай бұрын
You're most welcome! 🙂
@uselessminority6071
@uselessminority6071 8 ай бұрын
what if PC1 and PC2 only explain lets say 75% of variance? how would you proceed? is that enought or is it possible to somehow add PC3 and PC4 in the analysis? Great video btw 👍👍
@jeanpascalkoh4123
@jeanpascalkoh4123 8 ай бұрын
I think it still ok. However more PC becomes difficult for human perception of 3 or more dimensions. Cheers!
@jeanpascalkoh4123
@jeanpascalkoh4123 8 ай бұрын
Nice presentation
@StatisticsGlobe
@StatisticsGlobe 8 ай бұрын
Hey, thanks for the great feedback, glad you like the video! Regarding your question: Yes, you can definitely add more components (and usually this is what you would do with a realistic data set). You would just have to change the number in this line of code from 2 to whatever number of components you would like to keep: my_pca_data <- data.frame(my_pca$x[ , 1:2]) Please note that it might become more difficult to visualize your data when using more components. I hope that clarifies your question! Regards, Joachim
@CryptoStop360
@CryptoStop360 6 ай бұрын
hello can u make video how to apply multi condtion to all items for data frame and combine with and + or i not find it on line thanks
@CryptoStop360
@CryptoStop360 6 ай бұрын
i mean apply condtion with and + or to alll items inside data frame
@StatisticsGlobe
@StatisticsGlobe 6 ай бұрын
Thanks for the topic suggestion, I'll keep it in mind.
@gopaltiwariful
@gopaltiwariful Ай бұрын
when in performed this code with my data R showing "Error: unexpected invalid token in "my_pca" this any suggestion?
@StatisticsGlobe
@StatisticsGlobe Ай бұрын
Hey, did you run the code exactly as demonstrated in the video?
@gopaltiwariful
@gopaltiwariful Ай бұрын
@@StatisticsGlobe Yes as it is
@StatisticsGlobe
@StatisticsGlobe Ай бұрын
That's weird, to be honest, I don't know why this is happening. On my side, everything works fine.
@gopaltiwariful
@gopaltiwariful Ай бұрын
Error: unexpected invalid token in "my_pca
@StatisticsGlobe
@StatisticsGlobe Ай бұрын
Please see my response to your other question.
@uma9183
@uma9183 7 ай бұрын
thank you sir, but provide your script of code in notepad format ;; my suggestion only
@StatisticsGlobe
@StatisticsGlobe 7 ай бұрын
Hey, thanks for your kind comment. I assume you could simply copy and paste the code from the description into notepad, couldn't you?
@uma9183
@uma9183 7 ай бұрын
@@StatisticsGlobe I am telling in your channel space point of view, and other also convient ;; thank you for your response
@uma9183
@uma9183 7 ай бұрын
please make video satellite data handle in R
@StatisticsGlobe
@StatisticsGlobe 7 ай бұрын
Thanks for the topic suggestion! I'm not an expert on this, but it might be a nice topic for the future.
Applied K-Means Clustering in R
16:54
Spencer Pao
Рет қаралды 56 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 98 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 18 МЛН
Как Я Брата ОБМАНУЛ (смешное видео, прикол, юмор, поржать)
00:59
StatQuest: Principal Component Analysis (PCA), Step-by-Step
21:58
StatQuest with Josh Starmer
Рет қаралды 3 МЛН
Create maps using the sf package in R programming
9:29
R Programming 101
Рет қаралды 6 М.
Principal Component Analysis (PCA)
13:46
Steve Brunton
Рет қаралды 403 М.
Principal Component Analysis (PCA)
26:34
Serrano.Academy
Рет қаралды 417 М.
Principal Component Analysis Tutorial & Interpretation Using R
16:39
Researchocrat
Рет қаралды 4,1 М.
Applied Principal Component Analysis in R
15:32
Spencer Pao
Рет қаралды 27 М.
R package reviews | glmulti | Find The Best Model !
13:27
yuzaR Data Science
Рет қаралды 13 М.
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 98 МЛН