What can happen
The topic What probability is counted outcomes informally: three even faces out of six, nine sick patients among 98 positive tests. It promised to make that counting precise. First we need an exact answer to a simpler question: what exactly receives a probability?
Start with an experiment: anything whose result we cannot predict in advance. Rolling two dice, shuffling a training set, testing a classifier. An outcome is one complete result of the experiment, recorded in full. The sample space is the set of all outcomes.
For two dice, an outcome is an ordered pair: what the first die shows and what the second shows. So
where counts the elements of a set.
An event is a set of outcomes, . The event "the sum is 7" is
The experiment produces one outcome . The event occurs if .
The same language fits machine learning. Run a classifier on three test examples and write for an error and for a correct answer. An outcome is the error pattern, a string like , and holds the strings from to . "Exactly one error" is the event . Any statement you can check from the outcome alone defines an event.