Relations, Equivalence Relations and Partitions
Core Titles
Key headlines and terms for quick recall- Relation — subset of
- Properties: reflexive, symmetric, transitive, antisymmetric
- Equivalence relation = reflex + sym + trans
- Equivalence class
- Partition of a set
- Correspondence: equivalence relations ↔ partitions
Basic Idea
What it is, why it matters, how it worksWhat is a relation?
A binary relation on a set is a subset of . We write when .
Three key properties
- Reflexive: for every
- Symmetric:
- Transitive:
- Antisymmetric (for partial orders):
Equivalence relation
A relation that is reflexive + symmetric + transitive. It groups elements that are "the same in some sense".
Examples: equality, congruence mod , having the same birthday.
Equivalence classes
For , the class is .
Key theorem. Equivalence classes either coincide or are disjoint, and together they cover — i.e., they form a partition.
Partition ↔ Equivalence relation
Every partition defines an equivalence: iff they lie in the same block. And every equivalence relation produces a partition via its classes. This is a bijective correspondence.
Why this matters in Data Science
Clustering = partitioning data. Equality of features, hash bucketing, deduplication, "group by" operations — all are equivalence relations under the hood.
Mind Map
Visual structure of the conceptRELATIONS
├── Definition: R ⊆ A × A
├── Properties
│ ├── Reflexive aRa
│ ├── Symmetric aRb ⇒ bRa
│ ├── Transitive aRb ∧ bRc ⇒ aRc
│ └── Antisymmetric (for posets)
├── EQUIVALENCE RELATION (R + S + T)
│ ├── Equivalence class [a]
│ ├── Classes are disjoint or equal
│ └── Quotient set A/~
└── PARTITION
├── Blocks cover A
├── Pairwise disjoint
└── ↔ equivalence relation
Exam Q&A
Part A (2 marks) and Part B (20 marks) style questionsPart A (2 marks each)
Q1. Define an equivalence relation. A binary relation on that is reflexive, symmetric and transitive.
Q2. Give an example of a relation that is symmetric but not transitive. On : . Symmetric, but and don't give .
Q3. What is an equivalence class? For under equivalence , the class .
Q4. Define a partition of a set . A collection of non-empty, pairwise-disjoint subsets of whose union is .
Part B (20 marks)
Q. Show that the equivalence classes of an equivalence relation form a partition. Verify with on defined by iff is divisible by 5.
Theorem. Let be an equivalence on . Then the classes form a partition.
Proof.
- Non-empty: By reflexivity, , so every class is non-empty.
- Cover: Every lies in , so .
- Disjoint or equal: Suppose , and pick in both. Then and . By symmetry , and by transitivity . Take any : . Symmetrically . Hence . ∎
Verification on , congruence mod 5.
- Reflexive: , divisible by 5. ✓
- Symmetric: if then . ✓
- Transitive: and . ✓
The five classes are — the residue classes mod 5 — and they partition .