Table of Contents
The concept of a sample space serves as the bedrock for the entire field of probability theory. Precisely defined, the sample space (often denoted by the mathematical symbols S or Ω) of an experiment is the complete set comprising every single possible outcome that could result from that statistical process. Grasping this exhaustive collection of possibilities is the indispensable first step required for rigorous analysis of any chance phenomenon or random variable. Without a clearly defined sample space, calculating the likelihood of specific events becomes impossible.
To illustrate this fundamental idea, consider the familiar scenario of rolling a standard, six-sided die one time. The set of outcomes we could potentially observe—the numbers appearing on the top face—constitutes the sample space for this experiment. The possible results are definitively the integers one through six. In formal mathematical notation, where curly brackets denote a set, the sample space is represented as:
S = {1, 2, 3, 4, 5, 6}
This simple example highlights that the primary function of defining the sample space is to establish the boundaries of the analysis, ensuring that all potential results are accounted for before proceeding to calculate specific probabilities.
Defining Sample Spaces through Practical Examples
To solidify our understanding of how sample spaces are constructed, it is beneficial to examine several common probabilistic scenarios. These examples demonstrate that while the definition remains constant, the complexity of the resultant sample space varies significantly based on the number of actions and the nature of the outcomes involved in the experiment. We must ensure every unique result is listed.
Example 1: The Single Coin Toss. When tossing a fair, two-sided coin once, the experiment is straightforward, yielding only two possibilities. If we designate H as the outcome where the coin lands on heads and T as the outcome where it lands on tails, the sample space is minimal yet complete. This foundational example is crucial for introducing basic probability concepts and is defined as: S = {H, T}.
Example 2: Selection from a Discrete Collection. Consider a situation involving a bag containing three distinct marbles: one red (R), one green (G), and one blue (B). If we randomly select a single marble from the bag, the sample space is defined by the color of the marble drawn. Since each marble represents a unique and mutually exclusive result, the sample space is: S = {R, G, B}.
Example 3: Combining Independent Events (Coin Toss and Die Roll). When an experiment involves multiple sequential or simultaneous actions, the complexity increases rapidly. If we toss a coin and roll a die concurrently, the outcome must capture the result of both actions. For instance, the result “H1” signifies the coin landing on Head and the die landing on 1. The complete sample space must enumerate all possible pairings:
S = {H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}
Determining the Size of the Sample Space
As demonstrated by the combined coin and die example, manually listing every single outcome can quickly become laborious, particularly when dealing with experiments involving numerous or sequential events. To efficiently determine the total count of possible outcomes—the size of the sample space—without requiring full enumeration, statisticians rely on the powerful mathematical shortcut known as the Fundamental Counting Principle (FCP).
The FCP establishes that if a process consists of multiple independent stages, the total number of ways the entire process can occur is the product of the number of possibilities for each individual stage. Specifically, if Event A can occur in n distinct ways and a subsequent or independent Event B can occur in m distinct ways, the total number of combined ways both events can unfold is simply the product: Total outcomes = m * n. This principle scales infinitely for any number of independent components.
Applying the Principle to Compound Experiments. Let us revisit the combined experiment of tossing a coin and rolling a die. The coin toss (Event A) presents 2 possible outcomes (Heads or Tails). The die roll (Event B) offers 6 possible outcomes (1 through 6). Applying the FCP confirms the total size of the sample space:
Total outcomes = (2 ways for the coin) * (6 ways for the die) = 12 possible outcomes.
This calculation provides the cardinality of the set S, validating the 12 specific outcomes we enumerated earlier: S = {H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}.
Example: Counting Outcomes for Complex Selections. The FCP is particularly useful for combinatorial problems. Imagine selecting an outfit from a wardrobe containing 3 different shirts, 4 different pairs of pants, and 2 different pairs of socks. Since the choice for each item is independent, the total number of unique outfits—which defines the size of this particular sample space—is calculated by multiplication:
Total outfits = 3 (shirts) * 4 (pants) * 2 (socks) = 24 possible outfits.
Visualizing Outcomes with Tree Diagrams
While the Fundamental Counting Principle is excellent for determining the size of the sample space, it does not show the specific relationships or paths between sequential events. When the experiment involves a sequence of choices, or when a clear visual mapping of all potential paths is necessary for deeper understanding, a tree diagram is an invaluable pedagogical and analytical tool. A tree diagram is a graphical representation that systematically maps out all possible outcomes resulting from a sequence of events, ensuring every element of the sample space is clearly identified.
Consider an experiment involving three sequential choices: selecting 2 different shirts, 2 different pairs of pants, and 2 different pairs of socks. The tree diagram starts with the initial choice (shirts), branches out to represent the second choice (pants) from each shirt branch, and then branches again to the third choice (socks). This visualization technique helps to avoid missing any potential combination.
The following image illustrates how a tree diagram visually organizes these sequential decisions, allowing us to trace every unique path from the origin to the final outcome leaves:

