TD1vf Pres
TD1vf Pres
TD1vf Pres
Tutorial 1
Univariate and Bivariate Descriptive Statistics
Questions. Among these statements, specify which are true and which are
false :
1. A variable is a characteristic being studied.
2. The task of descriptive statistics is to collect data.
3. The task of descriptive statistics is to present data in the form of tables,
graphs, and statistical indicators.
4. The values of variables are also called modalities.
5. For a qualitative variable, each statistical individual can have only one
modality.
Q1 = x(⌈12.5⌉) = x(13)
– Calculation of Me = Q2 : np = 50 × 0.5 = 25, which is an integer,
so :
x(np) + x(np+1) x(25) + x(26) 148 + 149
Me = = = = 148.5
2 2 2
– Calculation of Q3 : np = 50 × 0.75 = 37.5, which is not an integer,
so :
k k
1X X
x̄ = nici = fi c i
n i=1 i=1
First, we calculate the frequencies from the cumulative frequencies
in the previous table :
1600 + y y + 2400
0.08×900+0.1×1200+0.16×1500+0.3× +0.09× +0.27×3200 =
2 2
Solving gives : y = 1800.
(b) The median budget is 1920 euros :
The median budget is 1920 euros. We use linear interpolation on
the interval [1600, y[ :
fi
fic =
×α
ai
Where α is the scale factor, equal to the value of the smallest or most
common class width. Here, we use α = 400.
1
604044 = × 4741200000 − (2034)2
n
=⇒ n = 1000
To calculate the class counts, apply the formula : ni = fi × n.
[0.5, 1.5[ 21 8
[1.5, 2.5[ 23 15
[2.5, 3.5[ 10 23
1) What are the marginal distributions of X and Y ?
2) Calculate the marginal means and variances of X and Y .
3) Calculate the marginal coefficient of variation of Y . Interpret.
4) Are X and Y independent ?
5) Calculate the mean and variance of the variable Z = 0.165X + 0.13Y .
3
!
1 X
V (X) = s2x = ni.c2i − (x)2 = 4.78 − 2.042 = 0.6184,
100 i=1
2
2 1 X
V (Y ) = sy = n.j yj2 − (y)2 = 0.2484.
100 j=1
Additional Exercises
Classi ni fi Fi
[10, 13[ 2 0.09 0.09
[13, 16[ 4 0.18 0.27
[16, 19[ 8 0.36 0.63
[19, 22[ 5 0.23 0.86
[22, 25[ 3 0.14 1
T otal 22 1 1
2) You can plot either the frequency histogram or the relative frequency
histogram :
Exercise 12. A car travels 200 kilometers at 50 km/h, then 100 kilometers
at 100 km/h.
What is its average speed over the entire trip ?
Solution –
The average speed will be the ratio of the total distance traveled to the