Solved

Needs help in logic

Posted on 2011-09-05
7
310 Views
Last Modified: 2012-05-12
A={2,3,4}
B={3,4,5,6}
U={1,2,3,4,5,6,7,8,9}

P(B\A)

Answer is
{0,{5},{6},{5,6}}

Dont know how it get that needs help. Thanks.
0
Comment
Question by:mustish1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 20

Accepted Solution

by:
n2fc earned 500 total points
ID: 36485895
See:  http://www.mathgoodies.com/lessons/vol6/conditional.html
for explanation on conditional probabilty...

Rule to use is:
P(B | A)  =   P(A and B)  /  P(A)
0
 

Author Comment

by:mustish1
ID: 36485922
A={2,3,4}
B={3,4,5,6}
(A and B) = {2,3,4,5,6}

is this is correct. I am guessing here and means U.
0
 

Author Comment

by:mustish1
ID: 36485993
I think B\A = {5, 6} because 5 and 6 are elements of B but not of A.
power set of {5, 6} means ?
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:mustish1
ID: 36486214
The proper subsets of {5, 6} are {5} and {6} and then add in the empty set and the set itself.

i dont know if this is the way to do that.
0
 
LVL 20

Expert Comment

by:n2fc
ID: 36486231
I believe you are correct in your assumptions!  Thus you match the answer given in your original poser.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36486784
Um, it's not conditional probability. The problem is asking for the power set of A\B
A\B is the set of elements that are in A and not in B so {5,6} in this case. And then the power set is all the possible subsets you can create from that set so of course it would be the { {Ø} {5} {6} {5,6} }
As long as you mean empty set when you write {0} then your answer is correct. I would use the Ø character instead to avoid confusion (Hold the Alt key down and press 0216 on the keypad in Windows to get that character).
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36486790
Sorry, of course in your question we had B\A (elements in B but not in A). I wrote A\B in the above post, but the definition is the same so don't let my typo confuse you.
0

Featured Post

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Nicole
This is a research brief on the potential colonization of humans on Mars.
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Starting up a Project

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question