MATH-BIOINF-STATS 547: Mathematics of Data
Date: March 11, 2025
Dimension Reduction of Data: Examples
Cooper Stansbury
High-Dimensional Data
Data Example 1
Stansbury, Cooper M., Gabrielle A. Dotson, Harrison Pugh, Alnawaz Rehemtulla, Indika Rajapakse, and Lindsey A. Muir. "A lipid-associated macrophage lineage rewires the spatial landscape of adipose tissue in early obesity." JCI Insight. 2023 .
Data Example 2
C. Stansbury, J. Cwycyshyn, J. Pickard, W. Meixner, I. Rajapakse, and L. A. Muir, “Data-guided direct reprogramming of human fibroblasts into the hematopoietic lineage,” Aug. 26, 2024, bioRxiv
Principal Component Analysis (PCA)
t-Distributed Stochastic Neighbor Embedding (t-SNE)
Uniform Manifold Approximation and Projection (UMAP)
Three Common Methods
Wang, Y., Huang, H., Rudin, C. and Shaposhnik, Y., 2021. Understanding how dimension reduction tools work: an empirical approach to deciphering t-SNE, UMAP, TriMAP, and PaCMAP for data visualization. The Journal of Machine Learning Research, 22(1), pp.9129-9201.
Overview
PCA
t-SNE
UMAP
Overview of PCA, t-SNE, and UMAP
PCA: From Cleve
PCA without SVD
X = A - mean(A)
C = (X'*X)/(n-1)
[Q,E] = eig(C)
coeff = Q
latent = diag(E)
score = X*coeff
PCA from SVD
X = A - mean(A)
[U,S,V] = svd(X,'econ')
coeff = V
latent = diag(S).^2/(n-1)
score = U*S
A Simple Dataset (iris)
A Simple Dataset (iris)
A few notes and practical considerations
Supplementary Material
Van der Maaten, Laurens, and Geoffrey Hinton. "Visualizing data using t-SNE." Journal of machine learning research 9.11 (2008).
The Original Algorithm for t-SNE
Algorithm for PCA
Algorithm for t-SNE
Algorithm for UMAP
Additional Resources
Example 2
C. Stansbury, J. Cwycyshyn, J. Pickard, W. Meixner, I. Rajapakse, and L. A. Muir, “Data-guided direct reprogramming of human fibroblasts into the hematopoietic lineage,” Aug. 26, 2024, bioRxiv
Clustering