diff --git a/doc/pub/DimRed/html/._DimRed-bs018.html b/doc/pub/DimRed/html/._DimRed-bs018.html index 26757403b..a7cce97b1 100644 --- a/doc/pub/DimRed/html/._DimRed-bs018.html +++ b/doc/pub/DimRed/html/._DimRed-bs018.html @@ -229,7 +229,7 @@ Note that the function multivariate returns also the covariance discussed
import numpy as np
 import pandas as pd
 from IPython.display import display
-n = 100
+n = 10000
 mean = (-1, 2)
 cov = [[4, 2], [2, 2]]
 X = np.random.multivariate_normal(mean, cov, n)
@@ -313,14 +313,15 @@ plt.show()
 

Depending on the number of points \( n \), we will get results that are close to the covariance values defined above. +The plot shows how the data are clustered around a line with slope close to one. Is this expected?

Diagonalize the sample covariance matrix to obtain the principal components

Now we are ready to solve for the principal components! To do so we -diagonalize the sample covariance matrix \( \Sigma_n \). We can use the +diagonalize the sample covariance matrix \( \Sigma \). We can use the function np.linalg.eig to do so. It will return the eigenvalues and -eigenvectors of \( \Sigma_n \). Once we have these we can perform the +eigenvectors of \( \Sigma \). Once we have these we can perform the following tasks: