In daily life, we express probabilities in terms of percentages. For example, the weather forecast may tell us that, with \(80\%\) probability, we will be getting a snowstorm today. In probability theory, probabilities are expressed in terms of numbers in the interval \([0,1]\text{.}\) A probability of \(80\%\) becomes a probability of \(0.8\text{.}\)
Example 3.1.5. Flipping a Coin.
Assume we flip a coin. Since there are two possible outcomes (the coin comes up either heads (\(H\)) or tails (\(T\))), the sample space is the set \(S = \{H,T \}\text{.}\) If the coin is fair, i.e., the probabilities of \(H\) and \(T\) are equal, then the probability function \(P : S \rightarrow \mathbb{R}\) is given by
\begin{equation*}
\begin{array}{lcl}
P(H) &= &1/2 , \\
P(T) &= &1/2 .
\end{array}
\end{equation*}
Observe that this function
\(P\) satisfies the two conditions in
Definition 3.1.2. Since this sample space has two elements, there are four events, one event for each subset. These events are
\begin{equation*}
\emptyset , \{H\} , \{T\} , \{H,T\} ,
\end{equation*}
\begin{equation*}
\begin{array}{ccccccc}
P(\emptyset) &= &0 , &&&& \\
P(\{H\}) &= &P(H) &= &1/2 , &&\\
P(\{T\}) &= &P(T) &= &1/2 , &&\\
P(\{H,T\}) &= &P(H) + P(T) &= &1/2 + 1/2 &= &1 .
\end{array}
\end{equation*}
Example 3.1.7. Rolling a Die Twice.
If we roll a fair die, then there are six possible outcomes (\(1\text{,}\) \(2\text{,}\) \(3\text{,}\) \(4\text{,}\) \(5\text{,}\) and \(6\)), each one occurring with probability \(1/6\text{.}\) If we roll this die twice, we obtain the sample space
\begin{equation*}
S = \{ (i,j) : 1 \leq i \leq 6 , 1 \leq j \leq 6 \} ,
\end{equation*}
where
\(i\) is the result of the first roll and
\(j\) is the result of the second roll. Note that
\(|S| = 6 \times 6 = 36\text{.}\) Since the die is fair, each outcome has the same probability. Therefore, in order to satisfy the two conditions in
Definition 3.1.2, we must have
\begin{equation*}
P(i,j) = 1/36
\end{equation*}
for each outcome \((i,j)\) in \(S\text{.}\)
If we are interested in the sum of the results of the two rolls, then we define the event
\begin{equation*}
A_k = \text{ "the sum of the two rolls } =k \text{",}
\end{equation*}
which, using the notation of sets, is the same as
\begin{equation*}
A_k = \{ (i,j) \in S : i+j=k \} .
\end{equation*}
Consider, for example, the case when \(k=4\text{.}\) There are three possible outcomes of two rolls that result in a sum of \(4\text{.}\) These outcomes are \((1,3)\text{,}\) \((2,2)\text{,}\) and \((3,1)\text{.}\) Thus, the event \(A_4\) is equal to
\begin{equation*}
A_4 = \{ (1,3) , (2,2) , (3,1) \} .
\end{equation*}
In the matrix below, the leftmost column indicates the result of the first roll, the top row indicates the result of the second roll, and each entry is the sum of the results of the two corresponding rolls.
\begin{equation*}
\begin{array}{|c||c|c|c|c|c|c|}
\hline
&1 &2 &3 &4 &5 &6 \\
\hline
\hline
1 &2 &3 &4 &5 &6 &7 \\
2 &3 &4 &5 &6 &7 &8 \\
3 &4 &5 &6 &7 &8 &9 \\
4 &5 &6 &7 &8 &9 &10 \\
5 &6 &7 &8 &9 &10 &11 \\
6 &7 &8 &9 &10 &11 &12 \\
\hline
\end{array}
\end{equation*}
As can be seen from this matrix, the event \(A_k\) is non-empty only if \(k \in \{2,3,\ldots,12\}\text{.}\) For any other \(k\text{,}\) the event \(A_k\) is empty, which means that it can never occur.
\begin{equation*}
P \left( A_k \right) = \sum_{(i,j) \in A_k} P(i,j)
= \sum_{(i,j) \in A_k} 1/36
= |A_k| / 36 .
\end{equation*}
For example, the number \(4\) occurs three times in the matrix and, therefore, the event \(A_4\) has size three. Observe that we have already seen this above. It follows that
\begin{equation*}
P \left( A_4 \right) = |A_4|/36 = 3/36 = 1/12 .
\end{equation*}
In a similar way, we see that
\begin{equation*}
\begin{array}{cclcl}
P\left( A_2 \right) &= &1/36, && \\
P\left( A_3 \right) &= &2/36 &= &1/18 , \\
P\left(A_4\right) &= &3/36 &= &1/12 , \\
P\left(A_5\right) &= &4/36 &= &1/9 , \\
P\left(A_6\right) &= &5/36 , && \\
P\left(A_7\right) &= &6/36 &= &1/6 , \\
P\left(A_8\right) &= &5/36 , && \\
P\left(A_9\right) &= &4/36 &= &1/9 , \\
P\left(A_{10}\right) &= &3/36 &= &1/12 , \\
P\left( A_{11}\right) &= &2/36 &= &1/18 , \\
P\left(A_{12}\right) &= &1/36. &&
\end{array}
\end{equation*}
A sample space is not necessarily uniquely defined. In the last example, where we were interested in the sum of the results of two rolls of a die, we could also have taken the sample space to be the set
\begin{equation*}
S' = \{ 2,3,4,5,6,7,8,9,10,11,12 \} .
\end{equation*}
The probability function \({P}'\) corresponding to this sample space \(S'\) is given by
\begin{equation*}
{P}'(k) = P\left(A_k\right) ,
\end{equation*}
because
\({P}'(k)\) is the probability that we get the outcome
\(k\) in the sample space
\(S'\text{,}\) which is the same as the probability that event
\(A_k\) occurs in the sample space
\(S\text{.}\) You should verify that this function
\({P}'\) satisfies the two conditions in
Definition 3.1.2 and, thus, is a valid probability function on
\(S'\text{.}\)