← Back to PMAI Lab Courses Computer Science

Linear Algebra For ML

Learn the linear algebra behind machine learning through practical concepts and applications. Use Python and NumPy to explore vectors, transformations, SVD, and data representation.

Academic Year
Semester
Credit Hours
Course Code

Course Description

This course introduces the essential linear algebra concepts used in machine learning, including vectors, matrices, linear transformations, eigenvalues, orthogonality, least squares, and SVD. Students will use Python and NumPy to connect mathematical theory with practical applications such as data representation, dimensionality reduction, and neural networks.

Topics include: Vectors and Vector Spaces, Matrix Operations and Linear Systems, Eigenvalues and Eigenvectors, Orthogonality and Least-Squares Methods, Singular Value Decomposition and Dimensionality Reduction

Course Learning Outcomes

01

Apply vectors, matrices, and linear transformations to represent machine-learning problems.

02

Solve systems of linear equations using analytical methods and Python.

03

Analyze data using eigenvalues, eigenvectors, orthogonality, and least-squares methods.

04

Implement SVD and dimensionality-reduction techniques for machine-learning applications.

Faculty

Hira Benish
>

Dr Hira Benish

Associate Professor, Head of Mathematics Department

Riphah International University Sahiwal

Course Outline

PDF

Course Outline

Official course outline and syllabus.

View PDF

Lecture Notes

01

Lecture 01 — Introduction

Introduction and Linear Systems for Machine Learning

PDF
02

Lecture 02 — Vector Spaces

Vectors, Linear Combinations, Span, and Feature Spaces.

PDF
03

Lecture 03 — Linear Independence

Vector Spaces, Subspaces, Linear Independence, Basis, and Dimension.

PDF
04

Lecture 04 — Linear Transformations

Matrices as Linear Transformations, Composition, Inverses, and Geometric Effects.

PDF
05

Lecture 05 — Orthogonality

Inner Products, Orthogonality, Orthonormal Bases, and Vector Projections.

PDF
06

Lecture 06 — Least-Squares Problems

Least-Squares Problems, Normal Equations, Linear Regression, and Model Fitting

PDF
07

Lecture 07 — Eigenvalues, Eigenvectors

Eigenvalues, Eigenvectors, Diagonalization, and Stable Transformation Directions.

PDF
08

Lecture 08 — Singular Value Decomposition

Singular Value Decomposition, PCA, Low-Rank Approximation, and Data Compression.

PDF
09

Lecture 09 — Neural Networks

Neural Networks, Embeddings, Attention, and Gradient-Based Learning

PDF
10

Lecture 10 — Continuity

Integrated Machine-Learning Case Studies, Numerical Reliability, and Course Review.

PDF

Assignments

A1

Assignment 01

Coming soon....

PDF
A2

Assignment 02

Coming soon....

PDF
A3

Assignment 03

Coming soon....

PDF
A4

Assignment 04

Coming soon....

PDF

Quizzes

Q1

Quiz 01

Coming Soon...

PDF
Q2

Quiz 02

Coming Soon...

PDF
Q3

Quiz 03

Coming Soon....

PDF
Q4

Quiz 04

Coming Soon...

PDF

Case Study

CS

Case Study 01

Real-Life Scenario, Analysis

PDF
CS

Case Study 02

Real-Life Example Python.

PDF

Additional Resources

R1

Reference Material

Supplementary mathematical learning material.

PDF

Want to Collaborate or Share Resources?

Faculty members can contribute course materials, research resources, lectures, assignments and academic content to the PMAI Lab network.