hw1 Solutions STAT430
hw1 Solutions STAT430
Spring 2022
Homework 1
Due Friday, Jan 21th 11:59pm
The following section and problem numbers refer to the book page images posted
on Canvas, which may differ from the book version you have. Be sure you are
working on the right problems. Answering the wrong homework problem lead
to you receiving zero points for that problem.
You will upload your homework assignment to Gradescope. PDFs generated via
scan or via export from, e.g., LaTeX are preferred, although JPG files will also
be accepted. Late submissions are not allowed.
A ={(1, 2), (2, 2), (3, 2), (4, 2), (5, 2), (6, 2),
(1, 4), (2, 4), (3, 4), (4, 4), (5, 4), (6, 4),
(1, 6), (2, 6), (3, 6), (4, 6), (5, 6), (6, 6)}
Solution. We have
P (A) = P (A ∩ S)
n
[
= P (A ∩ ( Si ))
i=1
n
[
= P( (A ∩ Si )) (by distributive laws).
i=1
S = {2, 4, 12, 32, 14, 34, 112, 132, 312, 332, 114, 134, 314, 334, . . .}.
5. (10 points) A factory operates three different shifts. Over the last year, 200 accidents
have occurred at the factory. Some of these can be attributed to unsafe working
conditions, whereas the others are unrelated to working conditions. The table gives
the percentage of accidents falling in each type of accident-shift category.
Unsafe Unrelated to
Shift Conditions Conditions
Day 10% 35%
Swing 8% 20%
Night 5% 22%
Suppose one of the 200 accident reports is randomly selected and the shift and type of
accident are determined.
D = {occurred on the day shift}, S = {on the swing shift}, N = {on the night shift},
and
C = {attributed to unsafe working conditions}.
Simple events are events that does not consist of smaller events. In this problem,
there are six simple events:
D ∩ C, D ∩ C, S ∩ C, S ∩ C, N ∩ C, N ∩ C.
(b) What is the probability that the selected accident was attributed to unsafe con-
ditions?
Solution. Let’s denote those simple events as follows
Unsafe Unrelated to
Shift Conditions Conditions
Day E1 E2
Swing E3 E4
Night E5 E6
The desired event is
(c) What is the probability that the selected accident did not occur on the day shift?
Solution. Note that
P ({did not occur on the day shift} =100% − P ({occurred on the day shift})
=100% − (P (E1 ) + P (E2 )) = 55%
(b) Assume both coins are fair coins and the two tosses do not effect each other.
Under those two assumptions, we have
i.e., every sample point has the same probability. Because the experiment results
only in the listed sample points, we use Axiom 2 and 3 of probabilities to get
This derives
1
P ({(H, H)}) = P ({(H, T )}) = P ({(T, T )}) = P ({(T, H)}) = .
4
(c) We have
7. (10 points) We are given three fair coins: one has heads in both faces, the second has
tails in both faces, and the third has a head in one face and a tail in the other. We
choose a coin at random, toss it, and the result is heads. What is the probability that
the opposite face is tails?
Solution 1. Probabilities of simple events are listed below
Coin
Result Both face head Head and tail Both face tail
Head 1/3 1/6 0
Tail 0 1/6 1/3
Thus, we have
1
6 1
P ({The opposite face is tails} | {The result is heads}) = 1 1 =
3
+ 6
3
P (the oppsite is tail | randomly choose a coin, toss it, and see head)
P (randomly choose a coin, toss it, and see head, and the opposite is tail)
=
P (randomly choose a coin, toss it, and see head)
We first calculate the numerator:
P (randomly choose a coin, toss it, and see head, and the opposite is tail)
= P (the HH coin is chosen)P (see head and the opposite is tail | the HH coin is chosen)
+ P (the TT coin is chosen)P (see head and the opposite is tail | the TT coin is chosen)
+ P (the HT coin is chosen)P (see head and the opposite is tail | the HT coin is chosen)
1 1 1 1
= ×0+ ×0+ ×
3 3 3 2
1
= .
6
The denominator can be calculated similarly:
8. (10 points) The population of a particular country consists of three ethnic groups.
Each individual belongs to one of the four major blood groups. The table gives the
proportions of individuals in the various ethnic group-blood group combinations.
Blood Group
Ethnic Group O A B AB
1 .082 .106 .008 .004
2 .135 .141 .018 .006
3 .215 .200 .065 .020
Suppose that an individual is randomly selected from the population, and define events
by A = {type A selected}, B = {type B selected}, and C = {ethnic group 3 selected}.
P (A ∩ C)
P (A|C) = = 0.200/0.500 = 0.400
P (C)
P (A ∩ C)
P (C|A) = = 0.200/0.447 ≈ 0.447
P (A)
In the context of this problem, P (A|C) is the probability that the selected indi-
vidual has blood type A when this person is from ethnic group 3. On the other
hand, P (C|A) is the probability that this individual is from ethnic group 3 when
the blood type is A.
(c) If the selected individual does not have type B blood, what is the probability that
he or she is from ethnic group 1?
Solution. Let D denote the event that the selected individual is from ethnic
group 1. We presume the selected individual not having blood type B, so the
probability we are looking for is conditional probability P (D|B̄). According to
Axiom 3 of probabilities,
Hence,
P (A|D) = 0.5.
(a) We want the probability of dissatisfaction given plumber A did the plumbing job,
P (D|A). Using the definition of conditional probabilities, we get
(b) Now we want P (D̄|A). There are two different ways to get this probability: the
long way and the short way.
The long way is to note that P (A) = P (A ∩ D) + P (A ∩ D̄) by Axiom 3 of
probability and use:
P (D̄ ∩ A) P (A) − P (D ∩ A)
P (D̄|A) = = .
P (A) P (A)
In part (a), we got P (D∩A) = P (A|D)P (D) = 0.05. Hence, plugging in numbers,
we get
0.4 − 0.05 0.35 7
P (D̄|A) = = = = 0.875.
0.4 0.4 8
The short way is to extend Axiom 3 to conditional probabilities:
Be sure:
• Show all the work for full credit. Only writing the final answer will not receive credit.
• To provide a clean, easily readable scan of your assignment, either through the use of
a scanner or your phone.
• To make this work your own even if you work with others! Do not blindly copy the
solutions; this is plagiarism, and furthermore it will only hurt you at exam time.
• To properly label all plots (axes, main title, units, etc.) for full credit, if applicable,
and to include a printout of any code used in solutions, if applicable.