4.3 Defining Events Using Random Variable Notation
We can define events using the notation of random variables and we can compute probabilities of events based on the probability distributions of the variables. For example, the event of having one sibling can be written as [latex]\{X=1\}[/latex] and its probability is [latex]P(X=1) =0.2[/latex]. The event of having at least one sibling is [latex]\{X \geq 1 \}[/latex] and its probability is
[latex]\begin{align*} P(X \geq 1) &= P(X=1 \text{ or } X=2 \text{ or } X=3) \\ &= P(X=1) + P(X=2) + P(X=3) \\ &= 0.2 + 0.4 + 0.2 = 0.8. \end{align*}[/latex]
Alternatively, we can apply the complement rule to find the probability:
[latex]\begin{align*} P(X \geq 1) &= P(X=1 \text{ or } X=2 \text{ or } X=3) \\ &= 1 - P(X=0) \\ &= 1 - 0.2 = 0.8. \end{align*}[/latex]
Exercise: Define Events Using Random Variable
Consider the probability distribution of X = # of siblings below.
[latex]x[/latex] | 0 | 1 | 2 | 3 |
[latex]P(X=x)[/latex] | 0.2 | 0.2 | 0.4 | 0.2 |
Define the following events using the variable X and find the probabilities:
- Having one and a half siblings.
- Having zero to two siblings exclusively.
- Having zero to two siblings inclusively.
Show/Hide Answer
- Event: [latex]\{X=1.5 \}[/latex]. Since the possible values of [latex]X[/latex] are [latex]x=0, 1, 2, 3[/latex], it is impossible for [latex]X[/latex] to be 1.5; therefore, [latex]P(X=1.5) =0[/latex].
- Event: [latex]\{ 0 < X <2 \}[/latex]. Since 1 is the only possible value that is greater than 0 and smaller than 2, [latex]\{ 0 < X < 2 \} = \{ X=1 \}[/latex]. This implies [latex]P(0 < X <2) = P(X=1) = 0.2[/latex].
- Event: [latex]\{ 0 \leq X \leq 2 \} = \{ X=0 \text{ or } X=1 \text{ or } X=2 \}[/latex]. Since the events are mutually exclusive, i.e., they don’t overlap, the special addition rule gives:
[latex]\begin{align*} P(0 \leq X \leq 2) &= P(X=0 \text{ or } X=1 \text{ or } X=2) \\ &= P(X=0) + P(X=1) + P(X=2) \\ &= 0.2 + 0.2 + 0.4 \\ &= 0.8. \end{align*}[/latex]