AIE501 Advanced Mathematics I for Artificial Intelligence and Machine Learning

6 ECTS - 3-0 Duration (T+A)- . Semester- 3 National Credit

Information

Unit INSTITUTE OF NATURAL AND APPLIED SCIENCES
ARTIFICIAL INTELLIGENCE AND MACHINE LEARNING (MASTER) (WITH THESIS) (ENGLISH)
Code AIE501
Name Advanced Mathematics I for Artificial Intelligence and Machine Learning
Term 2026-2027 Academic Year
Term Fall and Spring
Duration (T+A) 3-0 (T-A) (17 Week)
ECTS 6 ECTS
National Credit 3 National Credit
Teaching Language İngilizce
Level Lisansüstü Dersi
Type Normal
Mode of study Yüz Yüze Öğretim
Catalog Information Coordinator Prof. Dr. YUSUF ALPER KAPLAN
Course Instructor
The current term course schedule has not been prepared yet.


Course Goal / Objective

This course aims to provide the foundations in linear algebra, numerical linear algebra and multivariable calculus required to understand, analyse and implement modern artificial intelligence and machine learning methods. Students learn to express learning problems in vector and matrix form, to solve them stably and efficiently with matrix factorisations, and to compute the gradients of complex models both analytically and by automatic differentiation. The course prepares students for the probability and statistics topics of AIE502 and the optimisation methods of AIE522.

Course Content

Vectors, matrices and the matrix representation of data in machine learning; systems of linear equations; vector spaces, subspaces, linear independence, basis, rank and the four fundamental subspaces; linear maps and change of basis; norms, inner products, orthogonality, Gram–Schmidt orthogonalisation and orthogonal projections; the least-squares problem; determinants, eigenvalues, eigenvectors and the eigendecomposition; symmetric and positive (semi-)definite matrices and quadratic forms; matrix factorisations including LU, Cholesky, QR and the singular value decomposition (SVD); low-rank approximation and the Eckart–Young theorem; principal component analysis (PCA); numerical linear algebra: floating-point arithmetic, condition numbers, stability and iterative solvers; multivariable and matrix calculus: gradients, Jacobians, Hessians, the multivariate chain rule and Taylor expansion; backpropagation and automatic differentiation; random vectors, mean vectors and covariance matrices, linear transformations and the multivariate Gaussian distribution.

Course Precondition

None. Undergraduate-level linear algebra and calculus and basic Python programming skills are recommended.

Resources

Supplementary materials: Gilbert Strang's MIT OpenCourseWare courses 18.06 Linear Algebra and 18.065 Matrix Methods in Data Analysis, Signal Processing, and Machine Learning; the free online version of Deisenroth et al. (2020); Petersen, K. B. and Pedersen, M. S. (2012), The Matrix Cookbook (Technical University of Denmark); Baydin et al. (2018), 'Automatic differentiation in machine learning: a survey', Journal of Machine Learning Research; Halko, Martinsson and Tropp (2011), 'Finding structure with randomness', SIAM Review. Computational work uses Python with NumPy, SciPy and Matplotlib in Jupyter notebooks; automatic differentiation is practised with PyTorch or JAX. Weekly problem sets combine derivations with short programming exercises, and each student completes a term project (e.g. PCA on a real data set or a minimal automatic-differentiation engine) presented in week 15. PCA is developed here from its linear-algebraic foundations; its use alongside other dimensionality-reduction methods is covered in AIE509.

Notes

1. Deisenroth, M. P., Faisal, A. A., Ong, C. S. (2020). Mathematics for Machine Learning. Cambridge University Press. 2. Strang, G. (2019). Linear Algebra and Learning from Data. Wellesley-Cambridge Press. 3. Trefethen, L. N., Bau, D. (2022). Numerical Linear Algebra (Twenty-fifth anniversary ed.). SIAM. 4. Golub, G. H., Van Loan, C. F. (2013). Matrix Computations (4th ed.). Johns Hopkins University Press. 5. Magnus, J. R., Neudecker, H. (2019). Matrix Differential Calculus with Applications in Statistics and Econometrics (3rd ed.). Wiley. 6. Griewank, A., Walther, A. (2008). Evaluating Derivatives: Principles and Techniques of Algorithmic Differentiation (2nd ed.). SIAM.


Course Learning Outcomes

