Achievable logoAchievable logo
FE Mechanical
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
1. Mathematics
2. Probability & statistics
2.1 Sets & counting
2.2 Laws of probability
2.3 Probability distributions
2.4 Expected value & dispersion
2.5 Common probability distributions
2.6 Hypothesis testing, Z-test & t-test
3. Ethics & professional practice
4. Engineering economics
5. Electricity & magnetism
6. Statics
7. sandbox
Example
Achievable logoAchievable logo
2.1 Sets & counting
FE Mechanical
2. Probability & statistics
Our FE Mechanical course is currently in development and is a work-in-progress.

Sets & counting

4 min read
Font
Discuss
Share
Feedback

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 Ac) 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:

  • A∪∅=A
  • A∩U=A
  • A∪U=U
  • A∩∅=∅

Idempotent laws:

  • A∪A=A
  • A∩A=A

Complement laws:

  • A∪Aˉ=U
  • A∩Aˉ=∅
  • Aˉ=A
  • Uˉ=∅
  • ∅ˉ​=U

Commutative laws:

  • A∪B=B∪A
  • A∩B=B∩A

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:

  • A∪B=Aˉ∩Bˉ
  • A∩B=Aˉ∪Bˉ

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​Pr​ or Prn​.

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 n1​ of type 1, n2​ of type 2, …, nk​ of type k is:

P(n;n1​,n2​,…,nk​)=n1​!n2​!⋯nk​!n!​

where n=n1​+n2​+⋯+nk​.

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)​=(rn​)=r!(n−r)!n!​=r!P(n,r)​​

Also written as n​Cr​, Crn​, or (rn​) (binomial coefficient).

Properties:

  • (rn​)=(n−rn​) (symmetry)
  • (0n​)=(nn​)=1
  • (1n​)=(n−1n​)=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

Set definitions and notation

  • Set: collection of distinct elements; notation x∈A, x∈/A
  • Special sets: ∅ (empty set), U (universal set)
  • Subset: A⊆B (all A in B), proper subset: A⊂B (A=B)
  • Complement: Aˉ (elements in U not in A)

Set operations

  • Union: A∪B (elements in A or B)
  • Intersection: A∩B (elements in both A and B)
  • Disjoint sets: A∩B=∅ (no shared elements)
  • Difference: A−B (elements in A not in B)

Laws of set theory

  • Identity: A∪∅=A, A∩U=A
  • Idempotent: A∪A=A, A∩A=A
  • Complement: A∪Aˉ=U, A∩Aˉ=∅
  • Commutative: A∪B=B∪A, A∩B=B∩A
  • Associative: A∪(B∪C)=(A∪B)∪C
  • Distributive: A∪(B∩C)=(A∪B)∩(A∪C)
  • De Morgan’s Laws:
    • A∪B=Aˉ∩Bˉ
    • A∩B=Aˉ∪Bˉ

Counting & combinatorics

  • Fundamental Counting Principle: m ways for event 1, n ways for event 2 →m×n total ways
  • Permutations: ordered arrangements, P(n,r)=(n−r)!n!​
    • All n objects: n!
    • With repetition: P(n;n1​,...,nk​)=n1​!n2​!⋯nk​!n!​
  • Combinations: unordered selections, C(n,r)=(rn​)=r!(n−r)!n!​
    • Symmetry: (rn​)=(n−rn​)
    • Special cases: (0n​)=(nn​)=1, (1n​)=n
  • Distinguishing:
    • Permutations: order matters (arrangements, rankings)
    • Combinations: order does not matter (groups, selections)
Previous
Next  | 2.2 Laws of probability
All rights reserved ©2016 - 2026 Achievable, Inc.

Sets & counting

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 Ac) 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:

  • A∪∅=A
  • A∩U=A
  • A∪U=U
  • A∩∅=∅

Idempotent laws:

  • A∪A=A
  • A∩A=A

Complement laws:

  • A∪Aˉ=U
  • A∩Aˉ=∅
  • Aˉ=A
  • Uˉ=∅
  • ∅ˉ​=U

Commutative laws:

  • A∪B=B∪A
  • A∩B=B∩A

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:

  • A∪B=Aˉ∩Bˉ
  • A∩B=Aˉ∪Bˉ

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​Pr​ or Prn​.

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 n1​ of type 1, n2​ of type 2, …, nk​ of type k is:

P(n;n1​,n2​,…,nk​)=n1​!n2​!⋯nk​!n!​

where n=n1​+n2​+⋯+nk​.

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)​=(rn​)=r!(n−r)!n!​=r!P(n,r)​​

Also written as n​Cr​, Crn​, or (rn​) (binomial coefficient).

Properties:

  • (rn​)=(n−rn​) (symmetry)
  • (0n​)=(nn​)=1
  • (1n​)=(n−1n​)=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
Key points

Set definitions and notation

  • Set: collection of distinct elements; notation x∈A, x∈/A
  • Special sets: ∅ (empty set), U (universal set)
  • Subset: A⊆B (all A in B), proper subset: A⊂B (A=B)
  • Complement: Aˉ (elements in U not in A)

Set operations

  • Union: A∪B (elements in A or B)
  • Intersection: A∩B (elements in both A and B)
  • Disjoint sets: A∩B=∅ (no shared elements)
  • Difference: A−B (elements in A not in B)

Laws of set theory

  • Identity: A∪∅=A, A∩U=A
  • Idempotent: A∪A=A, A∩A=A
  • Complement: A∪Aˉ=U, A∩Aˉ=∅
  • Commutative: A∪B=B∪A, A∩B=B∩A
  • Associative: A∪(B∪C)=(A∪B)∪C
  • Distributive: A∪(B∩C)=(A∪B)∩(A∪C)
  • De Morgan’s Laws:
    • A∪B=Aˉ∩Bˉ
    • A∩B=Aˉ∪Bˉ

Counting & combinatorics

  • Fundamental Counting Principle: m ways for event 1, n ways for event 2 →m×n total ways
  • Permutations: ordered arrangements, P(n,r)=(n−r)!n!​
    • All n objects: n!
    • With repetition: P(n;n1​,...,nk​)=n1​!n2​!⋯nk​!n!​
  • Combinations: unordered selections, C(n,r)=(rn​)=r!(n−r)!n!​
    • Symmetry: (rn​)=(n−rn​)
    • Special cases: (0n​)=(nn​)=1, (1n​)=n
  • Distinguishing:
    • Permutations: order matters (arrangements, rankings)
    • Combinations: order does not matter (groups, selections)

More from Probability & statistics

  • Laws of probability
  • Probability distributions
  • Expected value & dispersion
  • Common probability distributions
  • Hypothesis testing, Z-test & t-test