Linear Algebra with NumPy: Matrices, Eigenvalues, SVD & PCA
Socratica
NumPy turns the machinery of linear algebra into fast, readable Python.
In this lesson, we use NumPy’s linear algebra module to calculate determinants and inverses, identify singular matrices, find eigenvalues and eigenvectors, and solve systems of linear equations. We also examine why numpy.linalg.solve() is preferable to explicitly calculating a matrix inverse.
Then we move into matrix decompositions—including singular value decomposition—and finish with a practical application: using principal component analysis to reduce five-dimensional data to three dimensions while preserving most of its information.
Along the way, we cover:
• Determinants, inverses, and identity matrices
• Singular matrices and systems without unique solutions
• Eigenvalues and eigenvectors
• Complex eigenvalues from rotation matrices
• Solving small and large systems of equations
• Numerical stability and floating-point error
• Singular value decomposition (SVD)
• Eigen decomposition
• Principal component analysis (PCA)
• Dimensionality reduction and reconstruction error
Your CPU has suffered through enough inefficient matrix arithmetic.
Chapters
00:00 Linear Algebra Optimization Protocol
00:34...
In this lesson, we use NumPy’s linear algebra module to calculate determinants and inverses, identify singular matrices, find eigenvalues and eigenvectors, and solve systems of linear equations. We also examine why numpy.linalg.solve() is preferable to explicitly calculating a matrix inverse.
Then we move into matrix decompositions—including singular value decomposition—and finish with a practical application: using principal component analysis to reduce five-dimensional data to three dimensions while preserving most of its information.
Along the way, we cover:
• Determinants, inverses, and identity matrices
• Singular matrices and systems without unique solutions
• Eigenvalues and eigenvectors
• Complex eigenvalues from rotation matrices
• Solving small and large systems of equations
• Numerical stability and floating-point error
• Singular value decomposition (SVD)
• Eigen decomposition
• Principal component analysis (PCA)
• Dimensionality reduction and reconstruction error
Your CPU has suffered through enough inefficient matrix arithmetic.
Chapters
00:00 Linear Algebra Optimization Protocol
00:34...
0 Comments
No comments yet. Be the first to weigh in.