578 Assignment 1 F14 Sol
578 Assignment 1 F14 Sol
578 Assignment 1 F14 Sol
Distance
Class Midpoint
(M
i
)
Frequency (fi)
f
i
*M
i
0-4 2 40 80
4-8 6 30 180
8-12 10 20 200
12-16 14 5 70
16-20 18 5 90
Total NA 100 620
The Sample Mean
= 6.2
Calculate the standard deviation:
0.167
0.367
0.567
0.867
1
0
0.2
0.4
0.6
0.8
1
1.2
Series2
11
Distance
Class
Midpoint
(Mi)
Frequency (fi) Deviation(M
i
-
)
Squared Deviation
(M
i
-
)
2
f
i
*(M
i
-
)
2
0-4 2 40 - 4.2 17.64 705.6
4-8 6 30 - 0.2 0.04 1.2
8-12 10 20 3.8 14.44 288.8
12-16 14 5 7.8 60.84 304.2
16-20 18 5 11.8 139.24 696.2
Total NA 100 NA NA 1996
Sample Variance, s
2
=
= 4.49
5. Use the data in Essay question number 3 above to calculate the sample Mean,
Variance and Standard deviation without grouping the data (that is, as a series of
individual values)
Answer: Mean = 16.033
Variance = 44.102
Standard Deviation = 6.641
Data
22
Column1
21
8
Mean 16.033
17
Standard Error 1.212
25
Median 17.000
20
Mode 21.000
18
Standard Deviation 6.641
19
Sample Variance 44.102
14
Kurtosis -0.955
13
Skewness -0.225
11
Range 24.000
6
Minimum 4.000
21
Maximum 28.000
23
Sum 481.000
4
Count 30.000
19
11
12
16
16
10
12
28
24
6
21
20
25
5
17
9
Mean 16.033
Count 30
Using calculator
X X-
(X-
)
2
22 5.967 35.601
21 4.967 24.668
8 -8.033 64.534
17 0.967 0.934
25 8.967 80.401
20 3.967 15.734
18 1.967 3.868
19 2.967 8.801
14 -2.033 4.134
13 -3.033 9.201
11 -5.033 25.334
6 -10.033 100.668
21 4.967 24.668
23 6.967 48.534
4 -12.033 144.801
19 2.967 8.801
11 -5.033 25.334
12 -4.033 16.268
16 -0.033 0.001
16 -0.033 0.001
10 -6.033 36.401
28 11.967 143.201
24 7.967 63.468
6 -10.033 100.668
21 4.967 24.668
20 3.967 15.734
25 8.967 80.401
5 -11.033 121.734
17 0.967 0.934
13
9 -7.033 49.468
Total 481 0.000 1278.967
Sample Variance 1278.967/29 = 44.102
Sample Std. Dev. 44.102 = 6.641
Chapter 4
6. At a college, 55 percent of the students are women and 40 percent of the students receive a
grade of C. About 35 percent of the students are female but not C students. Use this contingency
table.
C Not C
Female 0.30 0.55
Male
0.40
If a randomly selected student is a C student, what is the probability the student is a male
student?
The completed table is:
C Not C
Female 0.25 0.30 0.55
Male 0.15 0.30 0.45
0.40 0.60 1.000
P(M/C) = P(M and C)/P(C) = 0.15/0.40 = 0.375 or 37.5% chance.
Some of you just answered 0.15, but that is the probability of "male and C", not the probability
of "Male" given C.
7. The contingency table about customers of a store who buy cigars and/or beer is given below.
Beer No Beer
Cigars 0.20
No cigar 0.10 0.40
14
Determine the probability that a customer will buy at least one of these items: cigar or beer.
The completed table is:
Beer No Beer
Cigars 0.30 0.20 0.50
No cigar 0.10 0.40 0.50
0.40 0.60 1.00
Answer: P(C or B) = P(C) + P(B) - P(C and B) = 0.50 + 0.40 - 0.30 = 0.60 or 60% chance.
You can also obtain the same probability by working with the rule of complements. The
opposite of buying Cigar or Beer or both is neither Cigar nor Beer. The probability for
neither Cigar nor Beer according to the contingency table is 0.40. Therefore, by the rule
of complements, the probability asked is 1- 0.40 = 0.60.
8. Four employees who work as drive-through attendees at a local fast food restaurant are being
evaluated. As a part of quality improvement initiative and employee evaluation these workers
were observed over three days. One of the statistics collected is the proportion of time employee
forgets to include a napkin in the bag. Related information is given in the table.
Worker Proportion of Dinners Packed
Proportion of forgetting Napkin when
packing Dinner
Joe 0.20 0.05
Jan 0.30 0.02
Cheryl 0.15 0.14
Clay 0.35 0.04
15
You just purchased a dinner and found that there is no napkin in your bag, what is the probability
that Clay has prepared your order?
Answer: First note that the last column in the above table gives conditional probabilities.
For example 0.06 is the probability of forgetting napkin given that Joe packed the dinner
or P(No napkin/Joe). In the question we are given that No napkin has occurred and asked
to find the probability of Clay in light of this result. So here we are asked a reverse
conditionality than the one given in the contingency table. According to the Instructions for
Chapter 4, this requires Bayesian rule. Therefore,
P(Clay/ No napkin) = 0.014/0.051 = 0.2745 or 27.45%
The numerator is P(Clay and No napkin)=P(Dinner packed by Clay)*P(No napkin given
that Clay packed Dinner) = 0.35*0.04 = 0.014.
The denominator is P(No napkin)= P(Joe and no napkin)+ P(Jan and No napkin)+
P(Cheryl and No napkin)+ P(Clay and no napkin) = 0.010 + 0.006 + 0.021 + 0.014 = 0.051
as shown in the table below (everything converted to decimals instead of percentage,
because working with percentage is messy):
Worker
Proportion of Dinners
Packed by individual
workers
Proportion of forgetting
Napkin given the
worker (conditional
probability)
Joint probability
Col. 2*Col.3
Joe 0.20 0.05 0.010
Jan 0.30 0.02 0.006
Cheryl 0.15 0.14 0.021
Clay 0.35 0.04 0.014
0.051
This formula is also called the Bayesian rule for probability revision based on the results of
an experiment. Here the prior probability of Clay is 35%, but the posterior probability has
been revised downward to 27.45% (called the revised or posterior probability) after
noticing that the dinner had no napkins, because Clay is one of the least forgetful ones. If
the question were for Cheryl the posterior probability would be higher than the prior
probability because she has a very high chance of forgetting napkin (14%).