Chapter 3
Chapter 3
Descriptive Analytics
Solutions
1. a. Quantitative
b. Categorical
c. Categorical
d. Quantitative
e. Categorical
Previous Current
Year On- Year On-
time time
Carrier Percentage Percentage
Blue Box Shipping 88.4% 94.8%
Cheetah LLC 89.3% 91.8%
Smith Logistics 84.3% 88.7%
Granite State
Carriers 81.8% 87.6%
Super Freight 92.1% 86.8%
Minuteman
Company 91.0% 84.2%
Jones Brothers 68.9% 82.8%
Honsin Limited 74.2% 80.1%
Rapid Response 78.8% 70.9%
Blue Box Shipping is providing the best on-time service in the current year.
Rapid Response is providing the worst on-time service in the current year.
b. The output from Excel with conditional formatting appears below.
A 0.22 44 22
B 0.18 36 18
C 0.40 80 40
D 0.20 40 20
20
Total 1.0 0 100
5. a. These data are categorical.
b.
%
We Freq Freq
bsi uenc uenc
te y y
FB 7 14
GO
OG 14 28
WI
KI 9 18
YA
H 13 26
YT 7 14
Tot
al 50 100
c. The most frequent most-visited-website is [Link] (GOOG);
second is [Link] (YAH).
4
3
2
1
0
11-12 13-14 15-16 17-18 19-20 21-22 23-24
Hours per Week in Meetings
Livin Ideal
g Live Commu
Area Now nity
32/100 24/100
City =32% =24%
Subu 26/100 25/100
rb =26% =25%
Smal
l
Tow 26/100 30/100 Histograms:
Wherendo you live now?
=26% =30%
Rura
l 16/100 21/100
Area =16% =21%
Total 100% 100%
35%
30%
25%
20%
Percent
15%
10%
5%
0%
City Suburb Small Town Rural Area
Living Area
30%
25%
20%
Percent
15%
10%
5%
0%
City Suburb Small Town Rural Area
Ideal Community
c. Changes in percentages by living area: City –8%, Suburb –1%, Small Town
+4%, and Rural Area +5%.
Suburb living is steady, but the trend would be that living in the city would
decline while
living in small towns and rural areas would increase.
9. a.
Frequenc
Class y
12-14 2
15-17 8
18-20 11
21-23 10
24-26 9
Total: 40
b.
Relative Percent
Class Frequency Frequency
12-14 0.050 5.0%
15-17 0.200 20.0%
18-20 0.275 27.5%
21-23 0.250 25.0%
24-26 0.225 22.5%
Total: 1.000 100.0%
10.
Frequenc Cumulative
Class y Frequency
10-19 10 10
20-29 14 24
30-39 17 41
40-49 7 48
50-59 2 50
11. a – d
Cumul
ative
Relati Cumul Relati
Cl ve ative ve
as Frequ Frequ Frequ Frequ
s ency ency ency ency
0-
4 4 0.20 4 0.20
5-
9 8 0.40 12 0.60
10
-
14 5 0.25 17 0.85
15
-
19 2 0.10 19 0.95
20
-
24 1 0.05 20 1.00
T
ot
al: 20 1.00
12. a.
Class Frequency
800-1000 1
1000-1200 3
1200-1400 6
1400-1600 10
1600-1800 7
1800-2000 2
2000-2200 1
2200-2400 0
12
10
10+20+12+17+16
13. a. Mean = =15 or use the Excel function AVERAGE.
5
To calculate the median, we arrange the data in ascending order:
10 12 16 17 20
Because we have n = 5 values which is an odd number, the median is the middle
value which is 16 or use the Excel function MEDIAN.
b. Because the additional data point, 12, is lower than the mean and median
computed in part a, we expect the mean and median to decrease. Calculating the
new mean and median gives us mean = 14.5 and median = 14.
14. Without Excel, to calculate the 20th percentile, we first arrange the data in ascending
order:
15 20 25 25 27 28 30 34
p
The location of the pth percentile is given by the formula L p= (n+1)
100
20
For our date set, L20= ( 8+1 )=1.8. Thus, the 20th percentile is 80% of the
100
way between the value in position 1 and the value in position 2. In other words,
the 20th percentile is the value in position 1 (15) plus 0.80 time the difference
between the value in position 2 (20) and position 1 (15). Therefore, the 20th
percentile is
15 + 0.80*(20-15) = 19.
We can repeat the steps above to calculate the 25th, 65th and 75th percentiles. Or
using Excel, we can use the function [Link] to get:
25th percentile = 21.25
65th percentile = 27.85
75th percentile = 29.5
16. To find the mean annual growth rate, we must use the geometric mean. First we note
that
, so =0.700
3500=5000
where x1, x2, … are the growth factors for years, 1, 2, etc. through year 9.
Next, we calculate x g =√ ( x 1 ) ( x 2 ) ⋯ ( x n)= √ 0.70=0.961144 .
n 9
17.
For the Stivers mutual fund,
18000=10000 , so =1.8
where x1, x2, … are the growth factors for years, 1, 2, etc. through year 8.
Next, we calculate
So the mean annual return for the Stivers mutual fund is (1.07624 – 1)100 =
7.624%.
So the mean annual return for the Trippi mutual fund is (1.09848 – 1)100 =
9.848%.
While the Stivers mutual fund has generated a nice annual return of 7.6%, the
annual return of 9.8% earned by the Trippi mutual fund is far superior.
Alternatively, we can use Excel and the function GEOMEAN as shown below:
n
18. a. Mean =
∑ xi 1291.5
i=1
= =26.906
n 48
b. To calculate the median, we first sort all 48 commute times in ascending order.
Because there are an even number of values (48), the median is between the
24th and 25th largest values. The 24th largest value is 25.8 and the 25th largest
value is 26.1.
(25.8 + 26.1)/2 = 25.95
Or we can use the Excel function MEDIAN.
c. The values 23.4 and 24.8 both appear three times in the data set, so these two
values are the modes of the commute times. To find this using Excel, we must
use the [Link] function.
d. Standard deviation = 4.6152. In Excel, we can find this value using the function
STDEV.S.
Variance = 4.61522 = 21.2998. In Excel, we can find this value using the
function VAR.S.
e. The third quartile is the 75th percentile of the data. To find the 75th percentile
without Excel,
we first arrange the data in ascending order. Next we calculate
p 75
L p= ( n+ 1 )=L75= ( 48+ 1 ) = 36.75.
100 100
In other words, this value is 75% of the way between the 36th and 37th positions.
However, in our date the values in both the 36th and 37th positions are 28.5.
Therefore, the 75th percentile is 28.5. Or using Excel, we can use the function
[Link].
19. a. The mean waiting time for patients with the wait-tracking system is 17.2
minutes and the median waiting time is 13.5 minutes. The mean waiting time for
patients without the wait-tracking system is 29.1 minutes and the median is 23.5
minutes.
b. The standard deviation of waiting time for patients with the wait-tracking
system is 9.28 and the variance is 86.18. The standard deviation of waiting time
for patients without the wait-tracking system is 16.60 and the variance is 275.66.
c.
d.
e. Wait times for patients with the wait-tracking system are substantially shorter
than those for patients without the wait-tracking system. However, some
patients with the wait-tracking system still experience long waits.
20. a. The median number of hours worked for science teachers is 54.
b. The median number of hours worked for English teachers is 47.
c.
d.
e. The box plots show that science teachers spend more hours working per week
than English teachers. The box plot for science teachers also shows that most
science teachers work about the same number of hours; in other words, there is
less variability in the number of hours worked for science teachers.
21. a. Recall that the mean patient wait time without wait-time tracking is 29.1 and the
standard deviation of wait times is 16.6. Then the z-score is calculated as,
37−29.1
z= =0.48.
16.6
b. Recall that the mean patient wait time with wait-time tracking is 17.2 and the
standard deviation of wait times is 9.28. Then the z-score is calculated as,
37−17.2
z= =2.13.
9.28
As indicated by the positive z–scores, both patients had wait times that exceeded
the means of their respective samples. Even though the patients had the same
wait time, the z–score for the sixth patient in the sample who visited an office
with a wait tracking system is much larger because that patient is part of a
sample with a smaller mean and a smaller standard deviation.
c. To calculate the z-score for each patient waiting time, we can use the formula
x i−x
z= or we can use the Excel function STANDARDIZE. The z–scores
s
for all patients follow.
Without Wait-Tracking With Wait-Tracking
System System
24 -0.31 31 1.49
67 2.28 11 -0.67
17 -0.73 14 -0.34
20 -0.55 18 0.09
31 0.11 12 -0.56
44 0.90 37 2.13
12 -1.03 9 -0.88
23 -0.37 13 -0.45
16 -0.79 12 -0.56
37 0.48 15 -0.24
No z-score is less than -3.0 or above +3.0; therefore, the z–scores do not indicate
the existence of any outliers in either sample.
22. a. According to the empirical rule, approximately 95% of data values will be
within two standard deviations of the mean. 4.5 is two standard deviation less than
the mean and 9.3 is two standard deviations greater than the mean. Therefore,
approximately 95% of individuals sleep between 4.5 and 9.3 hours per night.
8−6.9
b. z= =0.9167
1.2
6−6.9
c. z= =−0.75
1.2
23. a. 615 is one standard deviation above the mean. The empirical rule states that
68% of data values will be within one standard deviation of the mean. Because a
bell-shaped distribution is symmetric half of the remaining values will be greater
than the (mean + 1 standard deviation) and half will be below (mean – 1 standard
deviation). In other words, we expect that 0.5*(1 - 68%) = 16% of the data values
will be greater than (mean + 1 standard deviation) = 615.
b. 715 is two standard deviations above the mean. The empirical rule states that
95% of data values will be within two standard deviations of the mean, and we
expect that 0.5*(1 - 95%) = 2.5% of data values will be above two standard
deviations above the mean.
c. 415 is one standard deviation below the mean. The empirical rule states that
68% of data values will be within one standard deviation of the mean, and we
expect that 0.5*(1 - 68%) = 16% of data values will be below one standard
deviation below the mean. 515 is the mean, so we expect that 50% of the data
values will be below the mean. Therefore, we expect 50% - 16% = 36% of the
data values will be between the mean and one standard deviation below the
mean (between 414 and 515).
620−515
d. z= =1.05
100
405−515
e. z= =−1.10
100
24. a.
70
60
50
40
y
30
20
10
0
0 5 10 15 20
x
xi yi (x i−x ) ( y i− y)
4 50 -4 4 -16
6 50 -2 4 -8
11 40 3 -6 -18
3 60 -5 14 -70
16 30 8 -16 -128
x= 8
y= 46
∑(x i−x )( y i− y ) −16−8−18−70−128
s xy = = =−60
n−1 4
Or, using Excel, we can use the COVARIANCE.S function.
25. a. The scatter chart indicates that there may be a positive linear relationship
between profits and market capitalization.
b. Without Excel, we can use the calculations below to find the covariance and
correlation coefficient:
313.2 1891.9 -2468.57 -35259.75 6093826.70 1243249856.32 87041077.46
157130.
8,572.00
5 5790.23 119978.85 33526789.60 14394924834.35 694705416.89
182109.
11,797.00
9 9015.23 144958.25 81274412.67 21012894710.67 1306832306.01
√ √
2
∑ ( x i−x ) 368589209.4
sx= =¿ =3505.18 ¿
n−1 30
√ √
2
∑ ( y− y ) 62647162947
sy= = =45697.25
n−1 30
s xy 131804978.6
r xy = = =0.8229
s x s y (3505.18)(45697.25)
Or using Excel, we use the formula = COVARIANCE.S(B2:B32,C2:C32) to
calculate the covariance, which is 131804978.638. This indicates that there is a
positive relationship between profits and market capitalization.
c. In the Excel file, we use the formula =CORREL(B2:B32,C2:C32) to calculate
the correlation coefficient, which is 0.8229. This indicates that there is a strong
linear relationship between profits and market capitalization.
26. a. Without Excel, we can use the calculations below to find the correlation
coefficient:
7. 0.28
0.6893 0.0813 0.4751 0.1966
1 7.02 52
-
-
5. 1.614 2.6076 1.0419 1.6483
1.0207
2 5.31 8
7. 0.98 -
0.9706 0.9039 -0.9367
8 5.38 52 0.9507
7. 0.98 -
0.9706 0.8663 -0.9170
8 5.40 52 0.9307
-
-
5. 1.014 1.0298 1.7709 1.3505
1.3307
8 5.00 8
-
-
5. 1.014 1.0298 5.1109 2.2942
2.2607
8 4.07 8
9. 2.485
0.1993 6.1761 0.0397 0.4952
3 6.53 2
5. - -
1.2428 0.5787 0.8481
7 5.57 1.1148 0.7607
7. 0.48
0.6593 0.2354 0.4346 0.3199
3 6.99 52
7. 0.78
4.7893 0.6165 22.9370 3.7605
6 11.12 52
8. 1.38
1.2293 1.9187 1.5111 1.7028
2 7.56 52
7. 0.28
5.7793 0.0813 33.3998 1.6482
1 12.11 52
-
-
6. 0.514 0.2650 3.7665 0.9991
1.9407
3 4.39 8
-
-
6. 0.214 0.0461 2.4048 0.3331
1.5507
6 4.78 8
-
-
6. 0.614 0.3780 0.3033 0.3386
0.5507
2 5.78 8
-
-
6. 0.514 0.2650 0.0629 0.1291
0.2507
3 6.08 8
7. 10.0 0.18
3.7193 0.0343 13.8329 0.6888
0 5 52
√ √
2
∑(x i−x )( y i− y ) 25.5517 ∑ ( x i−x ) 25.77407
s xy = = =0.9828 s x = =¿ =0.9956 ¿
n−1 26 n−1 26
√ √
2
∑ ( y− y ) 130.0594
sy= = =2.2366
n−1 26
s xy 0.9828
r xy = = =0.44
s x s y (0.9956)(2.2366)
Or we can use the Excel function CORREL.
The correlation coefficient indicates that there is a moderate positive linear relationship
between jobless rate and delinquent loans. If the jobless rate were to increase, it is likely that
an increase in the percentage of delinquent housing loans would also occur.
b.
14
12
0
4 5 6 7 8 9 10
Jobless Rate (%)
27. a. Using the Excel function COUNTBLANK we find that there is one blank
response in column C (Texture) and one blank response in column F (Depth of
Chocolate Flavor of the Cup). With further investigation we find that the value
of texture for respondent 157 is missing, and the value of Depth of the
Chocolate Flavor of the Cup for respondent 199 is missing.
b. To help us identify erroneous values, we calculate the Average, Standard
Deviation, Minimum and Maximum values for each variable.
# Missing Values: 0 1 0 0 1
Average: 72.29 105.94 77.11 78.51 77.36
Standard Deviation: 20.21 447.89 19.14 66.15 17.69
Minimum: 8.40 13.00 19.00 0.67 11.00
Maximum: 100.00 6666.00 120.00 997.00 100.00
28. a. Using the Excel function COUNTBLANK we find that one observation is
missing in column B and one observation missing in column C. Additional
investigation shows that the missing value in column B is for year 2016 for the
Phillies and the missing value in column C is for year 2016 for the Marlins.
Review of major league baseball attendance data that are available from a
reliable source show that the Phillies’ attendance in 2016 was 1,915,144, which
is consistent with the value of the Phillies’ attendance for the observation with
the missing value of season. This supports our suspicion that the value of season
for this observation is 2016. Review of major league baseball attendance data
that are available from a reliable source show that the Marlins’ 2016 attendance
was 1,712,417. (Note that we use the reference [Link], at
[Link] as of May 14, 2017, as our reliable data
source for comparison.)
We immediately identify that there is an erroneous value for Season as all values
should be between 2014 and 2016, but the minimum value is 214. We also
identify that the minimum and maximum values for Attendance appear
questionable. Review of major league baseball attendance data that are available
from a reliable source shows that the Cubs’ attendance in 2014 was 2,652,113,
which is consistent with the value of the Cubs’ attendance for the observation
with the missing value of season. This supports our suspicion that the value of
season for this observation is 2014.
The value for attendance for the Giants in 2016 is -3,365,256, which is
unrealistic. Review of major league baseball attendance data that are available
from a reliable source shows that the Giants’ 2016 attendance was 3,365,256.
The value for attendance for the Cubs in 2013 is 26,426,820, which is unusually
large. Review of major league baseball attendance data that are available from a
reliable source shows that the Cubs’ 2013 attendance was 2,642,682.
We can also sort the data in Excel by Team Name to help us identify attendance
values that seem outside the norm for that team. Additional analysis of
individual attendance values shows the following.
The value for attendance for the Royals in 2011 is 172,445, which is unusually
small. Review of major league baseball attendance data that are available from a
reliable source shows that the Royals’ 2011 attendance was 1,724,450.
The value for attendance for the Marlins in 2014 is 9,732,283, which is
unusually large compared to other season attendance values for the Marlins.
Review of major league baseball attendance data that are available from a
reliable source shows that the Marlins’ 2014 attendance was 1,732,283.
The value for attendance for the Marlins in 2015 is 752,235, which is unusually
small compared to other season attendance values for the Marlins. Review of
major league baseball attendance data that are available from a reliable source
shows that the Marlins’ 2015 attendance was 1,752,235.
The value for attendance for the Orioles in 2014 is 22,464,473, which is
unusually large. Review of major league baseball attendance data that are
available from a reliable source shows that the Orioles’ 2014 attendance was
2,464,473.
Case Solutions