Statistics and data analytics2024/25
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
-
Special exam session in Statistics and data analytics of November 2025
On November 14th, a special exam session in Statistics and Data Analysis is scheduled, open only to students with no more than two exams remaining before graduation. To apply for registration, it is necessary to fill out a form by November 7th, 2025.
-
Date change for the written test of Statistics and data analytics of July 2025
The written test of Statistics and data analytics of July has been postponed to 02/07/2025.
-
Schedule change for the Statistics and data analytics course
The Statistics and data analytics classes of March, 20th and April, 29th are canceled. They will be catched up in May.
-
Course pages for 2024/25
The pages for the 2024/25 courses on Statistics and data analytics and Algorithms for massive datasets are available.
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 | 13:30 - 16:30 | 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 | 25/02/2025 | Introduction to python. | |
| L02 | 27/02/2025 | Introduction to python and pandas. | |
| L03 | 04/03/2025 | Pandas. Absolute and relative frequencies. Cumulated frequencies. Graphics. |
|
| L04 | 06/03/2025 | Introduction to statistics. Centrality and dispersion indices. Pareto charts. Joined and marginal frequencies. Scatter plots. |
|
| L05 | 11/03/2025 | Quantiles. Box plots. Symmetric and asymmetric distributions. Relations between attributes. Empirical rule. |
|
| L06 | 13/03/2025 | Covariance and correlation. Heterogeneity. Decision trees. Exercises. | |
| L07 | 18/03/2025 | Concentration. Data transformations. | |
| L08 | 25/03/2025 | ROC curves. Analysis of variance. | |
| L09 | 27/03/2025 | Combinatorics. Bases of set theory. |
|
| L10 | 01/04/2025 | Probability: axioms and elementary theorems. Equiprobable spaces. |
|
| L11 | 03/04/2025 | Conditional probability. Law of total probability. Bayes' theorem. |
|
| L12 | 08/04/2025 | Independence of events. |
|
| L13 | 10/04/2025 | Naive Bayes classifiers. Discrete random variables. Expected value. |
|
| L14 | 15/04/2025 | Variance. Multivariate random variables. Independence of random variables. |
|
| L15 | 17/04/2025 | Expected value of functions of several random variables. Covariance and correlation between random variables. |
|
| L16 | 22/04/2025 | Markov and Chebyshev inequalities. Bernoulli and binomial distirbutions. |
|
| L17 | 24/04/2025 | Discrete uniform, geometric and Poisson distributions. |
|
| L18 | 06/05/2025 | Poisson and hypergeometric distributions. |
|
| L19 | 08/05/2025 | Continuous distributions. Uniform continuous and exponential distributions. |
|
| L20 | 13/05/2025 | Gaussian distribution. |
|
| L21 | 15/05/2025 | Statistical inference. Unbiased estimators. Mean squared error and consistent estimators. Sample mean. |
|
| L22 | 20/05/2025 | Unbiased and consistent estimators. Plug-in method. Central Limit theorem. |
|
| L23 | 22/05/2025 | Sample variance. Computation of sample size. Poisson process. Maximum likelihood estimators. |
|
| L24 | 29/05/2025 | 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 | 10/06/2025 13/06/2025 |
| July | 01/07/2025 02/07/2025 |
| September | 15/09/2025 |
| January | N/A |
| February | N/A |
| February | N/A |
