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