Recommender Systems
statistical methods for machine learning
6 CFU, Laurea magistrale in Informatica (F94)
machine learning
6 CFU, MSc in Data Science and Economics

TAs: Giulia Clerici and Andrea Paudice


For students of the MSc in Data Science and Economics

Bibliographic references:

Lecture notes provided by the instructor

The course makes heavy use of probability and statistics. A good textbook on these topics is:

Dimitri P. Bertsekas and John N. Tsitsiklis, Introduction to Probability (2nd edition). Athena Scientific, 2008.

Some good machine learning textbooks:
Shai Shalev-Shwartz e Shai Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press, 2014.

Mehryar Mohri, Afshin Rostamizadeh e Ameet Talwalkar, Foundations of Machine Learning, MIT Press, 2012.

L. Devroye, L. Gyorfi, and G. Lugosi, A Probabilistic Theory of Pattern Recognition, Springer, 1996.


Machine learning is concerned with the design of algorithms that can predict the evolution of a phenomenon based of a set of observations. A standard tool in the development of intelligent systems, machine learning has been successfully applied to a wide range of domains, including vision, speech and language, human-computer interaction, personalized recommendations, health and medicine, autonomous navigation, and many more. The course will describe and analyze, in a rigorous statistical framework, some of the most important machine learning techniques. This will provide the student with a rich set of methodological tools for understanding the general phenomenon of learning in machines.
Note: This is a course about the theoretical foundations of machine learning and the analysis of machine learning algorithms. The focus is on understanding the mathematical principles at the basis of machine learning.


  1. Introduction (version of March 2, 2021)
  2. The Nearest Neighbour algorithm (version of March 8, 2021)
  3. Tree predictors (version of March 16, 2021)
  4. Statistical learning (version of August 14, 2021. Typo corrected.)
  5. Hyperparameter tuning and risk estimates (version of March 26, 2021)
  6. Risk analysis for tree predictors (version of March 24, 2021)
  7. Risk analysis for Nearest Neighbour (version of April 7, 2021)
  8. Consistency and nonparametric algorithms (version of April 22, 2021)
  9. Linear prediction (version of April 22, 2021)
  10. Online learning (version of April 29, 2021)
  11. From sequential risk to statistical risk (version of May 11, 2020)
  12. Kernel functions (version of May 22, 2021)
  13. Support Vector Machines (version of June 10, 2020)
  14. Stability and risk control for SVM (version of May 22, 2021)
  15. Boosting and ensemble methods (version of May 28, 2021)
  16. Neural networks and deep learning (version of May 24, 2021)
  17. Surrogate loss functions (version of June 8, 2021)


The exam consists in writing a paper of about 10-15 pages containing either a report describing experimental results (experimental project) or a in-depth analysis of a theoretical topic (theory project). The steps each student must follow are:

  1. Write an email to the instructor to inform about which project among the ones offered you chose and wait for an approval
  2. Turn in the report by email to the instructor (if the project is experimental add a link to the code) and wait for the evaluation
  3. Once the report is evaluated, a date for the oral can be set
  4. At the oral, the student will be asked detailed questions on:


The experimental project is typically based on implementing two or more learning algorithms (or variants of the same algorithm) from scratch. The algorithms are compared on real-world datasets. The programming language is immaterial. However, the implementation should be reasonable in terms of running time and memory footprint. If the experimental project is based on neural networks, then the student is allowed to use a toolbox (e.g., Tensorflow). The report, preferably written using LaTeX, will be evaluated according to the following criteria:

It is OK if two students submit an experimental project together as a group. Clearly, such group projects are expected to be more extensive than single-person projects (more experiments, comparison with baseline algorithms, etc).

The theory project is typically (but not exclusively) focused on a topic taught in class. The report will be based on one scientific paper (provided by the instructor), and must contain the complete proof of at least a technical result, including all necessary definitions and auxiliary lemmas. The goal of the theory project is to provide an in-depth presentation of the paper's results, including its connections with the related literature. The report may be structured as follows

Note: The theory project report MUST be written in LaTeX.


Course calendar:

Browse the calendar pages and click on a day to find out what was covered on that day, and the link to the video in case the class was viderecorded.