Toc PDF
Toc PDF
Toc PDF
List of illustrations vi
List of tables x
Foreword 1
2 Linear Algebra 19
2.1 Systems of Linear Equations 21
2.2 Matrices 24
2.2.1 Matrix Addition and Multiplication 24
2.2.2 Inverse and Transpose 26
2.2.3 Multiplication by a Scalar 27
2.2.4 Compact Representations of Systems of Linear Equations 28
2.3 Solving Systems of Linear Equations 29
2.3.1 Particular and General Solution 29
2.3.2 Elementary Transformations 30
2.3.3 The Minus-1 Trick 34
2.3.4 Algorithms for Solving a System of Linear Equations 36
2.4 Vector Spaces 37
2.4.1 Groups 38
2.4.2 Vector Spaces 39
2.4.3 Vector Subspaces 41
2.5 Linear Independence 42
2.6 Basis and Rank 46
2.6.1 Generating Set and Basis 46
2.6.2 Rank 49
2.7 Linear Mappings 50
2.7.1 Matrix Representation of Linear Mappings 52
2.7.2 Basis Change 55
2.7.3 Image and Kernel 60
2.8 Affine Spaces 63
2.8.1 Affine Subspaces 63
i
Draft chapter (November 27, 2018) from “Mathematics for Machine Learning” c 2018 by Marc
Peter Deisenroth, A Aldo Faisal, and Cheng Soon Ong. To be published by Cambridge University
Press. Report errata and feedback to http://mml-book.com. Please do not post or distribute this
file, please link to https://mml-book.com.
ii Contents
3 Analytic Geometry 72
3.1 Norms 73
3.2 Inner Products 74
3.2.1 Dot Product 74
3.2.2 General Inner Products 74
3.2.3 Symmetric, Positive Definite Matrices 75
3.3 Lengths and Distances 77
3.4 Angles and Orthogonality 78
3.5 Orthonormal Basis 80
3.6 Inner Product of Functions 81
3.7 Orthogonal Projections 82
3.7.1 Projection onto 1-Dimensional Subspaces (Lines) 84
3.7.2 Projection onto General Subspaces 86
3.7.3 Projection onto Affine Subspaces 89
3.8 Rotations 90
3.8.1 Rotations in R2 91
3.8.2 Rotations in R3 92
3.8.3 Rotations in n Dimensions 93
3.8.4 Properties of Rotations 94
3.9 Further Reading 94
Exercises 95
4 Matrix Decompositions 96
4.1 Determinant and Trace 97
4.2 Eigenvalues and Eigenvectors 104
4.3 Cholesky Decomposition 112
4.4 Eigendecomposition and Diagonalization 114
4.5 Singular Value Decomposition 119
4.5.1 Geometric Intuitions for the SVD 120
4.5.2 Existence and Construction of the SVD 123
4.5.3 Eigenvalue Decomposition vs Singular Value Decomposition 127
4.6 Matrix Approximation 130
4.7 Matrix Phylogeny 135
4.8 Further Reading 136
Exercises 138
Draft (2018-11-27) from Mathematics for Machine Learning. Errata and feedback to https://mml-book.com.
Contents iii
c 2018 Marc Peter Deisenroth, A. Aldo Faisal, Cheng Soon Ong. To be published by Cambridge University Press.
iv Contents
Draft (2018-11-27) from Mathematics for Machine Learning. Errata and feedback to https://mml-book.com.
Contents v
References 395
Index 407
c 2018 Marc Peter Deisenroth, A. Aldo Faisal, Cheng Soon Ong. To be published by Cambridge University Press.