# Venn diagram

**Venn diagrams** or **set diagrams** are diagrams that show all possible logical relations between a finite collection of sets (aggregation of things). Venn diagrams were conceived around 1880 by John Venn. They are used to teach elementary set theory, as well as illustrate simple set relationships in probability, logic, statistics, linguistics and computer science (see logical connectives).

## Contents

## Overview

Intersection of two sets:

Union of two sets:

Relative complement

of*A*(left) in*B*(right):

Symmetric difference

of two sets:Absolute complement

of A in U:

{{#invoke:see also|seealso}}
A Venn diagram is constructed with a collection of simple closed curves drawn in a plane. According to Lewis (1918), the "principle of these diagrams is that classes [or *sets*] 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 not-null".^{[1]}

Venn diagrams normally comprise overlapping circles. The interior of the circle symbolically represents the elements of the set, while the exterior represents elements that are not members of the set. 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 or *intersection* would then represent the set of all wooden tables. Shapes other than circles can be employed as shown below by Venn's own higher set diagrams. Venn diagrams do not generally contain information on the relative or absolute sizes (cardinality) of sets; i.e. they are schematic diagrams.

Venn diagrams are similar to Euler diagrams. However, a Venn diagram for *n* component sets must contain all 2^{n} hypothetically possible zones that correspond to some combination of inclusion or exclusion 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 represent 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*, 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 has 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 increases, Euler diagrams are typically less visually complex than the equivalent Venn diagram, particularly if the number of non-empty intersections is small.^{[2]}

## History

Venn diagrams were introduced in 1880 by John Venn (1834–1923) in a paper entitled *"On the Diagrammatic and Mechanical Representation of Propositions and Reasonings"* in the "Philosophical Magazine and Journal of Science", about the different ways to represent propositions by diagrams.^{[3]} The use of these types of diagrams in formal logic, according to Ruskey and M. Weston, is "not an easy history to trace, but it is certain that the diagrams that are popularly associated with Venn, in fact, originated much earlier. They are rightly associated with Venn, however, because he comprehensively surveyed and formalized their usage, and was the first to generalize them".^{[4]}

Venn himself did not use the term "Venn diagram" but kept speaking of "Eulerian Circles".^{[3]} In the opening sentence of his 1880 article Venn declared: "Schemes of diagrammatic representation have been so familiarly introduced into logical treatises during the last century or so, that many readers, even those who have made no professional study of logic, may be supposed to be acquainted with the general nation and object of such devices. Of these schemes one only, viz. that commonly called 'Eulerian circles,' has met with any general acceptance..."^{[5]} The first to use the term "Venn diagram" was Clarence Irving Lewis in 1918, in his book "A Survey of Symbolic Logic".^{[4]}

Venn diagrams are very similar to Euler diagrams, which were invented by Leonhard Euler (1708–1783) in the 18th century.^{[6]} M. E. Baron has noted that Leibniz (1646–1716) in the 17th century produced similar diagrams before Euler, but much of it was unpublished. She also observes even earlier Euler-like diagrams by Ramon Lull in the 13th Century.^{[7]}

In the 20th century Venn diagrams were 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.^{[8]} 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.^{[9]}

Venn diagrams and Euler diagrams were incorporated as part of instruction in set theory as part of the new math movement in the 1960s. Since then, they have also been adopted by other curriculum fields such as reading.^{[10]}

## Example

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 A ∪ B.
The union in this case contains all living creatures that are either two-legged or that can 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 A ∩ B. For example, the intersection of the two sets is not empty, because there *are* points that represent creatures that are in *both* the orange and blue circles.

## Extensions to higher numbers of sets

Venn diagrams typically represent two or three sets, but there are forms that allow for higher numbers. Shown below, four intersecting spheres form the highest order Venn diagram that is completely symmetric and can be visually represented. The 16 intersections correspond to the vertices of a tesseract (or the cells of a 16-cell respectively).

For higher numbers of sets, some loss of symmetry in the diagrams is unavoidable. Venn was keen to find "symmetrical figures…elegant in themselves,"{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=
{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}} that represented higher numbers of sets, and he devised a four-set diagram using ellipses (see below). He also gave a construction for Venn diagrams for *any* number of sets, where each successive curve that delimits a set interleaves with previous curves, starting with the three-circle diagram.

This symmetrical or Euler diagram is

**not**a Venn diagram for four sets as it has only 13 regions (excluding the outside); there is no region where only the yellow and blue, or only the pink and green circles meet.Five-set Venn diagram using congruent ellipses in a radially symmetrical arrangement devised by Branko Grünbaum. Labels have been simplified for greater readability; for example,

**A**denotes**A**∩**B**^{c}∩**C**^{c}∩**D**^{c}∩**E**^{c}(or**A**∩ ~**B**∩ ~**C**∩ ~**D**∩ ~**E**), while**BCE**denotes**A**^{c}∩**B**∩**C**∩**D**^{c}∩**E**(or ~**A**∩**B**∩**C**∩ ~**D**∩**E**).

### Edwards' Venn diagrams

A. W. F. Edwards constructed a series of Venn diagrams for higher numbers of sets by segmenting the surface of a sphere. For example, three sets can be easily represented by taking three hemispheres of the sphere at right angles (*x* = 0, *y* = 0 and *z* = 0). A fourth set can be added to the representation by taking a curve similar to the seam on a tennis ball, which winds up and down around the equator, and so on. The resulting sets can then be projected back to a plane to give *cogwheel* diagrams with increasing numbers of teeth, as shown on the right. These diagrams were devised while designing a stained-glass window in memory of Venn.

### Other diagrams

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{{ safesubst:#invoke:Unsubst||date=__DATE__ |$B=
{{#invoke:Category handler|main}}{{#invoke:Category handler|main}}^{[citation needed]}
}} devised similar *n*-set diagrams using sine curves with the series of equations

Charles Lutwidge Dodgson devised a five-set diagram.

## Related concepts

Venn diagrams corresponds to truth tables for the propositions , , etc., in the sense that each region of Venn diagram corresponds to one row of the truth table. ^{[11]}^{[12]}

## References

- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑ Template:Cite web
- ↑
^{3.0}^{3.1}Template:Cite web - ↑
^{4.0}^{4.1}{{#invoke:Citation/CS1|citation |CitationClass=journal }} - ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ In Euler's
*Letters to a German Princess.*In Venn's article, however, he suggests that the diagrammatic idea predates Euler, and is attributable to C. Weise or J. C. Lange. - ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ {{#invoke:Citation/CS1|citation |CitationClass=journal }}
- ↑ Strategies for Reading Comprehension Venn Diagrams
- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}
- ↑ {{#invoke:citation/CS1|citation |CitationClass=book }}

## Further reading

- A Survey of Venn Diagrams by F. Ruskey and M. Weston, is an extensive site with much recent research and many beautiful figures.
- {{#invoke:citation/CS1|citation

|CitationClass=book }}

- {{#invoke:citation/CS1|citation

|CitationClass=book }}

- {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

## External links

- Lewis Carroll's Logic Game — Venn vs. Euler at cut-the-knot
- A Survey of Venn Diagrams
- Area proportional 3-way venn diagram applet
- Generating Venn Diagrams to explore Google Suggest results
- 6-set Venn diagrams made from triangles
- Postscript for 9-set Venn and more
- VBVenn--A Visual Basic program for calculating and graphing quantitative two-circle Venn diagrams

ar:مخطط فيين az:Venn diaqramı ca:Diagrama de Venn cs:Vennův diagram da:Venn-diagram de:Mengendiagramm et:Venni diagramm es:Diagrama de Venn eo:Venn-a diagramo eu:Vennen diagrama fa:نمودار ون fr:Diagramme de Venn ko:벤 다이어그램 hi:वेन आरेख io:Venn-diagramo id:Diagram Venn is:Venn-mynd it:Diagramma di Eulero-Venn he:דיאגרמת ון lt:Veno diagrama hu:Venn-diagram nl:Venndiagram ja:ベン図 no:Venn-diagram nn:Venn-diagram pms:Diagrama d'Euler-Venn pl:Diagram Venna pt:Diagrama de Venn ro:Diagramă Venn ru:Диаграмма Венна sk:Vennov diagram sl:Vennov diagram fi:Venn-diagrammi sv:Venndiagram ta:வென் படம் tr:Venn şeması uk:Діаграма Венна zh:文氏图