Professional Documents
Culture Documents
Sheet 01
Sheet 01
Sheet 01
13 April 2018
Tutorial Exercises
Exercise T.1
Within the framework of the Munich Rent Report several variables were surveyed. Discuss the
variables net rent (in Euro), living size (in m2 ), building age (in years), central heating (yes/no), hot
water supply (yes/no), good location (yes/no), and upscale bathroom equipment (yes/no) regard-
ing their variable type (i.e. nominal, ordinal, metric). In addition, decide whether the variables are
quantitative or qualitative and whether they are discrete or continuous variables.
Exercise T.2
As head of the data collection department, you should decide between a full survey and a sample
survey to collect the required data. Give reasons for your decisions.
Homework Exercises
Exercise H.1
In order to improve the planning of parking spaces and the use of company-owned busses, a com-
pany is interested in some information about its employees. Specifically, the company is interested
in the distance from their place of residence and the means of transport predominantly used by
their employees to reach the workplace. To this end, the company uses a survey in which the eco-
nomic situation of the employees was assessed. On a reference date, 50 employees were selected
and questioned on the following aspects:
a) Specify the population and the statistical units of analysis (the sample).
b) Which values can the collected variables take and of which type are these variables?
Exercise R.1
Assign the sequences below to different variables in R. Make use of the R-function seq() first. If it
cannot be managed in this way then use the R-function c().
a) 1, 2, 3, 5, 8, 13, 21, 34
b) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
f) 14, 18, 23, 34, 42, 50, 59, 66, 72, 79, 86, 96, 103, 110
Exercise R.2
A student of TUM had the following travel times (in minutes) to university for the last 10 working
days:
17 16 20 24 22 15 21 15 17 22
a) Store the above data as a vector in R. Apply the R-functions max(), mean() and min() to the
data to determine the longest, the average and the shortest travel time.
b) It turned out that the observation with value 24 was wrongly recorded. Instead, the travel
time was 18 minutes on this day. Correct this mistake in the data in R by changing only the
wrong value of the vector you have defined. Now, compute the average travel time again.
c) How often did it take more than 20 minutes for the student to get to university?
d) What is the proportion of travel times, which were less than 18 minutes?