Dipartimento di InformaticaUniversità degli Studi di Milano

Statistics and data analysis2026/27

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 of November 2nd 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
Monday 13:30 - 16:30 Aula Magna (Via Celoria 18)
Thursday 13:30 - 16:30 Aula Magna (Via Celoria 18)

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 24/09/2026 Introduction to python.
L02 28/09/2026 Introduction to python.
L03 01/10/2026 Descriptive statistics: frequencies and charts.
L04 05/10/2026 Descriptive statistics: central tendency and dispersion.
L05 08/10/2026 Descriptive statistics: covariance and correlation; concentration; data transformation.
L06 12/10/2026 Descriptive statistics: heterogeneity and decision trees; classifiers and ROC curves; analysis of variance.
L07 15/10/2026 Combinatorics and review of set theory.
L08 19/10/2026 Probability theory: axioms and elementary theorems.
  • RP 3.4.
L09 22/10/2026 Probability theory: equiprobable spaces, conditional probability, law of total probability, and Bayes’ theorem.
  • RP 3.5-3.7.
L10 26/10/2026 Probability theory: independence of events; naive Bayes classifiers; random variables.
L11 29/10/2026 Probability theory: discrete random variables; measures of central tendency of a distribution.
  • RP 4.1-4.6.
L12 05/11/2026 Probability theory: measures of dispersion of a distribution; multivariate random variables; Bernoulli and binomial models.
  • RP 4.7, 5.1.
L13 09/11/2026 Probability theory: hypergeometric, discrete uniform, geometric, and Poisson distributions.
L14 12/11/2026 Probability theory: continuous random variables; Markov’s and Chebyshev’s inequalities; continuous uniform distribution.
L15 16/11/2026 Probability theory: exponential and Gaussian distributions; central limit theorem.
L16 19/11/2026 Probability theory: Poisson process.
  • RP 6.3.1..
L17 23/11/2026 Inferential statistics: point estimators.
  • RP 6.1-6.3, 7.1, 7.7.
L18 26/11/2026 Inferential statistics: point estimators.
  • RP 6.4.
L19 30/11/2026 Computation of sample size. Maximum likelihood estimators.
  • RP 6.3.2, 7.2.
L20 03/12/2026 Exam simulation.

    Exam modalities

    Students should sign up for the examination session in order to be admitted at the exam. The assessment consists of a compulsory written examination, lasting two and a half hours, and an oral examination.

    The written examination consists of open-ended questions of either a theoretical or an applied nature, with content and difficulty levels consistent with the topics covered during the course. Students may consult a formula sheet and statistical tables provided by the instructor, and may use non-programmable calculators. The consultation of any other materials, including textbooks, personal notes, or electronic devices such as mobile phones, is strictly prohibited. The written examination is graded on a 30-point scale, and the results are communicated by email. Assessment is based on the student's level of mastery of the course material and on the correct use of mathematical notation and formalism. Passing the written examination is a necessary condition for passing the course assessment; failure to pass the written examination therefore results in failure of the examination as a whole.

    The oral examination is compulsory for students who obtain a grade below 22/30 or above 26/30 in the written examination. It consists of a discussion of the student's written work and of questions concerning topics covered in the course. The oral examination is assessed on the basis of the student's mastery of the course material, clarity of presentation, appropriateness of language, and correct use of technical terminology. The final grade for the examination, expressed on a 30-point scale, is determined on the basis of the outcomes of both the written and the oral examinations.

    Exam sessions

    Session Date
    January 18/01
    February 03/02
    February 24/02
    June 14/06
    July 05/07
    September 16/09