Exercises Topic 1
Exercises Topic 1
Exercises Topic 1
Exercise 1 (2.14)
A café recently conducted a survey on its coffee selling by
customers’ age. The owner recorded the first 30 customers who
visited his café and had chosen coffee as their drink. The customers’
respective ages were recorded in a sample data set as follows:
• Verify: 25 = 32 > 30
Find the class width W:
max −𝑚𝑖𝑛 52−13
• 𝑊= = = 7.8 ≈ 𝟖 (round up)
𝑘 5
Exercise 1 - Solution
a. Sort the customer’s age:
Age Frequency
13 – < 21 5
21 – < 29 8
29 – < 37 5
37 – < 45 6
45 – < 53 6
Exercise 1 - Solution Age Frequency
13 – < 21 5
b. Histogram: 21 – < 29 8
29 – < 37 5
37 – < 45 6
45 – < 53 6
Exercise 1 - Solution
c. Relative and cumulative frequencies
15 14 16 14 14 14 13 8 12 9 7 17 10 15 16 16
7 8 9 10 12 13 14 14 14 14 15 15 16 16 16 17
position 𝑖:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
7 8 9 10 12 13 14 14 14 14 15 15 16 16 16 17
position 𝑖:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
b. Outliers?
• Lower limit: 𝑄1 − 1.5 𝐼𝑄𝑅 = 11 − 1.5 × 4.5 = 𝟒. 𝟐𝟓
• Upper limit: 𝑄3 + 1.5 𝐼𝑄𝑅 = 15.5 + 1.5 × 4.5 = 𝟐𝟐. 𝟐𝟓
• ⇒ No outliers, because no values in the data is less than the
lower limit (4.25) or greater than the upper limit (22.25)
• ⇒ In the context of the problem: there are no outliers since
the time spent by each customer in store is greater than 4.25
minutes and smaller than 22.25 minutes.
Exercise 2 - Solution
c. Boxplot
7 8 9 10 12 13 14 14 14 14 15 15 16 16 16 17
𝒎𝒂𝒙 = 𝟏𝟕
𝑸𝟑 = 𝟏𝟓. 𝟓
𝑸𝟐 = 𝟏𝟒
𝑸𝟏 = 𝟏𝟏
𝒎𝒊𝒏 = 𝟕