information:classification, stylistic:style_transfer
In probability theory, the sample space (also called sample description space, possibility space, or outcome space) of an experiment or random trial is the set of all possible outcomes or results of that experiment. A sample space is usually denoted using set notation, and the possible ordered outcomes, or sample points, are listed as elements in the set. It is common to refer to a sample space by the labels S, Ω, or U (for " universal set "). The elements of a sample space may be numbers, words, letters, or symbols. They can also be finite, countably infinite, or uncountably infinite.

A subset of the sample space is an event, denoted by E {\displaystyle E}. If the outcome of an experiment is included in E {\displaystyle E}, then event E {\displaystyle E} has occurred.

For example, if the experiment is tossing a single coin, the sample space is the set { H, T } {\displaystyle \{H,T\}}, where the outcome H {\displaystyle H} means that the coin is heads and the outcome T {\displaystyle T} means that the coin is tails. The possible events are E = { } {\displaystyle E=\{\}}, E = { H } {\displaystyle E=\{H\}}, E = { T } {\displaystyle E=\{T\}}, and E = { H, T } {\displaystyle E=\{H,T\}}. For tossing two coins, the sample space is { H H, H T, T H, T T } {\displaystyle \{HH,HT,TH,TT\}}, where the outcome is H H {\displaystyle HH} if both coins are heads, H T {\displaystyle HT} if the first coin is heads and the second is tails, T H {\displaystyle TH} if the first coin is tails and the second is heads, and T T {\displaystyle TT} if both coins are tails. The event that at least one of the coins is heads is given by E = { H H, H T, T H } {\displaystyle E=\{HH,HT,TH\}}.

For tossing a single six-sided die one time, where the result of interest is the number of pips facing up, the sample space is { 1, 2, 3, 4, 5, 6 } {\displaystyle \{1,2,3,4,5,6\}}.

A well-defined, non-empty sample space S {\displaystyle S} is one of three components in a probabilistic model (a probability space). The other two basic elements are a well-defined set of possible events (an event space), which is typically the power set of S {\displaystyle S} if S {\displaystyle S} is discrete or a σ -algebra on S {\displaystyle S} if it is continuous, and a probability assigned to each event (a probability measure function).

A sample space can be represented visually by a rectangle, with the outcomes of the sample space denoted by points within the rectangle. The events may be represented by ovals, where the points enclosed within the oval make up the event.