Skip to content

Commit

Permalink
add pca notebook and illustration
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzennio committed Mar 27, 2024
1 parent 65dd826 commit 2b26d5f
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,7 @@ where $U$ is a unitary transformation matrix, $UU^H=1$ and $S$ is the diagonal m
The geometrical interpretation of this is, that by applying the transformation $(US)^{-1}$ to correlated data results in an uncorrelated data-set with unity standard deviation.

The rotation $U^{-1} = U^H$ rotates points to a new coordinate system, where correlations between the dimensions vanish. In this rotated coordinate system, $S^{-1}$ scales the dimensions accordingly.

An illustration for a 2-dimensional random multivariate dataset $x$ with correlation coefficient $\rho=0.8$ is shown here:

![pca illustration](./pca.png)
104 changes: 104 additions & 0 deletions pca.ipynb

Large diffs are not rendered by default.

Binary file added pca.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2b26d5f

Please sign in to comment.