Lecture 1: Introduction to Linear Algebra and Matrix TheoryMatrix Multiplication Example
Lecture 1: Introduction to Linear Algebra and Matrix Theory
1. Introduction
Linear Algebra is the foundation of many machine learning algorithms. It deals with
vectors, matrices, and linear transformations.
Understanding these concepts is essential because data in machine learning is usually represented
as vectors and matrices, and most algorithms involve operations on them.
2. Vectors
A vector is an ordered list of numbers. It can represent a data point (features of a person, pixel values of an image, etc.).
Example:
v = [3, 5, 7] # a 3-dimensional vector
In machine learning, a vector often represents a single observation in the dataset.
For example, [height, weight, age] of a person.
3. Matrices
A matrix is a rectangular array of numbers arranged in rows and columns.
Example: