Let B denote the event that the customer buys a bread, C denote the event that the customer buys a cupcake, and D denote the event that the customer buys a donut.
Then
P(B)=0.44,P(C)=0.25,P(B∪D)=0.58,P(B∩C)=0.11,P(B∩D)=0.08,P(C∩D)=0.10,P(B∩C∩D)=0.05 Venn diagram
P(B∩C∩D)=P(B∩C)−P(B∩C∩D)=0.11−0.05=0.06P(B∩D∩C)=P(B∩D)−P(B∩C∩D)=0.08−0.05=0.03P(C∩D∩B)=P(C∩D)−P(B∩C∩D)=0.10−0.05=0.05
P(B∩C∩D)=P(B)−P(B∩C∩D)−P(B∩D∩C)−P(B∩C∩D)==0.25−0.06−0.05−0.05=0.09
P(C∩B∩D)=P(C)−P(B∩C∩D)−P(C∩D∩B)−P(B∩C∩D)==0.25−0.06−0.05−0.05=0.09
P(D∩B∩C)=P(B∪D)−P(B∩C∩D)−P(B∩D∩C)−P(B∩C∩D)−−P(C∩D∩B)−P(B∩C∩D)==0.58−0.30−0.03−0.05−0.05−0.06=0.09 The probability that the selected person buys a donut is
P(D)=P(B∪D)−P(B∩C∩D)−P(B∩C∩D)=0.58−0.30−0.06=0.22 The probability that the selected person buys bread if we know they don't buy a cupcake is
P(B∣C)=P(B∩C)/P(C)==(P(B)−P(B∩C))/(1−P(C))=(0.44−0.11)/(1−0.25)=0.44
The probability that the selected person buys bread if we know they buy a cupcake and a donut is
P(B∣(C∩D))=P(B∩C∩D)/P(C∩D)=0.05/0.10=0.5 In a random sample of 5 customers, what is the probability that 2 or fewer of them buy bread?
B has a binomial distribution
Bin(n=5,p=0.44)
P(B≤2)=5!/(0!(5−0)!)∗(0.44)0∗(1−0.44)5−0+5!/(1!(5−1)!)∗(0.44)1∗(1−0.44)5−1++5!/(2!(5−2)!)∗(0.44)2∗(1−0.44)5−2=0.6114
Comments