You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/linear-algebra.rst
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,8 +180,8 @@ Eigenvectors and eigenvalues can be computed with the LinearAlgebra package:
180
180
using LinearAlgebra
181
181
182
182
A = [1 2 3;4 5 6;7 8 9]
183
-
eigvecs(A) # eigen vectors of A
184
-
eigvals(A) # eigen values of A
183
+
eigvecs(A) # eigenvectors of A
184
+
eigvals(A) # eigenvalues of A
185
185
186
186
Loading a dataset
187
187
-----------------
@@ -444,7 +444,7 @@ Exercises
444
444
- The principal directions (eigenvectors) are only defined up to sign, which partly explains why they may get flipped when you rerun the script. One has to look into the algorithm that computes the eigenvectors to get a full explanation.
445
445
- When the number of points is only 100, there is not enough data to accurately capture the principal directions so they vary a bit from run to run.
446
446
- When you take more data, ``M/n`` (divide by the number of data points) should get close to ``S``.
447
-
- Is any step missing in the code examples? The data was not centered. This is stritcly speaking wrong but has a small effect in this case since the mean vector of the normal distribution used to generate data is 0. The generated data will then have approximate mean 0.
447
+
- Is any step missing in the code examples? The data was not centered. This has a small effect in this case. We are using the true mean (0) of the underlying distribution used to generated data, rather than the sample mean as in previous examples.
0 commit comments