Post · 8 min read· pp. 63–69

1.3.6 Solved Problems: Random Experiments and Probabilities


Problem Consider a sample space SS and three events AA, BB, and CC. For each of the following events draw a Venn diagram representation as well as a set expression.

  1. Among AA, BB, and CC, only AA occurs.
  2. At least one of the events AA, BB, or CC occurs.
  3. AA or CC occurs, but not BB.
  4. At most two of the events AA, BB, or CC occur.
  • Solution
      1. Among AA, BB, and CC, only AA occurs: A−B−C=A−(B∪C)A-B-C=A-(B \cup C).
      2. At least one of the events AA, BB, or CC occurs: A∪B∪CA \cup B \cup C.
      3. AA or CC occurs, but not BB: (A∪C)−B(A \cup C)-B.
      4. At most two of the events AA, BB, or CC occur: (A∩B∩C)c=Ac∪Bc∪Cc(A \cap B \cap C)^c=A^c \cup B^c \cup C^c. The Venn diagrams are shown in Figure 1.19.

      Probability events

      Fig.1.19 - Venn diagrams for solved problem 1.


Problem

Write the sample space SS for the following random experiments.

  1. We toss a coin until we see two consecutive tails. We record the total number of coin tosses.
  2. 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.
  3. A customer arrives at a bank and waits in the line. We observe TT, 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 SS 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 SS.

      1. 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
        S={2,3,4,⋯ }.S=\{2,3,4,\cdots\}.
      2. 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
        S={(R,B),(B,R),(R,W),(W,R),(R,G),(G,R),S=\{(R,B),(B,R),(R,W),(W,R),(R,G),(G,R),
        (B,W),(W,B),(B,G),(G,B),(W,G),(G,W)}.(B,W),(W,B),(B,G),(G,B),(W,G),(G,W)\}.
      3. A customer arrives at a bank and waits in the line. We observe TT...: In theory TT can be any real number between $0$ and 13=20\frac{1}{3}=20 minutes. Thus,
        S=[0,13]={x∈R∣0≤x≤13}.S=\big[0,\frac{1}{3}\big]=\big\{x \in \mathbb{R} | 0 \leq x \leq \frac{1}{3} \big\}.

Problem

Let AA, BB, and CC be three events in the sample space SS. Suppose we know

  • A∪B∪C=SA \cup B \cup C=S,
  • P(A)=12P(A)=\frac{1}{2},
  • P(B)=23P(B)=\frac{2}{3},
  • P(A∪B)=56P(A \cup B)=\frac{5}{6}.

Answer the following questions:

  1. Find P(A∩B)P(A \cap B).
  2. Do AA, BB, and CC form a partition of SS?
  3. Find P(C−(A∪B))P\big(C-(A \cup B)\big).
  4. If P(C∩(A∪B))=512P(C \cap (A \cup B))=\frac{5}{12}, find P(C)P(C).
  • Solution
    • As before, it is always useful to draw a Venn diagram; however, here we provide the solution without using a Venn diagram.

      1. Using the inclusion-exclusion principle, we have

        P(A∪B)=P(A)+P(B)−P(A∩B).P(A \cup B)=P(A)+P(B)-P(A \cap B).
        Thus,

        P(A∩B)P(A \cap B)=P(A)+P(B)−P(A∪B)=P(A)+P(B)-P(A \cup B)
        =12+23−56=\frac{1}{2}+\frac{2}{3}-\frac{5}{6}
        =13=\frac{1}{3}.
      2. No, since A∩B≠∅A \cap B \neq \emptyset.

      3. We can write

        C−(A∪B)C-(A \cup B)=(C∪(A∪B))−(A∪B)=\bigg(C \cup (A\cup B)\bigg)-(A\cup B)\hspace{30pt}
        =S−(A∪B)=S-(A \cup B)$\textrm{(since A∪B∪C=SA \cup B \cup C=S)}$
        =(A∪B)c=(A \cup B)^c.

        Thus

        P(C−(A∪B))P\big(C-(A \cup B)\big)=P((A∪B)c)=P\big((A \cup B)^c\big)
        =1−P(A∪B)=1-P(A \cup B)
        =16=\frac{1}{6}.
      4. We have

        P(C)=P(C∩(A∪B))+P(C−(A∪B))=512+16=712.P(C)=P(C \cap (A \cup B))+P(C-(A \cup B))=\frac{5}{12}+\frac{1}{6}=\frac{7}{12}.


Problem I roll a fair die twice and obtain two numbers X1=X_1= result of the first roll, and X2=X_2= result of the second roll. Find the probability of the following events:

  1. AA defined as "X1<X2X_1 < X_2";
  2. BB defined as "You observe a $6$ at least once".
  • Solution
    • As we saw before, the sample space SS has $36$ elements.

      1. We have
        A={(1,2),(1,3),(1,4),(1,5),(1,6),(2,3),(2,4),(2,5),A= \{(1,2),(1,3),(1,4),(1,5),(1,6),(2,3),(2,4),(2,5),
        (2,6),(3,4),(3,5),(3,6),(4,5),(4,6),(5,6)}.(2,6),(3,4),(3,5),(3,6),(4,5),(4,6), (5,6) \}.
        Then, we obtain
        P(A)=∣A∣∣S∣=1536=512.P(A)=\frac{|A|}{|S|}=\frac{15}{36}=\frac{5}{12}.
      2. We have
        B={(6,1),(6,2),(6,3),(6,4),(6,5),(6,6),(1,6),(2,6),(3,6),(4,6),(5,6)}.B = \{(6,1),(6,2),(6,3),(6,4),(6,5),(6,6),(1,6),(2,6),(3,6),(4,6),(5,6)\}.
        We obtain
        P(B)=∣B∣∣S∣=1136.P(B)=\frac{|B|}{|S|}=\frac{11}{36}.

