Skip to content

Commit b038ac0

Browse files
committed
manualy updating ipynb
1 parent 18b692d commit b038ac0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

dsbook/unsupervised/pca.ipynb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@
136136
"- $u^{(1)}$ is what you get (up to a scaling factor) when you **project $X$ on $v^{(1)}$**.\n",
137137
"- $v^{(1)}$ is what you get (up to a scaling factor) when you **project $X^T$ on $u^{(1)}$**.\n",
138138
"\n",
139+
"The entries of $v$ are often used as sample-specific scores (to illustrate how each sample projects onto a component), while the entries of $u$ act as gene-specific contributions (to show which genes contribute to that component). Plotting $v$ across samples and $u$ across genes are common ways to interpret principal components.\n",
140+
"\n",
139141
"## Dimensionality Reduction and Explained Variance\n",
140142
"\n",
141143
"One of the key advantages of PCA is **dimensionality reduction**. By focusing only on the principal components that describe most of the variance in the data, PCA allows us to reduce the number of random variables under consideration. This is particularly useful when dealing with high-dimensional datasets, such as those encountered in genomics and transcriptomics, where the number of features (e.g., genes) can be overwhelming.\n",
@@ -298,7 +300,15 @@
298300
"name": "python3"
299301
},
300302
"language_info": {
303+
"codemirror_mode": {
304+
"name": "ipython",
305+
"version": 3
306+
},
307+
"file_extension": ".py",
308+
"mimetype": "text/x-python",
301309
"name": "python",
310+
"nbconvert_exporter": "python",
311+
"pygments_lexer": "ipython3",
302312
"version": "3.11.8"
303313
}
304314
},

0 commit comments

Comments
 (0)