Using R software language please answer the following: Question One: According t
ID: 3294355 • Letter: U
Question
Using R software language please answer the following:
Question One:
According to a survey, 77% percent of the population like Cola, and 56% of the population like Pepsi. 45% of the population like both of them. Now we treat those shares as probability. Answer the following question:
• What is the probability that a person at least one kind of drink? (5 pts)
• What is the probability that a person does not both drinks? (5 pts)
• What is the conditional probability that a person likes Cola, under the condition that the person likes Pepsi? (5 pts)
Explanation / Answer
#A be the event that a person likes cola.
#B be the event that a person likes pepsi.
P_A=0.77
P_B=0.56
P_AB=0.45 #(Probability of A intersection B)
c=P_A+P_B-P_AB
c=0.88
P(a person does not like both drinks)
=[1-(P_A+P_B-P_AB)]
=0.12
P(a person likes atleast one kind of a drink)
=1-P(a person does not like both drinks)
=1-[1-(P_A+P_B-P_AB)]
=0.88
#Conditional PROB that a person likes Cola,
#under the condition that the person likes Pepsi
d=P_AB/P_B
0.8035714
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.