Set theory provides the mathematical language for counting and probability theory, allowing us to precisely describe events and their relationships.
Definitions
Set
A set is a well-defined collection of distinct objects, called elements or members. Sets are typically denoted by uppercase letters (A, B, C, etc.), while elements are denoted by lowercase letters.
Notation:
x ∈ A : “x is an element of set A .”
x ∈ / A : “x is not an element of set A .”
∅ or { } : the empty set (contains no elements).
U : the universal set (contains all elements under consideration).
Subset
A ⊆ B means every element of A is also in B .
Proper subset
A ⊂ B means A ⊆ B and A = B .
Equality
A = B means A ⊆ B and B ⊆ A .
Complement
A ˉ (or A ′ or A c ) consists of all elements in U that are not in A .
Set operations
The following are common operations performed on sets.
Definitions
Union
A ∪ B = { x : x ∈ A or x ∈ B } . The union contains all elements that belong to at least one of the sets.
Intersection
A ∩ B = { x : x ∈ A and x ∈ B } . The intersection contains all elements that belong to both sets.
Disjoint sets
Sets A and B are disjoint if A ∩ B = ∅ . In other words, the sets share no common elements.
Difference
A − B = { x : x ∈ A and x ∈ / B } . The difference is the set of elements in set A but without the elements that are also in set B .
Laws of set theory
Identity laws:
Idempotent laws:
Complement laws:
A ∪ A ˉ = U
A ∩ A ˉ = ∅
A ˉ = A
U ˉ = ∅
∅ ˉ = U
Commutative laws:
Associative laws:
A ∪ ( B ∪ C ) = ( A ∪ B ) ∪ C
A ∩ ( B ∩ C ) = ( A ∩ B ) ∩ C
Distributive laws:
A ∪ ( B ∩ C ) = ( A ∪ B ) ∩ ( A ∪ C )
A ∩ ( B ∪ C ) = ( A ∩ B ) ∪ ( A ∩ C )
De Morgan’s laws:
Counting and combinatorics
Combinatorics provides systematic methods for counting the number of ways events can occur, which is essential for calculating probabilities.
The fundamental counting principle
If one event can occur in m ways and a second event can occur in n ways, then the two events together can occur in m × n ways.
Permutations
A permutation is an ordered arrangement of objects, where order matters.
Permutations of n distinct objects taken r at a time:
P ( n , r ) = ( n − r )! n !
Also written as n P r or P r n .
Special case — permutations of all n objects: P ( n , n ) = n !
Permutations with repetition
When objects are not all distinct, the number of distinguishable permutations of n objects where there are n 1 of type 1, n 2 of type 2, …, n k of type k is:
P ( n ; n 1 , n 2 , … , n k ) = n 1 ! n 2 ! ⋯ n k ! n !
where n = n 1 + n 2 + ⋯ + n k .
Combinations
A combination is a selection of objects where order does not matter.
Combinations of n objects taken r at a time:
C ( n , r ) = ( r n ) = r ! ( n − r )! n ! = r ! P ( n , r )
Also written as n C r , C r n , or ( r n ) (binomial coefficient).
Properties:
( r n ) = ( n − r n ) (symmetry)
( 0 n ) = ( n n ) = 1
( 1 n ) = ( n − 1 n ) = n
Distinguishing permutations from combinations
Use permutations when:
Order matters
Arranging objects in sequence
Assigning positions or ranks
Use combinations when:
Order doesn’t matter
Selecting a subset
Forming groups or committees