Linear Algebra for Machine
Learning basics
Why do you need to learn Linear algebra?
• Linear algebra is a foundation of machine learning. Before you
start to study machine learning, you need to get better knowledge
and understanding of this field
Vectors, Matrices, and Tensors
• In machine learning, the majority of data is most often
represented as vectors, matrices or tensors. Therefore, the
machine learning heavily relies on the linear algebra.
A vector
• A vector is a 1D array. For instance, a point in space can be
defined as a vector of three coordinates (x, y, z). Usually, it is
defined in such a way that it has both the magnitude and the
direction.
A matrix
• A matrix is a two-dimensional array of numbers, that has a fixed
number of rows and columns. It contains a number at the
intersection of each row and each column. A matrix is usually
denoted by square brackets [].
Tensors
• A tensor is a generalization of vectors and matrices. For instance,
a tensor of dimension one is a vector. In addition, we can also
have a tensor of two dimensions which is a matrix. Then, we can
have a three-dimensional tensor such as the image with RGB
colors. This continues to expand to four-dimensional tensors and
so on.
Linear Algebra examples
Eigenvector and eigenvalue
• Any vector that is only scaled by a matrix is called
an eigenvector of that matrix. And how much the vector is
scaled we call the eigenvalue.
Eigenvector and eigenvalue
Linear algebra
Linear algebra
Linear algebra
Linear algebra

Linear algebra

  • 1.
    Linear Algebra forMachine Learning basics
  • 2.
    Why do youneed to learn Linear algebra? • Linear algebra is a foundation of machine learning. Before you start to study machine learning, you need to get better knowledge and understanding of this field
  • 3.
    Vectors, Matrices, andTensors • In machine learning, the majority of data is most often represented as vectors, matrices or tensors. Therefore, the machine learning heavily relies on the linear algebra.
  • 4.
    A vector • Avector is a 1D array. For instance, a point in space can be defined as a vector of three coordinates (x, y, z). Usually, it is defined in such a way that it has both the magnitude and the direction.
  • 5.
    A matrix • Amatrix is a two-dimensional array of numbers, that has a fixed number of rows and columns. It contains a number at the intersection of each row and each column. A matrix is usually denoted by square brackets [].
  • 7.
    Tensors • A tensoris a generalization of vectors and matrices. For instance, a tensor of dimension one is a vector. In addition, we can also have a tensor of two dimensions which is a matrix. Then, we can have a three-dimensional tensor such as the image with RGB colors. This continues to expand to four-dimensional tensors and so on.
  • 9.
  • 13.
    Eigenvector and eigenvalue •Any vector that is only scaled by a matrix is called an eigenvector of that matrix. And how much the vector is scaled we call the eigenvalue.
  • 14.