You are on page 1of 7

Appendix B

Answers to Exercises

Chapter 3
1a. Discrete
1b. Continuous
1c. Dichotomous
1d. Discrete
1e. Continuous
1f. Continuous
1g. Continuous
1h. Continuous
1i. Continuous
1j. Binary
2a. Nominal
2b. Ratio
2c. Nominal
2d. Nominal
2e. Ratio
2f. Ratio
2g. Ratio
2h. Ratio
2i. Ratio
2j. Nominal
3a. Name
3b. Age, Weight, Systolic blood pressure, Diastolic blood pressure
3c. Diabetes
4. See Table B.1

Making Sense of Data: A Practical Guide to Exploratory Data Analysis and Data Mining,
By Glenn J. Myatt
Copyright # 2007 John Wiley & Sons, Inc.

258
Appendix B Answers to exercises 259

5. See Table B.2


6. See Table B.3
7. See Table B.4 and Table B.5
Table B.1. Chapter 3, question 4 answer

Weight (kg)
Name Weight (kg) normalized to 0–1
P. Lee 50 0.095
R. Jones 115 0.779
J. Smith 96 0.579
A. Patel 41 0
M. Owen 79 0.4
S. Green 109 0.716
N. Cook 73 0.337
W. Hands 104 0.663
P. Rice 64 0.242
F. Marsh 136 1

Table B.2. Chapter 3, question 5 answer

Weight (kg) categorized


Name Weight (kg) [low, medium, high]
P. Lee 50 low
R. Jones 115 high
J. Smith 96 medium
A. Patel 41 low
M. Owen 79 medium
S. Green 109 high
N. Cook 73 medium
W. Hands 104 high
P. Rice 64 medium
F. Marsh 136 high

Table B.3. Chapter 3, question 6 answer

Name Weight (kg) Height (m) BMI

P. Lee 50 1.52 21.6


R. Jones 115 1.77 36.7
J. Smith 96 1.83 28.7
A. Patel 41 1.55 17.1
M. Owen 79 1.82 23.8
S. Green 109 1.89 30.5
N. Cook 73 1.76 23.6
W. Hands 104 1.71 35.6
P. Rice 64 1.74 21.1
F. Marsh 136 1.78 42.9
260 Appendix B Answers to exercises

Table B.4. Chapter 3, question 7 answer (female patients)

Systolic Diastolic
Blood Weight Height blood blood Tempe-
Name Age Gender group (kg) (m) pressure pressure rature ( F) Diabetes

P. Lee 35 Female A Rhþ 50 1.52 68 112 98.7 0


A. Patel 70 Female O Rh 41 1.55 76 125 98.6 0
W. Hands 77 Female O Rh 104 1.71 107 145 98.3 1
P. Rice 45 Female O Rhþ 64 1.74 101 132 98.6 0

Table B.5. Chapter 3, question 7 answer (male patients)

Systolic Diastolic
Blood Weight Height blood blood Temperature
Name Age Gender group (kg) (m) pressure pressure ( F) Diabetes
R. Jones 52 Male O Rh 115 1.77 110 154 98.5 1
J. Smith 45 Male O Rhþ 96 1.83 88 136 98.8 0
M. Owen 24 Male A Rh 79 1.82 65 105 98.7 0
S. Green 43 Male O Rh 109 1.89 114 159 98.9 1
N. Cook 68 Male A Rhþ 73 1.76 108 136 99.0 0
F. Marsh 28 Male O Rhþ 136 1.78 121 165 98.7 1

Chapter 4
1. See Table B.6
2a. See Table B.7
2b. See Table B.8
2c. See Table B.9
3. See Figure B.1
4. See Figure B.2

Table B.6. Chapter 4, question 1 answer

Store

New York, NY Washington, DC Totals


Laptop 1 2 3
Product Printer 2 2 4
category Scanner 4 2 6
Desktop 3 2 5
Totals 10 8 18
Appendix B Answers to exercises 261

Table B.7. Chapter 4, question 2a answer

Number of Sum of sales


