Sample space

[4] A sample space is usually denoted using set notation, and the possible ordered outcomes, or sample points,[5] 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.

[6] A subset of the sample space is an event, denoted by

[7] For example, if the experiment is tossing a single coin, the sample space is the set

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

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

[11] A sample space can be represented visually by a rectangle, with the outcomes of the sample space denoted by points within the rectangle.

) must meet some conditions in order to be a sample space:[13] For instance, in the trial of tossing a coin, one possible sample space is

, as an experimenter likely does not care about how the weather affects the coin toss.

For many experiments, there may be more than one plausible sample space available, depending on what result is of interest to the experimenter.

For example, when drawing a card from a standard deck of fifty-two playing cards, one possibility for the sample space could be the various ranks (Ace through King), while another could be the suits (clubs, diamonds, hearts, or spades).

[4][14] A more complete description of outcomes, however, could specify both the denomination and the suit, and a sample space describing each individual card can be constructed as the Cartesian product of the two sample spaces noted above (this space would contain fifty-two equally likely outcomes).

Still other sample spaces are possible, such as right-side up or upside down, if some cards have been flipped when shuffling.

Some treatments of probability assume that the various outcomes of an experiment are always defined so as to be equally likely.

[16] However, there are experiments that are not easily described by a sample space of equally likely outcomes—for example, if one were to toss a thumb tack many times and observe whether it landed with its point upward or downward, there is no physical symmetry to suggest that the two outcomes should be equally likely.

[17] Though most random phenomena do not have equally likely outcomes, it can be helpful to define a sample space in such a way that outcomes are at least approximately equally likely, since this condition significantly simplifies the computation of probabilities for events within the sample space.

If each individual outcome occurs with the same probability, then the probability of any event becomes simply:[18]: 346–347 For example, if two fair six-sided dice are thrown to generate two uniformly distributed integers,

, each in the range from 1 to 6, inclusive, the 36 possible ordered pairs of outcomes

constitute a sample space of equally likely events.

In this case, the above formula applies, such as calculating the probability of a particular sum of the two rolls in an outcome.

, since four of the thirty-six equally likely pairs of outcomes sum to five.

If the sample space was all of the possible sums obtained from rolling two six-sided dice, the above formula can still be applied because the dice rolls are fair, but the number of outcomes in a given event will vary.

In order to arrive at a sample that presents an unbiased estimate of the true characteristics of the population, statisticians often seek to study a simple random sample—that is, a sample in which every individual in the population is equally likely to be included.

[18]: 274–275  The result of this is that every possible combination of individuals who could be chosen for the sample has an equal chance to be the sample that is selected (that is, the space of simple random samples of a given size from a given population is composed of equally likely outcomes).

[20] In an elementary approach to probability, any subset of the sample space is usually called an event.

[9] However, this gives rise to problems when the sample space is continuous, so that a more precise definition of an event is necessary.

Under this definition only measurable subsets of the sample space, constituting a σ-algebra over the sample space itself, are considered events.

An example of an infinitely large sample space is measuring the lifetime of a light bulb.

A visual representation of a finite sample space and events. The red oval is the event that a number is odd, and the blue oval is the event that a number is prime.
Flipping a coin leads to a sample space composed of two outcomes that are almost equally likely.
A brass tack with point downward
Up or down? Flipping a brass tack leads to a sample space composed of two outcomes that are not equally likely.