Union And Intersection Examples Pdf
You can now list your friends that play soccer or tennis.
Union and intersection examples pdf. The intersection of 2 sets a a a and b b b is denoted by a b a cap b a b. Union and intersection have counterparts in standard english. If on the other hand you re looking for the. This is the set of all distinct elements that are in both a a a and b b b.
This is true because to count the number of elements in a b we start by counting those in a and then add those in b. When the intersection of aand bis empty we say that aand bare disjoint. There is no need to list the 3 twice. In terms of set theory union is the set of all the elements that are in either set or in both whereas intersection is the set of all distinct elements that belong to both the sets.
The intersection of two sets is the set of elements which are in both sets. Ja bj jaj jbjj a bj. If i ask you for the intersection of two sets what i want is all of the elements that are in the first set and in the second set. The information on the probabilities of the six outcomes that we have so far is.
The cardinality of the union and intersection of the sets aand b are related by. More formally x a b if x a or x b or both the intersection of two sets contains only the elements that are in both sets. Intersection corresponds to and. In both cases the sample space is s 1 2 3 4 5 6 and the event in question is the intersection e cap t 4 6 of the previous example.
These include hat shirt jacket pants and so on. Let a 1 2 3 and b 3 4 5. The intersection of a and b written a b 3. Union intersection and complement.
Now the union of a and b written a b 1 2 3 4 5. Summary of union vs. More formally x a b if x a and x b. Learn to use union intersect and except clauses.
We can define the union of a collection of sets as the set of all distinct elements that are in any of these sets. Think of it this way. They are useful when you need to combine the results from separate queries into one single result. Since the die is fair all outcomes are equally likely so by counting we have p e cap t frac 2 6.
For example the items you wear is a set. Intersection both union and intersection are the two fundamental operations through which sets can be combined and related to each other. The union is notated a b. Intersection intersection is when you must be in both sets.
The intersection is notated a b. The union intersect and except clauses are used to combine or exclude like rows from two or more tables. The union of two sets contains all the elements contained in either set or both sets. If aand bwere disjoint.
Sometimes there will be no intersection at all. Union corresponds to the english or. The union of a and b denoted by a b is the set containing those elements that are either in a or in b or in both.