Customer observations price ($)
B. March 3 1700
J. Bain 1 500
T. Goss 2 750
L. Nye 2 900
S. Cann 1 600
E. Sims 1 700
P. Judd 2 900
G. Hinton 4 2150
H. Fu 1 450
H. Taylor 1 400

Table B.8. Chapter 4, question 2b answer

Store Number of Mean sale


observations price ($)
New York, NY 10 485
Washington, DC 8 525

Table B.9. Chapter 4, question 2c answer

Number of Sum of
Product category observations profit ($)
Laptop 3 470
Printer 4 360
Scanner 6 640
Desktop 5 295

Figure B.1. Frequency distribution


262 Appendix B Answers to exercises

190

145
Profit ($)

100

55

10
100 325 550 775 1000
Sale price ($)

Figure B.2. Scatterplot

Chapter 5
1a. 45
1b. 45
1c. 48.7
1d. 53
1e. 324.9
1f. 18.02
1g. See Table B.10
1h. 0.22
1i. –1.5
2. 24.14 – 25.86
3. 0.386 – 0.534

Table B.10. Chapter 5, question 1g answer

Name Age z-score Age

P. Lee 35 –0.76
R. Jones 52 0.18
J. Smith 45 –0.21
A. Patel 70 1.18
M. Owen 24 –1.37
S. Green 43 –0.32
N. Cook 68 1.07
W. Hands 77 1.57
P. Rice 45 –0.21
F. Marsh 28 –1.15
Appendix B Answers to exercises 263

4a. Ho: m ¼ 2
4b. Ha: m < 2 where m is the average call connection time.
4c. –2.72
4d. 0.0033
4e. The phone company can make the claim.
5a. Ho: p ¼ 0:9, Ha: p > 0:9 where p is the proportion of customers pleased
with the service of the bank.
5b. 0.33
5c. 0.3707
5d. The bank cannot make the claim.
6a. HO: m1 ¼ m2 , Ha: m1 > m2 where m1 is the average tomato plant height
grown with fertilizer X and m2 is the average tomato plant height grown
with fertilizer Y.
6b. 2.82
6c. 0.0024
6d. The company can make the claim.
7a. H0: p1 ¼ p2 , Ha: p1 < p2 where p1 is the proportion of defects, using
manufacturer A, and p2 is the proportion of defects, using manufacturer B.
7b. 0.54
7c. 0.2946
7d. The company cannot make the claim.
8a. HO:mD ¼ 0, Ha:mD 6¼ 0 where mD is the difference between the wear of the
gloves.
8b. 15.36
8c. Practically zero.
8d. Yes.
9a. H0: There is no relationship, Ha: There is a relationship.
9b. 2.18
9c. Cannot make the claim.
10a. H0: There is no difference, Ha: There is a difference.
10b. 1.48
10c. Cannot make the claim.
11. 0.98

Chapter 6
1a. 4.8
1b. 2.8
1c. 0
264 Appendix B Answers to exercises

Table B.11. Chapter 7, question 2b answer

Observation Actual Predicted Residual


1 13.7 12.4 1.3
2 17.5 16.1 1.4
3 8.4 6.7 1.7
4 16.2 15.7 0.5
5 5.6 8.4 –2.8
6 20.4 15.6 4.8
7 12.7 13.5 –0.8
8 5.9 6.4 –0.5
9 18.5 15.4 3.1
10 17.2 14.5 2.7
11 5.9 5.1 0.8
12 9.4 10.2 –0.8
13 14.8 12.5 2.3
14 5.8 5.4 0.4
15 12.5 13.6 –1.1
16 10.4 11.8 –1.4
17 8.9 7.2 1.7
18 12.5 11.2 1.3
19 18.5 17.4 1.1
20 11.7 12.5 –0.8

2. 2.24
3. Support ¼ 0.47, Confidence ¼ 1, Lift ¼ 1.89
4a. 0.73
4b. 1.0
Chapter 7
1a. 0.85
1b. 0.15
1c. 0.89
1d. 0.82
2a. 0.87
2b. See Table B.11
3a. Height ¼ 0.071 þ 0.074 Fertilizer
3b. 0.98
4. $352,600
5. Brand B
6. 0.56

You might also like