Probability, statistics and computer science

A.Y. 2018/2019
Overall hours
INF/01 MAT/06
Learning objectives
The aim of this course is to provide the students with the basic instruments both of univariate statistics and informatics needed to store, manage and statistically analyse real data. The course is divided into 2 parts.
Part 1: Descriptive statistics; introduction to probability and random variables; inferential Statistics; linear regression; nonparametric Statistics; computer lab case studies.
Part 2: Introduction to the use of electronic sheets; elements of scientific programming.
Expected learning outcomes
Course syllabus and organization

Single session

Lesson period
Second semester
Probability, statistics
Course syllabus
Descriptive statistics:
1)Sampling from populations. Types of data and variables.
2)Partitioning of data into classes and construction of frequency tables. Histograms and bar charts.
3)Centrality indexes (mean, mode, median, midrange). Dispersion indices (range, standard deviation, variance), percentiles, quartiles. Outliers, boxplots.
Probability and random variables:
4)Sample space, events, probability of events
5)Probability of union and intersection of events. Complementary events. Independent events. Conditional probability. Bayes theorem. Factorials and binomial coefficients.
6)Random variables. Expected value, variance and standard deviation of discrete r.v.
7)Discrete r.v.'s: binomial and Poisson. Continuous r.v.'s: uniform and normal.
8)Standardization and properties of normal distribution. Normal approximation of the binomial distribution.
Inferential statistics:
9)Fundamental concepts: population, sample, parameter, statistics, estimator. Behaviour of the sample mean: law of large numbers and central limit theorem. Punctual estimate.
10)Confidence intervals: general concepts. Confidence interval for a proportion.
11)Confidence interval for the mean, both with known and unknown standard deviation. T Student distribution.
12)Statistical hypothesis testing. General concepts: null and alternate hypotheses, first and second type errors, significance level, power function, p value, test statistics, critical region.
13)Hypothesis test on a proportion. Hypothesis tests on the mean (both with known and unknown variance)
14)Inference for two samples: inference for two proportions. Inference for two means, both for paired or independent samples.
15)One and two way ANOVA
Linear regression and bivariate statistics:
16)Covariance and correlation. Simple linear regression. Tests on the coefficients of the regression model and model validation.
17)Test of independence and of fit. Chi squared distribution.

Computer lab
18)Illustrative examples of applications of descriptive, inferential and predictive statistics on real data, through the use of simple statistical softwares.
Computer science
Course syllabus
The course consists of theoretical lectures and labs.
1) The meaning of Computer Science, algorithms and programs;
2) Computer architecture and digital information;
3) Low and high level programming: compilers and interpreters;
4) Foundations of structured programming;
5) The Python language: data types, control structures, functions and files.
1) Operating systems and file system;
2) Programming environment and tools;
3) Programming activity related to theoretical topics above presented.
Computer science
INF/01 - INFORMATICS - University credits: 4
Practicals: 16 hours
Lessons: 24 hours
Probability, statistics
MAT/06 - PROBABILITY AND STATISTICS - University credits: 5
Practicals: 16 hours
Lessons: 32 hours
Monday 14-16 by appointment by email; other days by appointment by email
online meeting
On appointment, via email
Uff. A/5/C13, Ed. LITA, V floor, Dipartimento di Fisica "Aldo Pontremoli"
Appointment by email
Office or online (by videocall)
by appointment
Via Celoria, 18 - Room: 4011