HW - Session 4
HW - Session 4
Homework
S4.1
a. Assume the following probabilities for two events, 𝐴 and 𝐵: 𝑃(𝐴) = 0.45, 𝑃(𝐵) = 0.80,
𝑃(𝐴 ∪ 𝐵) = 0.95 Are the events, 𝐴 and 𝐵, independent?
b. If P(A and B) = 0.4 and P(B) = 0.8, find P(A|B).
c. If P(A) = 0.7, P(B) = 0.6, and A and B are independent, find P(A and B).
d. If P(A) = 0.3, P(B) = 0.4, and P(A and B) = 0.2, are A and B independent?
S4.2
A fair six-sided die is thrown twice.
a. Identify the sample space. What is the total number of elements in the sample space?
b. Explicitly identify the event E = {The sum of the face values of these two tosses is
5}, and calculate P(E).
c. Given that the event E happens, what is the probability that the face value of the first
toss is higher than that of the second toss?
S4.3
The eight single-digit numbers 1, 2, 3, 4, 5, 6, 7, and 8 are produced equally often using
Excel. Consider about the test "the next integer generated" and the events:
Event A: odd number, {1, 3, 5, 7}
Event B: number > 4, {5, 6, 7, 8}
Event C: 1 or 2, {1, 2}
a. Find P(C’)
b. P (A ∩ B)
c. P (A| B)
d. Are events A and B mutually exclusive? Explain.
e. Are events A and B independent? Explain.
S4.4
Apple has three factories in China, Vietnam, and Indonesia to produce MacBook. A certain
model of MacBook is produced by these manufacturers in quantities of 40%, 30%, and 30%,
respectively. 20%, 35% and 45% of the MacBook produced in China, Vietnam and Indonesia are
Pro, respectively.
a. If a MacBook produced by the company is selected at random, find the probability that
it is Pro.
b. Given that a MacBook selected at random is Pro, find the probability that it came from
Vietnam.
S4.5
Suppose a test for the Covid-19 virus is 90% accurate. The test gives a positive result for 90% of
those taking the test who are Covid-19 positive. Also, the test gives a negative result for 90% of
those taking the test who are not Covid-19 positive.
a. According to an estimate in 2020, approximately 5 million people in the Ho Chi Minh city
are Covid-19 positive. The population of this city is approximately 15 million. Suppose a
random Ho Chi Minh city resident takes the test and tests positive, what is the probability
that the person is infected given that they have tested positive? We let P denote the event
that a person chosen at random from the population tests positive, we let I denote the event
that a person chosen at random is infected.
b. Suppose we use a kit test from another manufacturer, it is 85% accurate when a person has
positive Covid-19 and 99% accurate when a person does not have the virus. What is the
probability that a person chosen randomly from the population who test negative for the
Covid-19 actually has the negative Covid-19 virus?
S4.6
A restaurant manager was investigating the satisfaction of customers in a week. A simple random
sample of 800 customers from all four age levels was taken. Each customer was given the
statement “Give your opinion about the quality of this restaurant,” and asked whether they
completely agreed, agreed, had no opinion, disagreed, or completely disagreed. The following
contingency table summarizes the results.
Age Completely Agreed No Opinion Disagreed Completely Totals
Agreed Disagreed
<20 38 30 10 xx xx 177
20- <40 42 xx 0 110 32 262
40 - <60 xx 0 23 74 xx 211
> 60 11 40 xx 16 16 150
Total 183 148 100 200 169 800
a. Complete the contingency table
b. What is the marginal probability of those customers who have no opinion?
c. Compute the probability that a customer agreed with the statement given their age
between 40 and 60.
d. What is the probability that a customer whose age is greater than 20 given they
completely agreed (B)?
e. What is the probability that a customer whose age is greater than 60 given they have no
opinion ?
f. What is the probability that a customer agreed given their age is under 40?