Exercises: Prerequisites
An $8$-sided die in the shape of a regular octahedron, numbered from $1$ to $8$, is rolled. Write down the sample space $E$ associated with this random experiment and…
An $8$-sided die in the shape of a regular octahedron, numbered from $1$ to $8$, is rolled. Write down the sample space $E$ associated with this random experiment and determine the outcomes that make up the following events:
-
$A =$ "Obtaining a prime number".
-
$B =$ "Obtaining a number greater than $5$".
-
$C = A \cap B$.
In the quality control department of an electronic components factory, a component is drawn at random from a test batch. The batch contains $5$ defective red components,…
In the quality control department of an electronic components factory, a component is drawn at random from a test batch. The batch contains $5$ defective red components, $3$ working blue components and $2$ working yellow components.
Using Laplace's rule, calculate the probability of:
- a) Drawing a blue component.
- b) Drawing a working (non-defective) component.
- c) Drawing a component that is not yellow.
Let $A$ and $B$ be two events in the same random experiment. The following probabilities are known: $P(A) = 0.5$, $P(B) = 0.4$ and the probability that both occur…
Let $A$ and $B$ be two events in the same random experiment. The following probabilities are known: $P(A) = 0.5$, $P(B) = 0.4$ and the probability that both occur simultaneously is $P(A \cap B) = 0.15$.
Calculate the probability that at least one of the two events occurs, that is, $P(A \cup B)$, and the probability that $A$ does not occur, denoted as $P(\overline{A})$.
A card is drawn at random from a $40$-card deck. Define the events $A =$ "Drawing a King" and $B =$ "Drawing a Sword card". Determine the probabilities $P(A)$, $P(B)$…
A card is drawn at random from a $40$-card deck. Define the events $A =$ "Drawing a King" and $B =$ "Drawing a Sword card".
Determine the probabilities $P(A)$, $P(B)$ and $P(A \cap B)$. From them, calculate the probability of drawing a King or a Sword card.
A computer engineering student is configuring a new server. They can choose between $3$ processor models, $4$ different RAM capacities and $2$ types of hard drive (SSD…
A computer engineering student is configuring a new server. They can choose between $3$ processor models, $4$ different RAM capacities and $2$ types of hard drive (SSD or NVMe). Applying the multiplication principle, how many different server configurations can they create by choosing exactly one component of each type? If they choose a configuration at random, what is the probability that it has an NVMe drive?
The random experiment of rolling a fair cubic die numbered from $1$ to $6$ is performed. Consider the events $A =$ "Obtaining an even number" and $B =$ "Obtaining a…
The random experiment of rolling a fair cubic die numbered from $1$ to $6$ is performed. Consider the events $A =$ "Obtaining an even number" and $B =$ "Obtaining a prime number greater than $2$".
Write down the outcomes of each event and determine, justifying your answer, whether events $A$ and $B$ are compatible or incompatible.
$3$ fair coins are tossed simultaneously. Write down the complete sample space $E$ using the notation $C$ for heads and $X$ for tails. Next, calculate the probability of…
$3$ fair coins are tossed simultaneously. Write down the complete sample space $E$ using the notation $C$ for heads and $X$ for tails. Next, calculate the probability of getting exactly two heads.
In a meteorological study, the probability that it rains on Saturday is $P(S)$ and that it rains on Sunday is $P(D)$. Knowing that the probability that it rains on at…
In a meteorological study, the probability that it rains on Saturday is $P(S)$ and that it rains on Sunday is $P(D)$. Knowing that the probability that it rains on at least one of the two days of the weekend is $P(S \cup D) = 0.85$, use De Morgan's laws or the properties of the complementary event to calculate the probability that it does not rain on either day of the weekend, that is, $P(\overline{S} \cap \overline{D})$.
In a meteorological study, the following events are recorded for a specific autumn day: $L =$ "it rains" and $V =$ "there are strong wind gusts", with known…
In a meteorological study, the following events are recorded for a specific autumn day: $L =$ "it rains" and $V =$ "there are strong wind gusts", with known probabilities $P(L) = 0.40$, $P(V) = 0.30$, and $P(L \cap V) = 0.15$.
Aoife needs to calculate the probability that on a given day "it does not rain and there is no strong wind either". In her notebook, she writes:
"The opposite event of neither of the two things happening is that both happen at the same time, that is, the complement of the intersection: $\overline{L \cap V}$. Therefore: $P(\overline{L \cap V}) = 1 - P(L \cap V) = 1 - 0.15 = 0.85$".
- a) Identify the conceptual error made by Aoife when translating the verbal statement into set operations and explain with justification why her logical equivalence is false.
- b) Write the correct set-theoretic expression for the event "it does not rain and there is no wind" and use one of De Morgan's laws to find its correct probability.
For a classroom probability game, a circular roulette wheel divided into $n$ identical, equiprobable sectors, numbered from $1$ to $n$ (where $n \ge 5$), is designed.…
For a classroom probability game, a circular roulette wheel divided into $n$ identical, equiprobable sectors, numbered from $1$ to $n$ (where $n \ge 5$), is designed. The events $A =$ "obtain an even number" and $B =$ "obtain a number strictly greater than $5$" are defined.
- a) Determine by extension the elements of the difference event $A - B$ and explain why its number of elements is constant for any $n \ge 5$.
- b) Set up an equation relating the theoretical probability of $A - B$ to the parameter $n$, and calculate the value of $n$ needed to satisfy exactly $P(A - B) = 0.25$.
- c) For the value of $n$ found in the previous section, justify whether $A$ and $B$ are compatible or mutually exclusive events, and calculate the probability of their union $P(A \cup B)$.
In a technology college with $150$ students, a survey was carried out on the use of programming languages. The results show that $85$ students program in Python ($P$),…
In a technology college with $150$ students, a survey was carried out on the use of programming languages. The results show that $85$ students program in Python ($P$), $60$ program in Java ($J$) and $25$ program in both languages.
If a student is selected at random from this college, find the following probabilities:
- a) That they program in at least one of the two languages.
- b) That they do not program in either of these two languages.
- c) That they program in Python, but not in Java.
To access a secure database, an employee must generate a $4$-digit numeric PIN code (from $0$ to $9$). The system allows digits to be repeated. Calculate the probability…
To access a secure database, an employee must generate a $4$-digit numeric PIN code (from $0$ to $9$). The system allows digits to be repeated. Calculate the probability that a completely randomly generated PIN satisfies the following condition: the first digit is a $7$ and the last digit is even (considering $0$ as even).
On an electric motor assembly line, it is known that the probability that a motor has a mechanical defect is $P(M) = 0.06$, the probability that it has an electrical…
On an electric motor assembly line, it is known that the probability that a motor has a mechanical defect is $P(M) = 0.06$, the probability that it has an electrical defect is $P(E) = 0.04$, and the probability that it has both defects simultaneously is $P(M \cap E) = 0.01$. Calculate the probability that a randomly chosen motor:
- a) Has at least one defect.
- b) Has no defects at all.
- c) Has a mechanical defect given that it has no electrical defect, that is, $P(M \mid \overline{E})$ (you can use the fact that $P(M \cap \overline{E}) = P(M) - P(M \cap E)$).
Two fair cubic dice are rolled, one red and one blue. The score on the top face of each is recorded. Calculate the probability of the event $A =$ "The sum of the scores…
Two fair cubic dice are rolled, one red and one blue. The score on the top face of each is recorded. Calculate the probability of the event $A =$ "The sum of the scores is exactly $8$" or the event $B =$ "The absolute value of the difference between the scores is exactly $2$" occurring. Are $A$ and $B$ incompatible events?
In a veterinary clinic, $55\%$ of the dogs treated are vaccinated against rabies ($R$), $40\%$ are vaccinated against parvovirus ($P$) and $25\%$ are vaccinated against…
In a veterinary clinic, $55\%$ of the dogs treated are vaccinated against rabies ($R$), $40\%$ are vaccinated against parvovirus ($P$) and $25\%$ are vaccinated against both diseases. A dog's record is chosen at random. Calculate the probability that it:
- a) Is vaccinated against rabies but not against parvovirus, that is, $P(R - P)$.
- b) Is vaccinated against exactly one of the two diseases.
A research team consists of $12$ specialists: $7$ biologists and $5$ chemists. A representative committee of $3$ people must be selected at random to attend an…
A research team consists of $12$ specialists: $7$ biologists and $5$ chemists. A representative committee of $3$ people must be selected at random to attend an international conference. Using combinatorial techniques (combinations), calculate the probability that the committee consists exclusively of biologists.
The following game of chance structured in two phases is designed: in the first phase, a card is drawn from a $40$-card deck. If the drawn card is a picture card (jack,…
The following game of chance structured in two phases is designed: in the first phase, a card is drawn from a $40$-card deck. If the drawn card is a picture card (jack, knight, or king), in the second phase a $6$-sided cubic die is rolled. If the card is not a picture card, in the second phase a coin is tossed ($H$ or $T$).
Calculate the total number of possible outcomes that form the sample space of this compound experiment. If all elementary outcomes of each phase are equally likely in their respective subspace, is the final compound sample space equally likely? Reason your answer.
An opaque urn contains $4$ white balls and $6$ black balls. $2$ balls are to be drawn consecutively. a) Calculate the probability that both balls are white if the…
An opaque urn contains $4$ white balls and $6$ black balls. $2$ balls are to be drawn consecutively.
- a) Calculate the probability that both balls are white if the drawing is done with replacement (the first ball is returned to the urn before drawing the second).
- b) Calculate the probability that both balls are white if the drawing is done without replacement.
In a survey conducted among 5th Year students at a secondary school regarding their extracurricular activities, the events $D =$ "practices sports regularly" and $M =$…
In a survey conducted among 5th Year students at a secondary school regarding their extracurricular activities, the events $D =$ "practices sports regularly" and $M =$ "studies music or plays an instrument" are defined. It is known that $P(D) = 0.70$ and $P(M) = 0.45$.
- a) Before calculating anything, justify using the properties of probability whether it is possible for $D$ and $M$ to be mutually exclusive events. From this deduction, estimate the interval of possible values (minimum and maximum) within which the probability of the intersection, $P(D \cap M)$, must necessarily lie.
- b) After completing the survey, it is verified that the probability that a student neither practices sports nor studies music is exactly $0.10$. From this information and applying De Morgan's laws, calculate the exact value of $P(D \cap M)$ and that of $P(D - M)$.
- c) Check whether the value of $P(D \cap M)$ obtained in section b falls within the range you estimated in section a, and explain the meaning of the event $D - M$ in the context of the school.
Based on youth urban mobility data published by the National Transport Authority in Ireland, how students in a municipality commute is analyzed. The following events are…
Based on youth urban mobility data published by the National Transport Authority in Ireland, how students in a municipality commute is analyzed. The following events are considered:
$M =$ "regularly uses the metro",
$A =$ "regularly uses the city bus",
$B =$ "uses a personal bicycle or electric scooter".
The records show the following probabilities: $P(M) = 0.45$; $P(A) = 0.50$; $P(B) = 0.30$; $P(M \cap A) = 0.20$; $P(M \cap B) = 0.12$; $P(A \cap B) = 0.15$, and the probability of combining all three modes of transport is $P(M \cap A \cap B) = 0.05$.
- a) Model the situation by expressing the following events in set notation (using unions, intersections, or complements): $S_1 =$ "uses at least one of the three modes of transport", $S_2 =$ "uses none of these three modes of transport", and $S_3 =$ "uses exclusively the metro".
- b) Calculate the probability of $S_1$ by applying the general formula for the union of three events.
- c) Find the probability of $S_2$ and of $S_3$, detailing the intermediate steps.
On a digital entertainment platform with $500$ subscribers, preferences for three genres are analysed: Action ($A$), Comedy ($C$) and Drama ($D$). The data reveal that:…
On a digital entertainment platform with $500$ subscribers, preferences for three genres are analysed: Action ($A$), Comedy ($C$) and Drama ($D$). The data reveal that:
-
$220$ watch Action, $180$ watch Comedy, $150$ watch Drama.
-
$70$ watch Action and Comedy, $50$ watch Action and Drama, $40$ watch Comedy and Drama.
-
$15$ watch all three genres.
If a subscriber is chosen at random, find the probability that they:
- a) Watch Action movies exclusively.
- b) Watch exactly one of the three genres.
- c) Watch none of these three genres.
A database server generates temporary security keys of $6$ characters. Each character is chosen at random from a set consisting of the $26$ letters of the alphabet and…
A database server generates temporary security keys of $6$ characters. Each character is chosen at random from a set consisting of the $26$ letters of the alphabet and the $10$ numerical digits, without allowing any character to be repeated in the same key.
Using combinatorial concepts (permutations and combinations), determine the probability that a randomly generated key contains exactly $2$ letters and $4$ digits, regardless of the order in which they appear.
The symmetric difference of two events $A$ and $B$, denoted as $A \triangle B$, is defined as the event that $A$ or $B$ occurs, but not both simultaneously.…
The symmetric difference of two events $A$ and $B$, denoted as $A \triangle B$, is defined as the event that $A$ or $B$ occurs, but not both simultaneously. Algebraically, $A \triangle B = (A \cap \overline{B}) \cup (\overline{A} \cap B)$.
Prove the relation $P(A \triangle B) = P(A \cup B) - P(A \cap B)$. Next, knowing that $P(A \cup B) = 0.85$, $P(\overline{A}) = 0.3$ and $P(B) = 0.6$, calculate the numerical value of $P(A \triangle B)$.
A telecommunications antenna has a perfect circular coverage radius of $10\text{ km}$. The antenna is located exactly at the centre of a square region with a side length…
A telecommunications antenna has a perfect circular coverage radius of $10\text{ km}$. The antenna is located exactly at the centre of a square region with a side length of $20\text{ km}$ (so that the coverage circle is inscribed in the square).
If a signal from a mobile device is detected at a random point within the square region (following a uniform distribution), what is the probability that the device is inside the antenna's coverage area? Express the exact result in terms of $\pi$ and its approximation to two decimal places.
A biased cubic die has been manufactured such that the probability of each face landing face up is directly proportional to the number on that face. That is,…
A biased cubic die has been manufactured such that the probability of each face landing face up is directly proportional to the number on that face. That is, $P(x) = k \times x$ for $x \in \{1, 2, 3, 4, 5, 6\}$, where $k$ is a real constant.
- a) Calculate the exact value of the constant $k$ knowing that the sum of the probabilities of the sample space must be $1$.
- b) Calculate the probability of obtaining a prime number when rolling this biased die.
A robotics components box contains $n$ green LEDs and $5$ red LEDs. Two LEDs are drawn at random from the box without replacement. If it is known that the probability…
A robotics components box contains $n$ green LEDs and $5$ red LEDs. Two LEDs are drawn at random from the box without replacement. If it is known that the probability that both drawn LEDs are green is exactly $\frac{1}{6}$, set up a quadratic equation in terms of $n$ and solve it to determine how many green LEDs were initially in the box.
In an aerospace control system, three sensors $A$, $B$ and $C$ are arranged such that sensor $A$ is in series with a block formed by sensors $B$ and $C$ in parallel. The…
In an aerospace control system, three sensors $A$, $B$ and $C$ are arranged such that sensor $A$ is in series with a block formed by sensors $B$ and $C$ in parallel. The system works if the signal can pass through it from left to right.
The individual failure probabilities of each sensor are $P(F_A) = 0.1$, $P(F_B) = 0.2$ and $P(F_C) = 0.2$. Knowing that failures occur independently (that is, the probability of intersection is the product of probabilities: $P(X \cap Y) = P(X) \times P(Y)$), calculate the probability that the overall system functions correctly. (Note: the system functions if $A$ functions and, in addition, $B$ functions or $C$ functions).
In an environmental toxicology study in a river, three pollutants are monitored. Let $A$, $B$ and $C$ be the events of finding dangerous levels of the respective…
In an environmental toxicology study in a river, three pollutants are monitored. Let $A$, $B$ and $C$ be the events of finding dangerous levels of the respective pollutant. It is known that $P(A) = \frac{1}{2}$, $P(B) = \frac{1}{3}$ and $P(C) = \frac{1}{4}$.
Furthermore, it is known that pollutants $A$ and $B$ never appear together in dangerous levels (they are incompatible events), and that whenever pollutant $C$ is detected, pollutant $B$ is also detected (that is, $C$ is a subset of $B$, $C \subset B$).
Calculate the probability of finding neither pollutant $A$ nor pollutant $B$, that is, $P(\overline{A} \cap \overline{B})$, and the probability of finding at least one of the three pollutants, $P(A \cup B \cup C)$.
In a microchip manufacturing plant in Ireland, each component undergoes three automated quality control checks. The failure events are defined as: $F_1 =$ "fails the…
In a microchip manufacturing plant in Ireland, each component undergoes three automated quality control checks. The failure events are defined as: $F_1 =$ "fails the electrical test", $F_2 =$ "fails the thermal test", and $F_3 =$ "fails the optical test". Historical control data are: $P(F_1) = 0.08$; $P(F_2) = 0.06$; $P(F_3) = 0.05$; $P(F_1 \cap F_2) = 0.02$; $P(F_1 \cap F_3) = 0.015$; $P(F_2 \cap F_3) = 0.01$, and $P(F_1 \cap F_2 \cap F_3) = 0.003$.
The quality engineering team needs to determine the probability that a component successfully passes at least one of the three tests (that is, that it does not fail all of them simultaneously).
To calculate this probability, two technicians propose different approaches:
-
Cian's method: Expresses the event as $\overline{F_1} \cup \overline{F_2} \cup \overline{F_3}$ and proposes directly applying the formula for the union of three events: $P(\overline{F_1} \cup \overline{F_2} \cup \overline{F_3}) = P(\overline{F_1}) + P(\overline{F_2}) + P(\overline{F_3}) - P(\overline{F_1} \cap \overline{F_2}) - P(\overline{F_1} \cap \overline{F_3}) - P(\overline{F_2} \cap \overline{F_3}) + P(\overline{F_1} \cap \overline{F_2} \cap \overline{F_3})$.
-
Aoife's method: Applies De Morgan's laws generalized to three events to transform the union of complements into the complement of a direct intersection, calculating the result in a single step.
- a) Solve the problem using Aoife's method and calculate the final numerical value.
- b) Without needing to compute all the numbers in Cian's method, explain what operational difficulty it presents: how would Cian have to calculate probabilities such as $P(\overline{F_1} \cap \overline{F_2})$ or $P(\overline{F_1} \cap \overline{F_2} \cap \overline{F_3})$ from the given data?
- c) Compare both methods: justify which one is more efficient and explain why switching to the complement is a fundamental technique for simplifying probability problems.
A risk analysis laboratory evaluates three critical scenarios $A$, $B$, and $C$ in an infrastructure. The following information regarding their probabilities is…
A risk analysis laboratory evaluates three critical scenarios $A$, $B$, and $C$ in an infrastructure. The following information regarding their probabilities is available:
-
Events $A$ and $B$ are mutually exclusive ($A \cap B = \emptyset$).
-
Events $B$ and $C$ are mutually exclusive ($B \cap C = \emptyset$).
-
Events $A$ and $C$ are compatible, with $P(A \cap C) = 0.10$.
-
The individual probabilities depend on a parameter $p \in \mathbb{R}$: $P(A) = 2p$, $P(B) = 3p$, and $P(C) = 0.35$.
- a) Algebraically show how the general formula for the union of three events, $P(A \cup B \cup C)$, simplifies when substituting the given conditions of mutual exclusivity.
- b) It is known that the probability that none of the three risk scenarios occurs is exactly $0.15$. Set up an equation using De Morgan's laws and find the value of parameter $p$.
- c) With the value of $p$ obtained, analyze whether it is mathematically viable for a fourth risk scenario $D \subseteq E$ to exist that is completely mutually exclusive with $A \cup B \cup C$ and whose probability is $P(D) = 0.20$. If it is not possible, deduce with justification what the strict upper bound for $P(D)$ is and what set inclusion relationship exists between $D$ and the complement $\overline{A \cup B \cup C}$.