Before we can compute any probability, we need to be precise about what we're modeling. The sample space, written , is the set of all possible outcomes of an experiment. An event is a subset of — the specific outcomes we care about.
For a single die roll, the sample space is
The event "rolled an even number" is the subset . When all outcomes are equally likely, the probability of an event is just the size of the event divided by the size of the sample space:
Events combine using set operations. The union means " or or both." The intersection means "both and ." The complement means "not ." These set operations translate directly into probability rules — for instance, — which is why precise sample-space thinking pays off on hard problems.