Order Course Learning Outcomes
LO01 Explain vector spaces, subspaces, rank, norms, inner products and orthogonal projections, and use them to formulate machine learning problems in vector–matrix form.
LO02 Compute and interpret the eigendecomposition and the LU, Cholesky, QR and singular value decompositions, and select the appropriate factorisation for a given problem.
LO03 Derive principal component analysis and low-rank approximation from the singular value decomposition and apply them to real data sets.
LO04 Analyse the conditioning and numerical stability of linear-algebra computations and choose stable and efficient algorithms for large-scale problems.
LO05 Derive gradients, Jacobians and Hessians of scalar-, vector- and matrix-valued functions using multivariable and matrix calculus.
LO06 Explain forward- and reverse-mode automatic differentiation, and implement backpropagation on a computational graph and verify the gradients numerically.
LO07 Compute the moments, linear transformations, marginal and conditional distributions of random vectors and multivariate Gaussian distributions.


Relation with Program Learning Outcome

Order Type Program Learning Outcomes Level
PLO01 Bilgi - Kuramsal, Olgusal Building on undergraduate-level qualifications, has advanced theoretical knowledge of linear algebra, multivariable calculus, probability, statistics, optimisation and information theory required for original work in artificial intelligence and machine learning. 5
PLO02 Bilgi - Kuramsal, Olgusal Has an in-depth understanding of current methods in the main sub-fields of artificial intelligence, notably machine learning, deep learning, reinforcement learning, computer vision, natural language processing and generative models, together with their assumptions and limitations. 3
PLO03 Beceriler - Bilişsel, Uygulamalı Formulates real-world problems as appropriate artificial intelligence/machine learning problems, and designs and implements solutions covering data preparation, model selection, training and evaluation. 2
PLO04 Beceriler - Bilişsel, Uygulamalı Develops efficient, scalable and reproducible software and models using Python and current libraries and frameworks, and makes effective use of big data and high-performance computing resources.
PLO05 Beceriler - Bilişsel, Uygulamalı Evaluates methods with appropriate performance metrics, statistical tests and comparative experiments, interprets results critically and designs reproducible experimental protocols.
PLO06 Yetkinlikler - Öğrenme Yetkinliği Reviews the national and international literature of the field systematically and critically, independently learns new and emerging methods, and adapts them to their own research problem.
PLO07 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Defines a research problem in the field, solves it independently by developing an original method or model, and conducts a thesis study that contributes to scientific knowledge.
PLO08 Yetkinlikler - Bağımsız Çalışabilme ve Sorumluluk Alabilme Yetkinliği Takes responsibility and leadership in interdisciplinary teams working on complex problems in application domains such as health, energy, agriculture, industry, finance and logistics, and develops solutions together with domain experts.
PLO09 Yetkinlikler - İletişim ve Sosyal Yetkinlik Communicates the processes and results of their work clearly and systematically in English, in written (paper, thesis, report) and oral form, in national and international settings. 2
PLO10 Yetkinlikler - Alana Özgü Yetkinlik Observes scientific and professional ethics, data privacy, fairness, transparency and safety principles and the relevant legal regulations in developing and using AI systems, and assesses their societal impact
PLO11 Yetkinlikler - Alana Özgü Yetkinlik Deploys trustworthy, explainable and sustainable AI solutions to real environments such as the cloud, edge devices and industrial systems, taking into account resource constraints such as energy, memory and latency.


Week Plan

