Comprehensive Exercises on Random Events and Probability

Exercises

Exercise 1

Toss a fair coin twice and find the probability of the event that exactly one head appears.

classical probability modelprobability calculationrandom experiment

Approach: Use the classical probability model to compute the probability.

Steps:

  1. Sample space: Ω={(H,H),(H,T),(T,H),(T,T)}\Omega = \{(\text{H},\text{H}), (\text{H},\text{T}), (\text{T},\text{H}), (\text{T},\text{T})\}
  2. Event A={exactly one head appears}={(H,T),(T,H)}A = \{\text{exactly one head appears}\} = \{(\text{H},\text{T}), (\text{T},\text{H})\}
  3. P(A)=24=12P(A) = \frac{2}{4} = \frac{1}{2}

Answer: 12\frac{1}{2}

Exercise 2

Given P(A)=0.4,P(B)=0.5,P(A∩B)=0.2P(A) = 0.4, P(B) = 0.5, P(A \cap B) = 0.2, find P(A∪B)P(A \cup B).

probability addition formulaunion of eventsprobability calculation

Approach: Compute with the addition formula.

Steps:

  1. P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
  2. =0.4+0.5−0.2=0.7= 0.4 + 0.5 - 0.2 = 0.7
  3. We subtract P(A∩B)P(A \cap B) because the intersection was counted twice in the direct addition.

Answer: P(A∪B)=0.7P(A \cup B) = 0.7.

Exercise 3

Given P(A)=0.3,P(B∣A)=0.5P(A) = 0.3, P(B|A) = 0.5, find P(A∩B)P(A \cap B).

conditional probabilitymultiplication formulaintersection probability

Approach: Compute with the multiplication formula.

Steps:

  1. P(A∩B)=P(A)P(B∣A)P(A \cap B) = P(A)P(B|A)
  2. =0.3×0.5=0.15= 0.3 \times 0.5 = 0.15
  3. Here we multiply by the probability P(A)=0.3P(A)=0.3 that AA has already occurred, while P(B∣A)P(B|A) is meaningful only under the condition that AA occurs.

Answer: P(A∩B)=0.15P(A \cap B) = 0.15, that is, the probability that events AA and BB occur together is 0.150.15.

Exercise 4

There are three boxes containing 2, 3, and 5 balls respectively; one box is chosen at random and one ball is drawn from it. Find the probability that the ball comes from box 3 given that a white ball is drawn (box 3 contains 3 white and 2 black balls, and the others contain only white balls).

Bayes' formulalaw of total probabilityconditional probability

Approach: Compute with Bayes’ formula.

Steps:

  1. Let Ai={box i is chosen}A_i = \{\text{box } i \text{ is chosen}\}, i=1,2,3i = 1, 2, 3
  2. Let B={a white ball is drawn}B = \{\text{a white ball is drawn}\}
  3. P(A1)=P(A2)=P(A3)=13P(A_1) = P(A_2) = P(A_3) = \frac{1}{3}
  4. P(B∣A1)=1P(B|A_1) = 1, P(B∣A2)=1P(B|A_2) = 1, P(B∣A3)=35P(B|A_3) = \frac{3}{5}
  5. P(B)=13×1+13×1+13×35=1115P(B) = \frac{1}{3} \times 1 + \frac{1}{3} \times 1 + \frac{1}{3} \times \frac{3}{5} = \frac{11}{15}
  6. P(A3∣B)=P(A3)P(B∣A3)P(B)=13×351115=311P(A_3|B) = \frac{P(A_3)P(B|A_3)}{P(B)} = \frac{\frac{1}{3} \times \frac{3}{5}}{\frac{11}{15}} = \frac{3}{11}

Answer: 311\frac{3}{11}

Exercise 5

Given P(A)=0.6,P(B)=0.5,P(A∩B)=0.3P(A) = 0.6, P(B) = 0.5, P(A \cap B) = 0.3, determine whether A and B are independent.

independence of eventsindependence criterionconditional probability

Approach: Check whether the condition for independence is satisfied.

Steps:

  1. P(A)P(B)=0.6×0.5=0.3P(A)P(B) = 0.6 \times 0.5 = 0.3
  2. P(A∩B)=0.3P(A \cap B) = 0.3
  3. Therefore P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
  4. Hence AA and BB are independent

Answer: AA and BB are independent

Exercise 6

Roll a fair die and find the probability of getting an even number or a number greater than 3.

probability addition formulaunion of eventsprobability calculation

Approach: Compute with the addition formula.

