Union probability

0 votes

Hello im having some issue with coding union probability in R as i am quite new to the language

p(a) = 0.30
p(b)=0.45
p(c)= .40

I am trying to find the p(at least one of three items have been purchased) which is p(AuBuC)

ive tried using dbinom but have recently learned that it only works when all three have the some probability

union(A,B) doesn't seem to work either:

 A=0.30
> B=0.45
> C=0.40
> union(A,B,C)

Error in union(A, B, C) : unused argument (C)

any ideas, tips or pointers?

Apr 4 in Machine Learning by Nandini
• 5,480 points
39 views

1 answer to this question.

0 votes

You can try this if a, b, and c are mutually independent.

1-prod(1-c(pa,pb,pc))

Use simple formula in R and this might help you to figure out the solution.

answered Apr 5 by Dev
• 6,000 points

Related Questions In Machine Learning

0 votes
0 answers
0 votes
1 answer

Getting one word as caption with zero probability using pretrained checkpoints for image captioning-im2txt

Under caption_generator.py change the following line as follow ...READ MORE

answered Feb 27 in Machine Learning by CoolCoder
• 4,360 points
32 views
0 votes
1 answer

Leela Chess Zero: how large is the probability vector in the output layer?

The next move's probability vector (called the ...READ MORE

answered Mar 9 in Machine Learning by Nandini
• 5,480 points
33 views
0 votes
1 answer

Choose specific number with probability

Examine the sample function. set.seed(1) sample(c(0,1), size=12, replace=TRUE, prob=c(0.2,0.8)) 1 ...READ MORE

answered Mar 14 in Machine Learning by Dev
• 6,000 points
26 views
0 votes
1 answer
0 votes
1 answer

Calculate Z-Score from Probability Value - R programming

It's named qnorm qnorm(p=0.841344746068543) Output 1 The following family of functions ...READ MORE

answered Apr 4 in Machine Learning by Nandini
• 5,480 points
101 views
0 votes
1 answer

Calculate the probability in R for sum of two dice rolls

By converting the outer values to a ...READ MORE

answered Apr 4 in Machine Learning by Nandini
• 5,480 points
107 views
0 votes
1 answer

Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE

answered Dec 18, 2017 in Data Analytics by Sudhir
• 1,610 points
424 views
0 votes
1 answer
0 votes
1 answer

Empirical probability in R with x1+x2>2*x3

It's easy to duplicate random draws with ...READ MORE

answered Mar 15 in Machine Learning by Dev
• 6,000 points
39 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP