I've had all three answers below marked wrong, and I am not sure how to proceed. I have included my thinking.
Suppose we are interested in the buying habits of shoppers at a particular grocery store with regards to whether they purchase apples, milk, and/or bread. Now suppose $30\%$ of all shoppers at this particular grocery store buy apples, $45\%$ buy milk, and $40\%$ buy a loaf of bread.
Let $A$ be the event that a randomly selected shopper buys apples, $B$ be the event that the same randomly selected shopper buys milk, and $C$ the event that the shopper buys bread. Suppose we also know (from data collected) the following information:
- The probability that the shopper buys apples and milk is $0.20$.
- The probability that the shopper buys milk and bread is $0.25$.
- The probability that the shopper buys apples and bread is $0.12$.
- The probability that the shopper buys all three items is $0.07$.
a) Find the probability that the shopper purchases at least one of the three items.
My attempt :
$P(A \cup B \cup C) =
P(A)+P(B)+P(C)-P(A \cap B)-P(B \cap C)-P(A \cap C)+P(A \cap B \cap C)=.30+.45+.40-.2-.25-.12 + .17 =0.75$
b) Find the probability that the shopper purchases none of the three items.
My attempt :
$P(A' \cup B' \cup C')=(1-.3) \times (1-.45) \times (1-.4)=.7 \times .45 \times .4 = .231$
c) Find the probability that the shopper buys milk and bread but not apples.
My attempt :
$P(A' \cap B \cap C)=(1-.3) \times .45 \times .4 =0.126$
EDIT
I have also tried doing this with naive probability and the answers are still not accepted.
a)
s=c(111, 110, 101, 011, 100, 001, 010, 000)
s_count=8
at_least_1= c(111, 110, 101, 011, 100, 001, 010)
at_least_1_ct=7
7/8=0.875
b)
none=c(111, 110, 101, 011, 100, 001, 010, 000)
1/8=0.125
c)
milk_and_bread=c(111, 110, 101, 011, 100, 001, 010, 000)
2/8=0.25

