Handling missing values in PCA

23 Apr 2013 · 4 min
4:03

The video walks through a practical R workflow for performing Principal Component Analysis (PCA) on a dataset that contains missing values. Using the Orange dataset (8 continuous variables, 12 individuals), the speaker first demonstrates the default behavior of FactoMineR, which replaces missing entries with variable means before running PCA. To obtain a more principled solution, the missMDA package is introduced. The speaker explains how to estimate the optimal number of principal components for imputation with the function `est_ncpPCA`, describing the exhaustive cross‑validation process (testing 0‑5 components for each missing cell) and noting convergence warnings. For larger datasets, a faster k‑fold cross‑validation (`method = CVkfolds`) is suggested. After selecting the estimated number of components (2 in this example), the `imputePCA` function is used to impute missing values, producing a completed data object (`completeObs`). The speaker highlights that PCA‑based imputation leverages variable relationships, yielding more realistic estimates than simple mean replacement. Finally, the completed data are fed back into FactoMineR’s `PCA` function, and the resulting individual and variable factor maps are displayed. The tutorial concludes with a concise three‑step workflow: estimate dimensions, impute missing data, then run PCA on the imputed matrix, ensuring that the analysis relies only on observed information.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content