Week Topic Preparation Methods
1 Introduction: the role of linear algebra and calculus in AI and machine learning; vectors, matrices and the matrix representation of data; systems of linear equations, Gaussian elimination and LU factorisation Read Deisenroth et al. (2020), Chapters 1 and 2; review NumPy array operations Öğretim Yöntemleri:
Anlatım, Soru-Cevap, Bireysel Çalışma
2 Vector spaces and subspaces; linear independence, basis, dimension and rank; the four fundamental subspaces; linear maps, kernel and image, change of basis Read Deisenroth et al. (2020), Chapter 2; Strang (2019), relevant sections of Part I Öğretim Yöntemleri:
Anlatım, Problem Çözme, Soru-Cevap
3 Vector and matrix norms (p-norms, Frobenius and spectral norms); inner products, lengths, angles and orthogonality; orthonormal bases, Gram–Schmidt orthogonalisation and orthogonal projections Read Deisenroth et al. (2020), Chapter 3 Öğretim Yöntemleri:
Anlatım, Problem Çözme
4 The least-squares problem: normal equations and geometric interpretation; QR factorisation via Householder reflections and least-squares solution with QR; linear and ridge regression as machine learning examples Read Trefethen and Bau (2022), Part II (QR Factorization and Least Squares) Öğretim Yöntemleri:
Anlatım, Problem Çözme
5 Determinant and trace; eigenvalues and eigenvectors; eigendecomposition and diagonalisation; symmetric matrices and the spectral theorem; positive definite matrices, quadratic forms and Cholesky factorisation Read Deisenroth et al. (2020), Chapter 4 Öğretim Yöntemleri:
Anlatım, Problem Çözme, Soru-Cevap
6 Singular value decomposition (SVD): geometric interpretation, existence and relation to the eigendecomposition; the Moore–Penrose pseudo-inverse; low-rank approximation and the Eckart–Young theorem; computing the SVD and its applications Read Deisenroth et al. (2020), Chapter 4; Trefethen and Bau (2022), Lectures 4–5 Öğretim Yöntemleri:
Anlatım, Problem Çözme
7 Principal component analysis (PCA): maximum-variance and minimum-reconstruction-error views, PCA via SVD, choosing the number of components, whitening; review before the mid-term Read Deisenroth et al. (2020), Chapter 10; revise the problem sets of weeks 1–6 Öğretim Yöntemleri:
Anlatım, Soru-Cevap, Problem Çözme
8 Mid-Term Exam exam preparation Ölçme Yöntemleri:
Yazılı Sınav
9 Numerical linear algebra: floating-point arithmetic and rounding errors; conditioning and condition numbers; backward stability; sensitivity of linear systems and least-squares problems; the effect of regularisation on conditioning Read Trefethen and Bau (2022), Part III (Conditioning and Stability) Öğretim Yöntemleri:
Anlatım, Problem Çözme
10 Large-scale matrix computations: sparse matrices, power iteration, Krylov subspace methods (conjugate gradient, Lanczos) and randomised SVD; efficient implementation with NumPy and SciPy Read Trefethen and Bau (2022), Part VI (Iterative Methods); Golub and Van Loan (2013), relevant chapters; Halko, Martinsson and Tropp (2011 Öğretim Yöntemleri:
Anlatım
11 Multivariable calculus: partial derivatives, gradients and directional derivatives; vector-valued functions and the Jacobian matrix; the Hessian matrix; the multivariate chain rule, Taylor expansion and linearisation Read Deisenroth et al. (2020), Chapter 5 Öğretim Yöntemleri:
Anlatım, Problem Çözme, Soru-Cevap
12 Matrix calculus: derivatives with respect to vectors and matrices, layout conventions, identities for derivatives of the trace, log-determinant and inverse; gradients of least-squares, logistic and softmax cross-entropy losses Read Magnus and Neudecker (2019), relevant chapters; consult Petersen and Pedersen (2012), The Matrix Cookbook Öğretim Yöntemleri:
Anlatım, Bireysel Çalışma, Problem Çözme
13 Backpropagation and automatic differentiation: computational graphs, forward and reverse modes, vector–Jacobian and Jacobian–vector products, computational cost; gradient checking with finite differences; implementation with PyTorch/JAX Read Baydin et al. (2018), 'Automatic differentiation in machine learning: a survey'; Griewank and Walther (2008), relevant chapters Öğretim Yöntemleri:
Gösteri, Anlatım, Alıştırma ve Uygulama
14 Random vectors: expectation, mean vector, covariance matrix and its properties, linear transformations; the multivariate Gaussian distribution: density, marginal and conditional distributions, affine transformations, sampling via Cholesky factorisation, Mahalanobis distance Read Deisenroth et al. (2020), Chapter 6 Öğretim Yöntemleri:
Anlatım, Problem Çözme, Alıştırma ve Uygulama
15 Term project presentations (e.g. PCA on real data, a minimal automatic-differentiation engine) and overall course review Prepare the term project report and presentation Öğretim Yöntemleri:
Tartışma, Soru-Cevap
16 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım
17 Term Exams exam preparation Ölçme Yöntemleri:
Proje / Tasarım


Student Workload - ECTS

Works Number Time (Hour) Workload (Hour)
Course Related Works
Class Time (Exam weeks are excluded) 14 3 42
Out of Class Study (Preliminary Work, Practice) 14 4 56
Assesment Related Works
Homeworks, Projects, Others 0 0 0
Mid-term Exams (Written, Oral, etc.) 1 18 18
Final Exam 1 24 24
Total Workload (Hour) 140
Total Workload / 25 (h) 5,60
ECTS 6 ECTS

Update Time: 27.11.2026 05:27