Problem

You purchase a certain product. The manual states that the lifetime TT of the product, defined as the amount of time (in years) the product works properly until it breaks down, satisfies

P(T≥t)=e−t5 for all t≥0.P(T \geq t)=e^{-\frac{t}{5}} \textrm{ for all } t \geq 0.
For example, the probability that the product lasts more than (or equal to) $2$ years is P(T≥2)=e−25=0.6703P(T \geq 2)=e^{-\frac{2}{5}}=0.6703.

  1. This is an example of a continuous probability model. Write down the sample space SS.
  2. Check that the statement in the manual makes sense by finding P(T≥0)P(T \geq 0) and lim⁡t→∞P(T≥t)\lim_{t\rightarrow \infty} P(T \geq t).
  3. Also check that if t1<t2t_1 < t_2, then P(T≥t1)≥P(T≥t2)P(T \geq t_1)\geq P(T \geq t_2). Why does this need to be true?
  4. Find the probability that the product breaks down within three years of the purchase time.
  5. Find the probability that the product breaks down in the second year, i.e., find P(1≤T<2)P(1 \leq T < 2).
  • Solution
      1. The sample space SS is the set of all possible outcomes. Here, the possible outcomes are the possible values for TT which can be any real number larger than or equal to zero. Thus

        S=[0,∞).S=[0, \infty).

      2. We have

        P(T≥0)=e−05=1,P(T \geq 0)=e^{-\frac{0}{5}}=1,
        lim⁡t→∞P(T≥t)=e−∞=0,\lim_{t\rightarrow \infty} P(T \geq t)=e^{-\infty}=0,
        which is what we expect. In particular, TT is always larger than or equal to zero, thus we expect P(T≥0)=1P(T \geq 0)=1. Also, since the product will eventually fail at some point, we expect that P(T≥t)P(T \geq t) approaches zero as tt goes to infinity.

      3. First note that if t1<t2t_1 < t_2, then P(T≥t1)=e−t15>e−t25P(T \geq t_1)= e^{-\frac{t_1}{5}}>e^{-\frac{t_2}{5}} =P(T≥t2)=P(T \geq t_2) (since f(x)=e(x)f(x)=e^{(x)} is an increasing function). Here we have two events, AA is the event that T≥t1T \geq t_1 and BB is the event that T≥t2T \geq t_2. That is,

        A=[t1,∞),B=[t2,∞).A =[t_1,\infty), B=[t_2, \infty).
        Since BB is a subset of AA, B⊂AB \subset A, we must have P(B)≤P(A)P(B)\leq P(A), thus
        P(A)=P(T≥t1)≥P(T≥t2)=P(B).P(A)=P(T \geq t_1)\geq P(T \geq t_2)=P(B).

      4. The probability that the product breaks down within three years of the purchase time is

        P(T<3)=1−P(T≥3)=1−e−35≈0.4512P(T < 3)=1-P(T \geq 3)=1-e^{-\frac{3}{5}} \approx 0.4512

      5. Note that if A⊂BA \subset B, then

        P(B−A)P(B-A)$ =P(B)-P(B \cap A)$
        =P(B)−P(A)=P(B)-P(A) \hspace{25pt}$ (\textrm{since } A \subset B$).

        Choosing A=[2,∞)A=[2, \infty) and B=[1,∞)B=[1,\infty), we can write

        P(1≤T<2)P(1 \leq T < 2)=P(T≥1)−P(T≥2)=P(T \geq 1)-P(T \geq 2)
        =e−15−e−25=e^{-\frac{1}{5}}-e^{-\frac{2}{5}}
        =0.1484=0.1484

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 x,y,zx, y, z are the lengths of the three pieces, then (x,y,z)(x,y,z) are uniformly chosen from the set

{(x,y,z)∈R3∣x+y+z=1,x,y,z≥0}.\{(x,y,z) \in \mathbb{R}^3 | x+y+z=1, x,y,z \geq 0\}.

  • 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 SS. In this case the sample space is going to be a two-dimensional set. Second, we need to identify the set AA that contains the favorable outcomes (the set of (x,y,z)(x,y,z) in SS that form a triangle). And finally, since the space is uniform, we will divide area of set AA by the area of SS to obtain P(A)P(A).

      First, we need to find the sets SS and AA. This is basically a geometry problem. The two sets, SS and AA, are shown in Figure 1.20.

      Two sets

      Fig.1.20 - The sample space and set AA for Problem 6.

      Note that in R3\mathbb{R}^3, x+y+z=1x+y+z=1 represents a plane that goes through the points (1,0,0),(0,1,0),(0,0,1)(1,0,0), (0,1,0), (0,0,1). To find the sample space SS, note that $S={(x,y,z) \in \mathbb{R}^3 | x+y+z=1, x,y,z \geq 0}$, thus SS is the part of the plane that is shown in Figure 1.20. To find the set AA, note that we need (x,y,z)(x,y,z) to satisfy the triangle inequality

      x+y>z,x+y > z,
      y+z>x,y+z > x,
      x+z>y.x+z > y.
      Note that since x+y+z=1x+y+z=1, we can equivalently write the three equations as
      x<12,x < \frac{1}{2},
      y<12,y < \frac{1}{2},
      z<12.z < \frac{1}{2}.
      Thus, we conclude that the set AA is the area shown in Figure 20. In particular, we note that the set SS consists of four triangles with equal areas. Therefore, its area is four times the area of AA, and we have
      P(A)=Area of AArea of S=14.P(A)=\frac{\textrm{Area of } A}{\textrm{Area of } S}=\frac{1}{4}.