Symmetric difference
From Wikipedia, the free encyclopedia
|
In mathematics, the symmetric difference of two sets is the set of elements which are in one of the sets, but not in both. This operation is the set-theoretic kin of the exclusive disjunction (XOR operation) in Boolean logic. The symmetric difference of the sets A and B is commonly denoted by
Image:Venn0110.svg
Venn diagram of A Δ B. The symmetric difference is red.
For example, the symmetric difference of the sets {1,2,3} and {3,4} is {1,2,4}. The symmetric difference of the set of all students and the set of all females consists of all male students together with all female non-students. The symmetric difference is equivalent to the union of both relative complements, that is:
The symmetric difference of two repeated symmetric differences is the repeated symmetric difference of the join of the two multisets, where for each double set both can be removed. In particular:
The empty set is neutral, and every set is its own inverse:
Intersection distributes over symmetric difference:
and this shows that the power set of X becomes a ring with symmetric difference as addition and intersection as multiplication. This is the prototypical example of a Boolean ring. The symmetric difference can be defined in any Boolean algebra, by writing
This operation has the same properties as the symmetric difference of sets. n-ary symmetric differenceAs above, the symmetric difference of a collection of sets contains just elements which are in an odd number of the sets in the collection:
. Evidently, this is well-defined only when each element of the union Failed to parse (Missing texvc executable; please see math/README to configure.): \bigcup M is contributed by a finite number of elements of Failed to parse (Missing texvc executable; please see math/README to configure.): M . Symmetric difference on measure spacesAs long as there is a notion of "how big" a set is, the symmetric difference between two sets can be considered a measure of how "far apart" they are. Formally, if μ is a σ-finite measure defined on a σ-algebra Σ, the function,
is a pseudometric on Σ. d becomes a metric if Σ is considered modulo the equivalence relation X ~ Y if and only if Failed to parse (Missing texvc executable; please see math/README to configure.): \mu(X \Delta Y) = 0 . The resulting metric space is separable if and only if L2(μ) is separable. See alsode:Mengenlehre#Differenz_und_Komplement it:Differenza simmetrica he:הפרש סימטרי ja:対称差 pl:Różnica symetryczna ru:Симметрическая разность uk:Симетрична різниця множин |


