Venn diagrams or set diagrams are diagrams that show all hypothetically possible logical relations between a finite collection of sets (groups of things). Venn diagrams were invented around 1880 by John Venn. They are used in many fields, including set theory, probability, logic, statistics, and computer science.
A Venn diagram is a diagram constructed with a collection of simple closed curves drawn in the plane. The principle of these diagrams is that classes be represented by regions in such relation to one another that all the possible logical relations of these classes can be indicated in the same diagram. That is, the diagram initially leaves room for any possible relation of the classes, and the actual or given relation, can then be specified by indicating that some particular region is null or is notnull.
Venn diagrams are very similar to Euler diagrams, but whereas a Venn diagram for n component sets must contain all 2n hypothetically possible zones corresponding to some combination of being included or excluded in each of the component sets, Euler diagrams contain only the actually possible zones in a given context. In Venn diagrams a shaded zone may be used to represents an empty zone, whereas in an Euler diagram the corresponding zone is missing from the diagram. For example, if one set represents "dairy products" and another "cheeses", then the Venn diagram contains a zone for cheeses that are not dairy products. Assuming that in the context "cheese" means some type of dairy product, the Euler diagram will have the cheese zone entirely contained within the dairy-product zone; there is no zone for (non-existent) non-dairy cheese. This means that as the number of contours increase, Euler diagrams are typically less visually complex than the equivalent Venn diagram, particularly if the number of non-empty intersections is small.
Venn diagrams normally consist of overlapping circles. For instance, in a two-set Venn diagram, one circle may represent the group of all wooden objects, while another circle may represent the set of all tables. The overlapping area (intersection) would then represent the set of all wooden tables. Shapes other than circles can be employed (see below), and this is necessary for more than three sets.
Venn diagrams are very similar to Euler diagrams, which were invented by Leonhard Euler (1708-1783) in the 18th century. M. E. Baron has noted that Leibniz (1646-1716) in the 17th century produced similar diagrams before Euler, however, much of it was unpublished. She also observes even earlier Euler-like diagrams by Ramon Lull in the 13th Century.
In the 20th century Venn diagrams are further developed. D.W. Henderson showed in 1963 that the existence of an n-Venn diagram with n-fold rotational symmetry implied that n was prime. He also showed that such symmetric Venn diagrams exist when n is 5 or 7. In 2002 Peter Hamburger found symmetric Venn diagrams for n = 11 and in 2003, Griggs, Killian, and Savage showed that symmetric Venn diagrams exist for all other primes. Thus symmetric Venn diagrams exist if and only if n is a prime number.
The following example involves two sets, A and B, represented here as coloured circles. The orange circle, set A, represents all living creatures that are two-legged. The blue circle, set B, represents the living creatures that can fly. Each separate type of creature can be imagined as a point somewhere in the diagram. Living creatures that both can fly and have two legs — for example, parrots — are then in both sets, so they correspond to points in the area where the blue and orange circles overlap. That area contains all such and only such living creatures.
Humans and penguins are bipedal, and so are then in the orange circle, but since they cannot fly they appear in the left part of the orange circle, where it does not overlap with the blue circle. Mosquitoes have six legs, and fly, so the point for mosquitoes is in the part of the blue circle that does not overlap with the orange one. Creatures that are not two-legged and cannot fly (for example, whales and spiders) would all be represented by points outside both circles.
The combined area of sets A and B is called the union of A and B, denoted by . The union in this case contains all things that either have two legs, or that fly, or both.
The area in both A and B, where the two sets overlap, is called the intersection of A and B, denoted by . For the example, the intersection of the two sets is not empty, because there are points representing creatures that are in both the orange and blue circles.
Sometimes a rectangle called the "Universal set" is drawn around the Venn diagram to show the space of all possible things. As mentioned above, a whale would be represented by a point that is not in the union, but is in the Universe (of living creatures, or of all things, depending on how one chose to define the Universe for a particular diagram).
Venn diagrams typically have three sets. Venn was keen to find symmetrical figures…elegant in themselves representing higher numbers of sets and he devised a four-set diagram using ellipses. He also gave a construction for Venn diagrams for any number of sets, where each successive curve delimiting a set is interleaved with previous curves, starting with the 3-circle diagram.
Edwards' Venn diagrams are topologically equivalent to diagrams devised by Branko Grünbaum which were based around intersecting polygons with increasing numbers of sides. They are also 2-dimensional representations of hypercubes.
Smith devised similar n-set diagrams using sine curves with equations y=sin(2ix)/2i, 0=i=n-2.
Charles Lutwidge Dodgson (a.k.a. Lewis Carroll) devised a five set diagram.