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, 2022 in Machine Learning by Nandini
• 5,480 points
801 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, 2022 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, 2022 in Machine Learning by CoolCoder
• 4,420 points
652 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, 2022 in Machine Learning by Nandini
• 5,480 points
647 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, 2022 in Machine Learning by Dev
• 6,000 points
502 views
0 votes
1 answer

R: Calculate and interpret odds ratio in logistic regression

A logit, or the log of the ...READ MORE

answered Apr 4, 2022 in Machine Learning by Nandini
• 5,480 points
17,020 views
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, 2022 in Machine Learning by Nandini
• 5,480 points
1,873 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, 2022 in Machine Learning by Nandini
• 5,480 points
2,066 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,570 points
1,013 views
0 votes
1 answer

Keras image binary classification, which class is assigned probability 0 and 1 ? Using Functional API

Not exactly.  If your sigmoid output was ...READ MORE

answered Mar 7, 2022 in Machine Learning by Dev
• 6,000 points
1,707 views
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, 2022 in Machine Learning by Dev
• 6,000 points
536 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP