Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Principal Component Analysis in R Programming | How to Apply PCA | Step-by-Step Tutorial & Example

Автор: Statistics Globe

Загружено: 2023-06-28

Просмотров: 42814

Описание:

This video explains how to apply a Principal Component Analysis (PCA) in R. More details: https://statisticsglobe.com/principal...

The video is presented by Cansu Kebabci, a data scientist and statistician at Statistics Globe. Find more information about Cansu here: https://statisticsglobe.com/cansu-keb...

In the video, Cansu explains the steps and application of the Principal Component Analysis in R. Watch the video to learn more on this topic!

Here can you find the first part of this series:

Introduction to Principal Component Analysis (Pt. 1 - Theory):    • Introduction to Principal Component Analys...  

Links to the tutorials mentioned in the video:

Can PCA be Used for Categorical Variables? (Alternatives & Example): https://statisticsglobe.com/pca-categ...

PCA Using Correlation & Covariance Matrix (Examples): https://statisticsglobe.com/pca-corre...

Biplot of PCA in R (Examples): https://statisticsglobe.com/biplot-pca-r

R code of this video:

install.packages("MASS")
install.packages("factoextra")
install.packages("ggplot2")

Load Libraries
library(MASS)
library(factoextra)
library(ggplot2)


Import biopsy data
data(biopsy)
dim(biopsy)

Structure of Data
str(biopsy)
summary(biopsy)


Delete Cases with Missingness
biopsy_nomiss <- na.omit(biopsy)

Exclude Categorical Data
biopsy_sample <- biopsy_nomiss[,-c(1,11)]


Run PCA
biopsy_pca <- prcomp(biopsy_sample,
scale = TRUE)

Summary of Analysis
summary(biopsy_pca)


Elements of PCA object
names(biopsy_pca)

Std Dev of Components
biopsy_pca$sdev

Eigenvectors
biopsy_pca$rotation

Std Dev and Mean of Variables
biopsy_pca$center
biopsy_pca$scale

Principal Component Scores
biopsy_pca$x


Scree Plot of Variance
fviz_eig(biopsy_pca,
addlabels = TRUE,
ylim = c(0, 70))

Biplot with Default Settings
fviz_pca_biplot(biopsy_pca)

Biplot with Labeled Variables
fviz_pca_biplot(biopsy_pca,
label="var")

Biplot with Colored Groups
fviz_pca_biplot(biopsy_pca,
label="var",
habillage = biopsy_nomiss$class)

Biplot with Customized Colored Groups and Variables
fviz_pca_biplot(biopsy_pca,
label="var",
habillage = biopsy_nomiss$class,
col.var = "black") +
scale_color_manual(values=c("orange", "purple"))


Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – R Programming Group for Discussions & Questions:   / statisticsglobe  
Facebook – Python Programming Group for Discussions & Questions:   / statisticsglobepython  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – R Programming Group for Discussions & Questions:   / 12555223  
LinkedIn – Python Programming Group for Discussions & Questions:   / 12673534  
Twitter:   / joachimschork  
Instagram:   / statisticsglobecom  
TikTok:   / statisticsglobe  

Principal Component Analysis in R Programming | How to Apply PCA | Step-by-Step Tutorial & Example

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#5734 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "DngS4LNNzc8" ["related_video_title"]=> string(102) "Introduction to Principal Component Analysis (Pt. 1 - Theory) | PCA Explained | Tutorial & Example" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(16) "Statistics Globe" } [1]=> object(stdClass)#5707 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "yZ0bV2Afkjc" ["related_video_title"]=> string(21) "Learn R in 39 minutes" ["posted_time"]=> string(21) "2 года назад" ["channelName"]=> string(19) "Equitable Equations" } [2]=> object(stdClass)#5732 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "g-Hb26agBFg" ["related_video_title"]=> string(34) "Principal Component Analysis (PCA)" ["posted_time"]=> string(19) "6 лет назад" ["channelName"]=> string(15) "Serrano.Academy" } [3]=> object(stdClass)#5739 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "f0_UWY3R8CY" ["related_video_title"]=> string(69) "Principal Component Analysis (PCA): With Practical Example in Minitab" ["posted_time"]=> string(19) "5 лет назад" ["channelName"]=> string(34) "LEARN & APPLY : Lean and Six Sigma" } [4]=> object(stdClass)#5718 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "MQ8ibs-JiRo" ["related_video_title"]=> string(102) "Заявление Путина о завершении войны / Последнее условие" ["posted_time"]=> string(24) "14 часов назад" ["channelName"]=> string(10) "NEXTA Live" } [5]=> object(stdClass)#5736 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "KFgwXXWT7sQ" ["related_video_title"]=> string(170) "ИИ-агенты — вот что действительно изменит разработку. Пишем ИИ-агент на Python, LangChain и GigaChat" ["posted_time"]=> string(23) "1 месяц назад" ["channelName"]=> string(29) "Диджитализируй!" } [6]=> object(stdClass)#5731 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "FgakZw6K1QQ" ["related_video_title"]=> string(59) "StatQuest: Principal Component Analysis (PCA), Step-by-Step" ["posted_time"]=> string(19) "7 лет назад" ["channelName"]=> string(27) "StatQuest with Josh Starmer" } [7]=> object(stdClass)#5741 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "TJdH6rPA-TI" ["related_video_title"]=> string(67) "Data Analysis 6: Principal Component Analysis (PCA) - Computerphile" ["posted_time"]=> string(19) "5 лет назад" ["channelName"]=> string(13) "Computerphile" } [8]=> object(stdClass)#5717 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "3LDBOhdbej0" ["related_video_title"]=> string(171) "Фельштинский. Путин проиграл войну, Кадыров при смерти, отделение Чечни и Дагестана от России" ["posted_time"]=> string(21) "4 часа назад" ["channelName"]=> string(27) "Дмитрий Гордон" } [9]=> object(stdClass)#5735 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "WSMPy1fXtEE" ["related_video_title"]=> string(146) "Борьба за Трампа и тупик в экономике: Путин понял свое положение. Аббас Галлямов" ["posted_time"]=> string(23) "8 часов назад" ["channelName"]=> string(18) "The Breakfast Show" } }
Introduction to Principal Component Analysis (Pt. 1 - Theory) | PCA Explained | Tutorial & Example

Introduction to Principal Component Analysis (Pt. 1 - Theory) | PCA Explained | Tutorial & Example

Learn R in 39 minutes

Learn R in 39 minutes

Principal Component Analysis (PCA)

Principal Component Analysis (PCA)

Principal Component Analysis (PCA): With Practical Example in Minitab

Principal Component Analysis (PCA): With Practical Example in Minitab

Заявление Путина о завершении войны / Последнее условие

Заявление Путина о завершении войны / Последнее условие

ИИ-агенты — вот что действительно изменит разработку. Пишем ИИ-агент на Python, LangChain и GigaChat

ИИ-агенты — вот что действительно изменит разработку. Пишем ИИ-агент на Python, LangChain и GigaChat

StatQuest: Principal Component Analysis (PCA), Step-by-Step

StatQuest: Principal Component Analysis (PCA), Step-by-Step

Data Analysis 6: Principal Component Analysis (PCA) - Computerphile

Data Analysis 6: Principal Component Analysis (PCA) - Computerphile

Фельштинский. Путин проиграл войну, Кадыров при смерти, отделение Чечни и Дагестана от России

Фельштинский. Путин проиграл войну, Кадыров при смерти, отделение Чечни и Дагестана от России

Борьба за Трампа и тупик в экономике: Путин понял свое положение. Аббас Галлямов

Борьба за Трампа и тупик в экономике: Путин понял свое положение. Аббас Галлямов

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]