?
Solved

Needs help in logic

Posted on 2011-09-05
7
Medium Priority
?
316 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 2000 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
Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
When we purchase storage, we typically are advertised storage of 500GB, 1TB, 2TB and so on. However, when you actually install it into your computer, your 500GB HDD will actually show up as 465GB. Why? It has to do with the way people and computers…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Simple Linear Regression
Suggested Courses

777 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