1.3.6 Solved Problems: Random Experiments and Probabilities
Problem Consider a sample space and three events , , and . For each of the following events draw a Venn diagram representation as well as a set expression.
- Among , , and , only occurs.
- At least one of the events , , or occurs.
- or occurs, but not .
- At most two of the events , , or occur.
- Solution
- Among , , and , only occurs: .
- At least one of the events , , or occurs: .
- or occurs, but not : .
- At most two of the events , , or occur: . The Venn diagrams are shown in Figure 1.19.

Fig.1.19 - Venn diagrams for solved problem 1.
Problem
Write the sample space for the following random experiments.
- We toss a coin until we see two consecutive tails. We record the total number of coin tosses.
- A bag contains $4$ balls: one is red, one is blue, one is white, and one is green. We choose two distinct balls and record their color in order.
- A customer arrives at a bank and waits in the line. We observe , which is the total time (in hours) that the customer waits in the line. The bank has a strict policy that no customer waits more than $20$ minutes under any circumstances.
- Solution
Remember that the sample space is the set of all possible outcomes. Usually, when you have a random experiment, there are different ways to define the sample space depending on what you observe as the outcome. In this problem, for each experiment it is stated what outcomes we observe in order to help you write down the sample space .
- We toss a coin until we see two consecutive tails. We record the total number of coin
tosses: Here, the total number of coin tosses is a natural number larger than or equal to
$2$. The sample space is
- A bag contains $4$ balls: one is red, one is blue, one is white, and one is green. We
choose two distinct balls and record their color in order: The sample space can be written as
- A customer arrives at a bank and waits in the line. We observe ...: In theory
can be any real number between $0$ and minutes. Thus,
- We toss a coin until we see two consecutive tails. We record the total number of coin
tosses: Here, the total number of coin tosses is a natural number larger than or equal to
$2$. The sample space is
Problem
Let , , and be three events in the sample space . Suppose we know
- ,
- ,
- ,
- .
Answer the following questions:
- Find .
- Do , , and form a partition of ?
- Find .
- If , find .
- Solution
As before, it is always useful to draw a Venn diagram; however, here we provide the solution without using a Venn diagram.
Using the inclusion-exclusion principle, we have
Thus,. No, since .
We can write
$\textrm{(since )}$ . Thus
. We have
Problem I roll a fair die twice and obtain two numbers result of the first roll, and result of the second roll. Find the probability of the following events:
- defined as "";
- defined as "You observe a $6$ at least once".
- Solution
As we saw before, the sample space has $36$ elements.
- We have
Then, we obtain
- We have
We obtain
- We have
Problem
You purchase a certain product. The manual states that the lifetime of the product, defined as the amount of time (in years) the product works properly until it breaks down, satisfies
- This is an example of a continuous probability model. Write down the sample space .
- Check that the statement in the manual makes sense by finding and .
- Also check that if , then . Why does this need to be true?
- Find the probability that the product breaks down within three years of the purchase time.
- Find the probability that the product breaks down in the second year, i.e., find .
- Solution
The sample space is the set of all possible outcomes. Here, the possible outcomes are the possible values for which can be any real number larger than or equal to zero. Thus
We have
which is what we expect. In particular, is always larger than or equal to zero, thus we expect . Also, since the product will eventually fail at some point, we expect that approaches zero as goes to infinity.First note that if , then (since is an increasing function). Here we have two events, is the event that and is the event that . That is,
Since is a subset of , , we must have , thusThe probability that the product breaks down within three years of the purchase time is
Note that if , then
$ =P(B)-P(B \cap A)$ $ (\textrm{since } A \subset B$). Choosing and , we can write
Problem
I first saw this question in a math contest many years ago: You get a stick and break it randomly into three pieces. What is the probability that you can make a triangle using the three pieces? You can assume the break points are chosen completely at random, i.e. if the length of the original stick is $1$ unit, and are the lengths of the three pieces, then are uniformly chosen from the set
- Solution
This is again a problem on a continuous probability space. The basic idea is pretty simple. First, we need to identify the sample space . In this case the sample space is going to be a two-dimensional set. Second, we need to identify the set that contains the favorable outcomes (the set of in that form a triangle). And finally, since the space is uniform, we will divide area of set by the area of to obtain .
First, we need to find the sets and . This is basically a geometry problem. The two sets, and , are shown in Figure 1.20.

Fig.1.20 - The sample space and set for Problem 6.
Note that in , represents a plane that goes through the points . To find the sample space , note that $S={(x,y,z) \in \mathbb{R}^3 | x+y+z=1, x,y,z \geq 0}$, thus is the part of the plane that is shown in Figure 1.20. To find the set , note that we need to satisfy the triangle inequality
Note that since , we can equivalently write the three equations asThus, we conclude that the set is the area shown in Figure 20. In particular, we note that the set consists of four triangles with equal areas. Therefore, its area is four times the area of , and we have