Steps:

  1. Let A={an even number appears}={2,4,6}A = \{\text{an even number appears}\} = \{2, 4, 6\}
  2. Let B={a number greater than 3 appears}={4,5,6}B = \{\text{a number greater than 3 appears}\} = \{4, 5, 6\}
  3. A∩B={4,6}A \cap B = \{4, 6\}
  4. P(A)=36=12P(A) = \frac{3}{6} = \frac{1}{2}
  5. P(B)=36=12P(B) = \frac{3}{6} = \frac{1}{2}
  6. P(A∩B)=26=13P(A \cap B) = \frac{2}{6} = \frac{1}{3}
  7. P(A∪B)=P(A)+P(B)−P(A∩B)=12+12−13=23P(A \cup B) = P(A) + P(B) - P(A \cap B) = \frac{1}{2} + \frac{1}{2} - \frac{1}{3} = \frac{2}{3}

Answer: 23\frac{2}{3}

Exercise 7

Choose a point at random on the interval [0,1][0, 1] and find the probability of landing in [0.3,0.7][0.3, 0.7].

geometric probability modelcontinuous random variableprobability calculation

Approach: Use the geometric probability model to compute the probability.

Steps:

  1. Sample space: Ω=[0,1]\Omega = [0, 1]
  2. Event A=[0.3,0.7]A = [0.3, 0.7]
  3. m(Ω)=1m(\Omega) = 1
  4. m(A)=0.7−0.3=0.4m(A) = 0.7 - 0.3 = 0.4
  5. P(A)=0.41=0.4P(A) = \frac{0.4}{1} = 0.4

Answer: 0.40.4

Exercise 8

Draw one card at random from a deck of playing cards and find the probability of drawing a heart.

classical probability modelprobability calculationrandom experiment

Approach: Use the classical probability model to compute the probability.

Steps:

  1. Sample space: 52 playing cards
  2. Event A={a heart is drawn}A = \{\text{a heart is drawn}\}
  3. ∣A∣=13|A| = 13 (there are 13 hearts)
  4. ∣Ω∣=52|\Omega| = 52
  5. P(A)=1352=14P(A) = \frac{13}{52} = \frac{1}{4}

Answer: 14\frac{1}{4}

Exercise 9

The products of a factory are produced by two workshops. The first workshop produces 60% and the second 40%. The defective rate is 1% in the first workshop and 2% in the second. One product is drawn at random and is found to be defective. Find the probability that it comes from the first workshop.

Bayes' formulalaw of total probabilityconditional probability

Approach: Compute with Bayes’ formula.

Steps:

  1. Let A1={the product comes from the first workshop}A_1 = \{\text{the product comes from the first workshop}\}, A2={the product comes from the second workshop}A_2 = \{\text{the product comes from the second workshop}\}
  2. Let B={the product is defective}B = \{\text{the product is defective}\}
  3. P(A1)=0.6P(A_1) = 0.6, P(A2)=0.4P(A_2) = 0.4
  4. P(B∣A1)=0.01P(B|A_1) = 0.01, P(B∣A2)=0.02P(B|A_2) = 0.02
  5. P(B)=0.6×0.01+0.4×0.02=0.006+0.008=0.014P(B) = 0.6 \times 0.01 + 0.4 \times 0.02 = 0.006 + 0.008 = 0.014
  6. P(A1∣B)=0.6×0.010.014=0.0060.014=37P(A_1|B) = \frac{0.6 \times 0.01}{0.014} = \frac{0.006}{0.014} = \frac{3}{7}

Answer: 37\frac{3}{7}

Exercise 10

Roll two dice. Let A={the first die shows an even number}A = \{\text{the first die shows an even number}\} and B={the sum of the two dice is 7}B = \{\text{the sum of the two dice is 7}\}. Determine whether AA and BB are independent.

independence of eventsprobability calculationdetermination

Approach: Compute the relevant probabilities and check independence.

Steps:

  1. P(A)=36=12P(A) = \frac{3}{6} = \frac{1}{2}
  2. P(B)=636=16P(B) = \frac{6}{36} = \frac{1}{6} (there are 6 cases: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1))
  3. A∩B={the first die is even and the sum is 7}={(2,5),(4,3),(6,1)}A \cap B = \{\text{the first die is even and the sum is 7}\} = \{(2,5), (4,3), (6,1)\}
  4. P(A∩B)=336=112P(A \cap B) = \frac{3}{36} = \frac{1}{12}
  5. P(A)P(B)=12×16=112P(A)P(B) = \frac{1}{2} \times \frac{1}{6} = \frac{1}{12}
  6. Therefore P(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B), and AA and BB are independent

