Skip to content

Commit 5b352e3

Browse files
committed
clarify
1 parent e3d02f5 commit 5b352e3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/linear-algebra.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ Eigenvectors and eigenvalues can be computed with the LinearAlgebra package:
180180
using LinearAlgebra
181181
182182
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
185185
186186
Loading a dataset
187187
-----------------
@@ -444,7 +444,7 @@ Exercises
444444
- 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.
445445
- 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.
446446
- 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.
448448

449449

450450
.. todo::

0 commit comments

Comments
 (0)