Dipartimento di InformaticaUniversità degli Studi di Milano

Statistics and data analysis2025/26

BSc in Computer science · University of Milan · Lectures are in Italian · 6 credits · 60 hours

The course aims at introducing the fundamentals of descriptive statistics, probability and parametric inferential statistics.

Expected results

Students will be able to carry out basic explorative analyses and inferences on datasets, they will know the main probability distributions and will be able to understand statistical analyses conducted by others; moreover, they will know simple methods for the problem of binary classification, and will be able to evaluate their performances. The students will also acquire the fundamental competences for studying more sophisticated techniques for data analysis and data modeling.

News

  1. Schedule change for the Statistics and data analysis course

    The Statistics and data analysis class schedule is modified as follows: the lectures on April 7th, April 28th, and May 12th will start at 9:30 and will last three hours; the lecture on May 12th will take place in room 200; the lecture on April 23rd is canceled.

  2. Schedule change for the Statistics and data analysis course

    The Statistics and data analysis class of May, 26th will take place in classroom G24 from 9:30 to 12:30.

  3. Schedule change for the Statistics and data analysis course

    The Statistics and data analysis class of March, 19th is canceled.

Course schedule

Lectures take place in presence, during the spring semester, at the "Città studi" educational sector. The schedule is as follows:

Day Hour Place
Tuesday 10:30 - 12:30 G11 (Via Golgi)
Thursday 09:30 - 12:30 Aula B7 (Dip. di Biologia)

Any change to the schedule will be announced in class and published in paragraph News of this page.

Office hours

By appointment, room 5015 of the Computer Science Department. It is possible contact the teacher by e-mail, taking care to read in advance the guide prepared by Prof. Sebastiano Vigna and clearly specifying in the message the course name and the academic year. In particular, students are encouraged to always use their academic address (i.e. based on the domain studenti.unimi.it) signing with name and student ID number and recalling that the response time may vary depending on the teacher commitments.

Course material

The parts on descriptive statistics are taken from the first three chapters of the textbook Ross, Introductory statistics, Academic press, 2010, ISBN 9780123743886 (marked by PS in the lectures calendar). These chapters (from the italian edition) can be downloaded through authentication using the previously described credentials.

The remaining part course is mainly based on the following textbook: Ross, S., Introduction to Probability and Statistics for Engineers and Scientists, Academic press, 2020, ISBN 9780128243466 (marked by RPS in the lectures calendar).

Some lecture notes for topics not covered by the textbooks are available through a github repository, as well as in a form directly executable in a Web browser.

The book Wess McKinney, Python for Data Analysis, third edition, O'Reilly 2022, which is also available online, can be used for strengthening the knowledge of Python.

Syllabus

The course explains the topics listed in the lecture calendar.

Prereqs

Students shall have passed the exam of «Calculus»; besides that, the course requires knowledge of the main topics of computer programming, and having passed the exam of «Discrete mathematics» is strongly suggested.

Lectures calendar

Lecture Date Topic Material
L01 03/03/2026 Introduction to python.
L02 05/03/2026 Introduction to python.
L03 10/03/2026 Introduction to pandas.
L04 12/03/2026 Absolute and relative frequencies. Cumulated frequencies. Joined and marginal frequencies. Graphics.
L05 17/03/2026 Introduction to statistics. Centrality and dispersion indices.
L06 24/03/2026 Dispertion indices. Quantiles. Box plots. Symmetric and asymmetric distributions. Empirical rule.
L07 26/03/2026 Scatter plots. Covariance and correlation. Heterogeneity. Concentration. Data transformation.
L08 31/03/2026 Decision trees. ROC curves. Analysis of variance.
L09 02/04/2026 Combinatorics. Bases of set theory. Probability: axioms and elementary theorems. Equiprobable spaces.
L10 07/04/2026 Equiprobable spaces. Conditional probability. Law of total probability. Bayes' theorem.
  • RP 3.6-3.7.
L11 09/04/2026 Independence of events. Naive Bayes classifiers. Introduction to random variables.
L12 14/04/2026 Discrete random variables. Expected value.
  • RP 4.1-4.2, 4.4.
L13 16/04/2026 Expected value. Variance. Multivariate random variables. Independence of random variables.
  • RP 4.3, 4.5-4.6.
L14 21/04/2026 Covariance and correlation.
  • RP 4.7.
L15 28/04/2026 Bernoulli, binomial, hypergeometric and discrete uniform distirbutions.
L16 30/04/2026 Geometric and Poisson distributions.
L17 05/05/2026 Continuous random variables.
L18 07/05/2026 Markov and Chebyshev inequalities. Uniform continuous and exponential distributions.
  • RP 4.9, 5.4-5.6.
L19 12/05/2026 Gaussian distribution. Central limit theorem.
L20 14/05/2026 Statistical inference. Unbiased estimators. Mean squared error and consistent estimators. Sample mean.
  • RP 6.1-6.2, 7.7.
L21 19/05/2026 Unbiased and consistent estimators. Plug-in method. Sample variance.
  • RP 6.4, 7.7.
L22 21/05/2026 Computation of sample size. Poisson process. Maximum likelihood estimators.
  • RP 5.6.1, 6.3.1, 7.2.
L23 26/05/2026 Exam simulation.

Exam modalities

Students should sign up for the examination session in order to be admitted at the exam.

The exam consists of a written and an oral test, both relating to the topics covered in the course. The written test takes place in a computer-based room and it lasts two hours and a half. It is based on open-ended questions and on the analysis of a dataset through the adequate application of the statistical techniques described during the classes. The evaluation, expressed on a scale between 0 and 30, takes into account the level of mastery of the topics and the correct use of mathematical formalism.

The oral test, which is accessed after passing the written test, is mandatory for all students whose evaluation of the written test is below 22/30 or above 26/30. This test is based on the discussion of the written test answers and on questions concerning topics covered in the course. Its evaluation, expressed on a scale between 0 and 30, takes into account the level of mastery of the topics, the clarity, the language skills, and the correct use of technical jargon.

Exam sessions

Session Date
June 15/06/2026
July 01/07/2026
September 15/09/2026
January N/A
February N/A
February N/A