Professional Documents
Culture Documents
Sheet 02 El
Sheet 02 El
20 April 2018
Exercise H.2
Sample exercise:
In June 2016, 18 TUM students were surveyed about their study course, their number of siblings,
and their income. The (fictitious) results are presented below.
Surveyresult
a) Of which (scale) type is the variable ”study course” (nominal, ordinal or metric)? (Choose
one of the three options and provide it exactly as it is given. Do not use any abbreviations or
symbols.)
t) What percentage of students have at least two siblings? (Provide only the numerical result.
Do not use a % sign.)
u) What percentage of students have one or two siblings? (Provide only the numerical result. Do
not use a % sign.)
Solution:
From the table we get the following sequence of order statistics of the variable ”income”
sort(Surveyresult$Income)
## [1] 365 440 505 640 700 760 770 800 820 860 900 920 965 1015
## [15] 1020 1025 1050 1055
s) We are looking for the number of students with at most two siblings, thus
n1 + n2 + n3 = 4 + 6 + 3 = 13 .
t) We are looking for the percentage of students having two or three siblings. First, we derive
the relative frequency of this event, which is given by
f 3 + f 4 = 0.44444 .
Second, we convert the relative frequency to a percentage and get the result
44.444 .
u) We are looking for the percentage of students having one or two siblings. The relative fre-
quency for this event is given by the sum of f 2 and f 3 . Hence, the result is given by
100 · ( f 2 + f 3 ) = 50 .
v) Let X3 be the variable ”income” and x3,1 , . . . , x3,18 be the observed values. The empirical mean
(average) x3,18 of the variable ”income” is then given by
1 18
18 i∑
x3,18 = x3,i = 811.667 .
=1
x) The range is the difference between the maximum and the minimum. In this case it is given
by
Sp = x(18) − x(1) = 1055 − 365 = 690 .
y) The interquartile range is defined as the difference between the upper and the lower quartile.
Thus, we get
IQR = 1015 − 700 = 315 .