Dipartimento di InformaticaUniversità degli Studi di Milano

Statistics and data analytics2023/24

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

Archived edition: this page is kept for reference, and some materials or links may no longer be available. Current edition (2026-27) →

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. February oral tests of Statistics and data analysis (second call)

    The oral tests of Statistics and data analysis for the second call of the february session will take place in the Computer Science Department, on Friday 7/3 at 9:30 (sala riunioni on the fifth floor) and 15:30 (lab. magistrale on the fifth floor). The public correction of the exam will take place on 7/3 after the end of the oral exams.

  2. February oral tests of Statistics and data analysis (first call)

    The oral tests of Statistics and data analysis for the first call of the february session will take place in the Computer Science Department, on Tuesday 11/2 at 14:30 (sala riunioni on the fourth floor) and on Wednesday 12/2 at 10:30 (lab. magistrale on the fifth floor). The public correction of the exam will take place on 12/2 after the end of the oral exams.

  3. January oral tests of Statistics and data analysis

    The oral tests of Statistics and data analysis for the january session will take place in the Computer Science Department, on Friday 24/1 at 9:30 (Lab. magistrale on the fifth floor). The public correction of the exam will take place on 24/1 in the lab. magistrale classroom on the fifth floor at 14:30.

Earlier news (6)
  1. September oral tests of Statistics and data analysis

    The oral tests of Statistics and data analysis for the september session results will take place in the Computer Science Department, on Monday 23/9 at 9:00 (lab. magistrale on the floor), on Tuesday 24/9 at 9:30 (meeting room on the fifth floor), and on Wednesday 25/9 at 14:30 (Lab. magistrale on the fifth floor). The public correction of the exam will take place on 25/9 at the end of the oral tests.

  2. July oral tests of Statistics and data analysis

    Students enrolled in the Statistics and data analysis test of 1/7 should receive an e-mail message containing the results and the schedule of oral tests, which will take place in the Computer Science Department, on Friday 5/7 at 9:30 (classroom Beta), on Monday 8/7 at 9:30 (meeting room on the fifth floor), and on Thursday 11/7 at 9:30 (meeting room on the fifth floor). The public correction of the exam will take place on 11/7 at 14:30 in the meeting room on the fifth floor.

  3. Place and time of the Statistics and data analysis written test of July 1st, 2024

    The Statistics and data analytics written test of 1/7 will take place in the classrooms delta, tau and gamma of the computer science department, at 8:30. Participants can bring a book and a notebook for consultation.

  4. June oral tests of Statistics and data analysis

    Students enrolled in the Statistics and data analysis test of 12/6 should receive an e-mail message containing the results and the schedule of oral tests, which will take place in the Computer Science Department, on Friday 14/6 at 9:00 and 14:00 (sala riunioni quinto piano), and on Monday 17/6 at 8:30 (sala riunioni quinto piano) and 14:00 (lab. magistrale quinto piano). The public correction of the exam will take place on 17/6 at the end of the oral exams.

  5. Place and time of the Statistics and data analysis written test of June 12th, 2024

    The Statistics and data analytics written test of 12/6 will take place in the classrooms delta, tau and lambda of the computer science department, at 8:30. Participants can bring a book and a notebook for consultation.

  6. Schedule change for the lectures of «Statistics and data analytics»

    Starting from March, 7th, the «Statistics and data analytics» lectures of each Thursday will take place in the G21 classroom.

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 208 (Settore didattico)
Thursday 13:30 - 16:30 G21 (via Golgi) Aula magna (Dip. di Informatica)

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 strenghtening 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 27/02/2024 Introduction to python.
L02 29/02/2024 Introduction to python and pandas.
L03 05/03/2024 Pandas. Absolute and relative frequencies. Cumulated frequencies. Graphics.
L04 07/03/2024 Introduction to statistics. Centrality and dispersion indices.
  • RS 1, 2, 3.1–3.5
L05 12/03/2024 Quantiles. Box plots. Symmetric and asymmetric distributions. Relations between attributes.
L06 14/03/2024 Pareto charts. Joined and marginal frequences. Scatter plots. QQ plots. Empirical rule.
L07 19/03/2024 Data transformations. Heterogeneity indices.
L08 21/03/2024 Decision trees. Concentration indices. ROC curves. Analysis of variance.
L09 26/03/2024 Combinatorics. Bases of set theory.
L10 04/04/2024 Probability: axioms and elementary theorems. Equiprobable spaces.
  • RP 3.1-3.5.
L11 09/04/2024 Conditional probability. Law of total probability.
  • RP 3.6-3.7.
L12 11/04/2024 Bayes' theorem. Independence of events. Naive Bayes classifiers.
L13 16/04/2024 Naive Bayes classifiers. Discrete random variables.
  • RP 4.1-4.2.
L14 18/04/2024 Expected value. Variance. Multivariate random variables. Independence of random variables.
  • RP 4.5,4.7.
L15 23/04/2024 Markov and Chebyshev inequalities. Bernoulli and binomial distirbutions.
  • RP 4.2, 4.9, 5.1.
L16 30/04/2024 Markov and Chebyshev inequalities. Bernoulli and binomial distirbutions.
  • RP 4.9, 5.1.
L17 02/05/2024 Discrete uniform, geometric and Poisson distributions.
L18 07/05/2024 Poisson and hypergeometric distributions. Continuous random variables.
L19 09/05/2024 Uniform continuous,exponential and Gaussian distributions.
  • RP 5.4-5.6.
L20 14/05/2024 Gaussian distribution and central limit theorem. Inferential statistics.
  • RP 5.5, 6.1.
L21 16/05/2024 Unbiased estimators. Mean squared error and consistent estimators. Sample mean and sample variance.
  • RP 6.2-6.4, 7.7.
L22 21/05/2024 Computation of sample size. Maximum likelihood estimators.
  • RP 6.4, 7.2.
L23 23/05/2024 Maximum likelihood estimators. Plug-in estimators. Poisson process.
  • RP 5.6.1, 7.2.
L24 30/05/2024 Exercises.

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, with a mark of pass/fail, 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 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 12/06/2024
July 01/07/2024
September 13/09/2024
January 15/02/2025
February 04/02/2025
February 21/02/2025