By tracing every path from the start node to the final endpoints of the diagram, we can clearly visualize all eight potential unique outcomes in the sample space. Furthermore, we can use the FCP to quickly confirm the cardinality represented by the diagram:
Total outcomes = 2 shirts * 2 pants * 2 socks = 8 possible outfits.
The Essential Link to Probability Calculation
The primary and ultimate purpose of meticulously identifying and defining the sample space is to provide the necessary framework for calculating the likelihood, or probability, of specific events occurring. In probability theory, an event A is formally defined as any subset of the complete sample space S. The probability of event A occurring, denoted P(A), is calculated using the classical definition of probability, which relies on the ratio of favorable outcomes to the total universe of possibilities.
The standard formula for calculating the probability of an event A, assuming equally likely outcomes, is:
P(A) = (Number of outcomes favorable to Event A) / (Total number of outcomes in Sample Space S)
Let’s apply this formula using our initial example: the standard six-sided die roll, where the total sample space is known to have six outcomes:
S = {1, 2, 3, 4, 5, 6}
Case 1: Simple Event Probability. If we define Event A as the die landing specifically on the number “2,” then the set of outcomes favorable to Event A contains only one element:
S (of Event A) = {2}
Since there is 1 favorable outcome out of 6 total possibilities, the probability of Event A occurring is calculated as: P(A) = 1/6.
Case 2: Compound Event Probability. Now, consider a different scenario, Event B: the die landing on an even number. To define the favorable outcomes, we must select all elements from the sample space S that satisfy the condition (being an even number):
S (of Event B) = {2, 4, 6}
In this scenario, there are 3 favorable outcomes. Therefore, the probability of Event B occurring is: P(B) = 3/6, which mathematically simplifies to 1/2 or 0.5. Clearly, defining the sample space is the critical prerequisite for all subsequent probability calculations.
Cite this article
Mohammed looti (2025). Understanding Sample Spaces in Probability: Definition and Examples. PSYCHOLOGICAL STATISTICS. Retrieved from https://statistics.arabpsychology.com/what-is-a-sample-space-definition-examples/
Mohammed looti. "Understanding Sample Spaces in Probability: Definition and Examples." PSYCHOLOGICAL STATISTICS, 5 Nov. 2025, https://statistics.arabpsychology.com/what-is-a-sample-space-definition-examples/.
Mohammed looti. "Understanding Sample Spaces in Probability: Definition and Examples." PSYCHOLOGICAL STATISTICS, 2025. https://statistics.arabpsychology.com/what-is-a-sample-space-definition-examples/.
Mohammed looti (2025) 'Understanding Sample Spaces in Probability: Definition and Examples', PSYCHOLOGICAL STATISTICS. Available at: https://statistics.arabpsychology.com/what-is-a-sample-space-definition-examples/.
[1] Mohammed looti, "Understanding Sample Spaces in Probability: Definition and Examples," PSYCHOLOGICAL STATISTICS, vol. X, no. Y, ص Z-Z, November, 2025.
Mohammed looti. Understanding Sample Spaces in Probability: Definition and Examples. PSYCHOLOGICAL STATISTICS. 2025;vol(issue):pages.