Set theory Key concepts

Set theory gives precise answers to “what objects are we talking about?” and “which objects are connected?”

Core concepts

  • Element: means belongs to Set .
  • Subset: means every element of is also in .
  • Empty set: arnothing contains no elements.
  • Union/intersection: combines membership; keeps only common members.
  • Difference/complement: removes elements of from .
  • Cartesian product: is the set of ordered pairs.
  • Relation: any subset of a Cartesian product.
  • Function: a relation with exactly one output for every input in the domain.

Standard sets

Number sets are the most common examples: . Intervals such as and are standard subsets of .

Applied intuition

In physics, a state space is a set of possible states; a trajectory is often a function from time into that set. In probability, events are subsets of a sample space. In ML, datasets are finite sets or sequences of examples.