Answer: AA and BB are independent

Exercise 11

Prove that P(A‾)=1−P(A)P(\overline{A}) = 1 - P(A).

complement eventproperties of probabilityproof

Approach: Use the definition of the complement event and the properties of probability.

Steps:

  1. A∪A‾=ΩA \cup \overline{A} = \Omega
  2. A∩A‾=∅A \cap \overline{A} = \varnothing
  3. Hence P(A∪A‾)=P(A)+P(A‾)P(A \cup \overline{A}) = P(A) + P(\overline{A})
  4. Also P(A∪A‾)=P(Ω)=1P(A \cup \overline{A}) = P(\Omega) = 1
  5. Therefore P(A)+P(A‾)=1P(A) + P(\overline{A}) = 1
  6. So P(A‾)=1−P(A)P(\overline{A}) = 1 - P(A)

Answer: the proof is complete

Exercise 12

Let Ω={1,2,3,4,5}\Omega = \{1, 2, 3, 4, 5\}, A={1,2,3}A = \{1, 2, 3\}, B={2,3,4}B = \{2, 3, 4\}. Find A‾\overline{A} and A−BA - B.

event operationcomplement eventdifference event

Approach: Compute from the definitions of the complement event and the difference event.

Steps:

  1. A‾=Ω−A={4,5}\overline{A} = \Omega - A = \{4, 5\}
  2. A−B=A∩B‾={1,2,3}∩{1,5}={1}A - B = A \cap \overline{B} = \{1, 2, 3\} \cap \{1, 5\} = \{1\}

Answer: A‾={4,5}\overline{A} = \{4, 5\}, A−B={1}A - B = \{1\}

Exercise 13

Roll a die and define the events A={an even number appears}A = \{\text{an even number appears}\}, B={a number greater than 3 appears}B = \{\text{a number greater than 3 appears}\}. Find A∪BA \cup B and A∩BA \cap B.

event operationsample spaceset operation

Approach: Compute from the definitions of events and the rules of event operations.

Steps:

  1. A={an even number appears}={2,4,6}A = \{\text{an even number appears}\} = \{2, 4, 6\}
  2. B={a number greater than 3 appears}={4,5,6}B = \{\text{a number greater than 3 appears}\} = \{4, 5, 6\}
  3. A∪B={2,4,5,6}A \cup B = \{2, 4, 5, 6\}
  4. A∩B={4,6}A \cap B = \{4, 6\}

Answer: A∪B={2,4,5,6}A \cup B = \{2, 4, 5, 6\}, A∩B={4,6}A \cap B = \{4, 6\}

Exercise 14

Prove De Morgan’s law: A∪B‾=A‾∩B‾\overline{A \cup B} = \overline{A} \cap \overline{B}.

event operationDe Morgan's lawproof

Approach: Prove De Morgan’s law through set operations.

Steps:

  1. Let ω∈A∪B‾\omega \in \overline{A \cup B}; then ω∉A∪B\omega \notin A \cup B
  2. Therefore ω∉A\omega \notin A and ω∉B\omega \notin B
  3. That is, ω∈A‾\omega \in \overline{A} and ω∈B‾\omega \in \overline{B}
  4. Therefore ω∈A‾∩B‾\omega \in \overline{A} \cap \overline{B}
  5. Conversely, let ω∈A‾∩B‾\omega \in \overline{A} \cap \overline{B}; then ω∈A‾\omega \in \overline{A} and ω∈B‾\omega \in \overline{B}
  6. Therefore ω∉A\omega \notin A and ω∉B\omega \notin B
  7. That is, ω∉A∪B\omega \notin A \cup B, so ω∈A∪B‾\omega \in \overline{A \cup B}

Answer: the proof is complete

Exercise 15

Let AA and BB be arbitrary events. Prove that: (A∪B)∩A‾=B∩A‾(A \cup B) \cap \overline{A} = B \cap \overline{A}.

event operationdistributive lawproof

Approach: Use the distributive law and the properties of event operations.

Steps:

  1. (A∪B)∩A‾=(A∩A‾)∪(B∩A‾)(A \cup B) \cap \overline{A} = (A \cap \overline{A}) \cup (B \cap \overline{A})
  2. A∩A‾=∅A \cap \overline{A} = \varnothing
  3. Therefore (A∪B)∩A‾=∅∪(B∩A‾)=B∩A‾(A \cup B) \cap \overline{A} = \varnothing \cup (B \cap \overline{A}) = B \cap \overline{A}

Answer: the proof is complete

Found an issue with this content?

Tell us what could be improved.