Union And Intersection Examples Pdf
Union corresponds to the english or.
Union and intersection examples pdf. Since the die is fair all outcomes are equally likely so by counting we have p e cap t frac 2 6. The intersection of two sets is the set of elements which are in both sets. Let a 1 2 3 and b 3 4 5. Intersection corresponds to and.
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. The intersection of a and b written a b 3. 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.
The information on the probabilities of the six outcomes that we have so far is. The intersection is notated a b. Summary of union vs. Now the union of a and b written a b 1 2 3 4 5.
The intersection of 2 sets a a a and b b b is denoted by a b a cap b a b. The union intersect and except clauses are used to combine or exclude like rows from two or more tables. A useful way to remember the symbol is i cap tersection. When the intersection of aand bis empty we say that aand bare disjoint.
2 union let a and b be sets. 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. If aand bwere disjoint. Sometimes there will be no intersection at all.
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. 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. This is the set of all distinct elements that are in both a a a and b b b. For example the items you wear is a set.
There is no need to list the 3 twice. These include hat shirt jacket pants and so on. 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. Union and intersection have counterparts in standard english.
You can now list your friends that play soccer or tennis. 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 cardinality of the union and intersection of the sets aand b are related by. More formally x a b if x a and x b.
A b x x a x b u b a. Ja bj jaj jbjj a bj. Learn to use union intersect and except clauses. Union intersection and complement.
The union of two sets contains all the elements contained in either set or both sets. They are useful when you need to combine the results from separate queries into one single result. We can define the union of a collection of sets as the set of all distinct elements that are in any of these sets.