Exercises: Combinatorics
A 2nd-year Bachillerato student wants to set up a $4$-digit access code with different digits for their gym locker. They decide to use only the odd digits…
A 2nd-year Bachillerato student wants to set up a $4$-digit access code with different digits for their gym locker. They decide to use only the odd digits $\{1, 3, 5, 7, 9\}$ and cannot repeat any digit.
- a) How many different codes can they create?
- b) If the student forgets the code but remembers that the first digit was a $7$, how many different codes would they have to try at most?
In a robotics championship, a team must select $3$ representatives from a group of $8$ students to present the project to the panel of judges. a) In how many different…
In a robotics championship, a team must select $3$ representatives from a group of $8$ students to present the project to the panel of judges.
- a) In how many different ways can the group of representatives be chosen if the selection order does not matter?
- b) If among the $8$ students there are $2$ who specialise in programming and it is decided that at least one of them must be in the group, how many different selections are possible?
Let $A$ and $B$ be two events associated with a random experiment such that $P(A) = 0.6$, $P(B) = 0.4$ and $P(A \cap B) = 0.2$. Calculate the following probabilities: a)…
Let $A$ and $B$ be two events associated with a random experiment such that $P(A) = 0.6$, $P(B) = 0.4$ and $P(A \cap B) = 0.2$. Calculate the following probabilities:
- a) $P(A \cup B)$
- b) $P(\bar{A} \cap \bar{B})$ (probability that neither $A$ nor $B$ occurs).
- c) $P(A - B)$ (probability that $A$ occurs but $B$ does not occur).
The Venn diagram shows the events $A$ and $B$ within the sample space $E$, with the probability of the intersection.
In a study on the use of mobile devices in a class of $30$ students, the following contingency table was obtained, classifying students by their preferred operating…
In a study on the use of mobile devices in a class of $30$ students, the following contingency table was obtained, classifying students by their preferred operating system and whether they regularly shop online:
| Online Purchases ($S$) | No Purchases ($N$) | TOTAL | |
|---|---|---|---|
| Android ($A$) | $12$ | $6$ | $18$ |
| iOS ($I$) | $8$ | $4$ | $12$ |
| TOTAL | $20$ | $10$ | $30$ |
If a student is chosen at random, calculate:
- a) The probability that they use iOS.
- b) The probability that they make online purchases given that they use Android.
- c) Are the events "Using Android" and "Making online purchases" independent? Justify your answer.
A video game server has two connection nodes: Node 1, which serves $70\%$ of the users, and Node 2, which serves the rest. It is known that $5\%$ of the connections on…
A video game server has two connection nodes: Node 1, which serves $70\%$ of the users, and Node 2, which serves the rest. It is known that $5\%$ of the connections on Node 1 suffer lag, while on Node 2 this problem occurs in $10\%$ of the connections.
- a) Represent the situation using a probability tree diagram.
- b) If a player joins the server at random, what is the probability that their connection suffers lag?
In an electronics factory, the probability that a microchip is defective is $0.02$. If the microchips are packed in boxes of $10$ units and the presence of defects in…
In an electronics factory, the probability that a microchip is defective is $0.02$. If the microchips are packed in boxes of $10$ units and the presence of defects in one is independent of the others:
- a) What is the probability that there are no defective microchips in a box?
- b) What is the probability that there is exactly one defective microchip in the box? (Express the result using binomial coefficients).
Three phone operators, $M_1$, $M_2$ and $M_3$, handle $40\%$, $35\%$ and $25\%$ of customer service call center calls, respectively. The percentage of calls that drop…
Three phone operators, $M_1$, $M_2$ and $M_3$, handle $40\%$, $35\%$ and $25\%$ of customer service call center calls, respectively. The percentage of calls that drop unexpectedly for each operator is $2\%$, $3\%$ and $4\%$, respectively.
A call is chosen at random and turns out to have dropped. Calculate the probability that it was handled by operator $M_1$.
Use the properties of binomial coefficients and the Binomial Theorem to solve: a) Fully expand the expression $(x + 2)^4$. b) Without expanding the whole binomial,…
Use the properties of binomial coefficients and the Binomial Theorem to solve:
- a) Fully expand the expression $(x + 2)^4$.
- b) Without expanding the whole binomial, calculate the value of the coefficient of the term containing $x^3$ in the expansion of $(x + 3)^5$.
The figure shows the rows of Pascal's triangle up to $n = 5$. Its numbers are the binomial coefficients $\binom{n}{k}$: remember that the coefficient of a term of the binomial, besides that number, also includes the powers of the second term.
A streaming platform is designing a new custom interface. For the user profile, an avatar can be chosen by combining the following elements: 4 different face shapes, 5…
A streaming platform is designing a new custom interface. For the user profile, an avatar can be chosen by combining the following elements: 4 different face shapes, 5 types of hairstyle and 3 styles of glasses. In addition, the username must be a 5-character string consisting of 3 lower-case letters (from a 26-letter alphabet) followed by 2 digits.
- a) How many different avatars can be created?
- b) How many distinct usernames can be generated if neither letters nor digits can be repeated?
- c) If a user decides to choose their avatar and username at random (under the conditions of part b), what is the probability that their name starts with the letter "z" and ends with the digit "9"?
In a robotics competition, teams must pass two independent tests. It is known that the probability of a robot passing the speed test is $P(V) = 0.75$ and the probability…
In a robotics competition, teams must pass two independent tests. It is known that the probability of a robot passing the speed test is $P(V) = 0.75$ and the probability of passing the accuracy test is $P(P) = 0.60$. Calculate the probability that a randomly chosen team:
- a) Passes at least one of the two tests.
- b) Passes the speed test but not the accuracy test.
- c) Given that it has passed at least one test, what is the probability that it has passed both?
A cybersecurity system uses two filters to detect phishing emails. Filter A detects $92\%$ of these emails, whilst Filter B detects $88\%$. Due to the structure of the…
A cybersecurity system uses two filters to detect phishing emails. Filter A detects $92\%$ of these emails, whilst Filter B detects $88\%$. Due to the structure of the system, an email is analysed by Filter B only if it has not been detected by Filter A. If an email is not detected by either filter, it reaches the user's inbox. It is estimated that $3\%$ of the emails received in the company are phishing attempts.
- a) What is the probability that a phishing email reaches the inbox?
- b) If an email has reached the inbox, what is the probability that it is actually a phishing email?
A 3D printing electronics manufacturing company has observed that the probability of a part having a finishing defect is $5\%$. If a batch of 12 parts is printed: a)…
A 3D printing electronics manufacturing company has observed that the probability of a part having a finishing defect is $5\%$. If a batch of 12 parts is printed:
- a) What is the probability that exactly 2 parts are defective?
- b) What is the probability that there is more than one defective part?
- c) Calculate the mean and standard deviation of the number of defective parts in the batch.
The range of a new fleet of electric scooters for urban use follows a normal distribution with mean $35$ km and standard deviation $4$ km. a) Calculate the probability…
The range of a new fleet of electric scooters for urban use follows a normal distribution with mean $35$ km and standard deviation $4$ km.
- a) Calculate the probability that an e-scooter chosen at random has a range greater than $40$ km.
- b) What percentage of e-scooters will have a range between $30$ and $38$ km?
- c) If the company wants to ensure that $90\%$ of its e-scooters exceed a certain minimum range $d$, what must be the value of $d$?
A survey of 250 students at a technology center was carried out regarding their use of operating systems. The results are shown in the following contingency table: | |…
A survey of 250 students at a technology center was carried out regarding their use of operating systems. The results are shown in the following contingency table:
| Intermediate Vocational | Higher Vocational | Total | |
|---|---|---|---|
| Mainly uses Windows | 85 | 65 | 150 |
| Mainly uses Linux | 40 | 60 | 100 |
| Total | 125 | 125 | 250 |
If a student is chosen at random, calculate:
- a) The probability that they are a Higher Vocational student and mainly use Linux.
- b) Given that the student mainly uses Windows, what is the probability that they are an Intermediate Vocational student?
- c) Are the events "being a Higher Vocational student" and "mainly using Linux" independent? Justify your answer.
It is known that $15\%$ of users visiting a computer components retail website end up making a purchase. If on a given day the website receives 400 independent visits:…
It is known that $15\%$ of users visiting a computer components retail website end up making a purchase. If on a given day the website receives 400 independent visits:
- a) State which probability distribution the variable "number of purchases made" follows and justify whether it can be approximated by a normal distribution.
- b) Using the appropriate approximation, calculate the probability that between 50 and 70 purchases are made (inclusive).
A laboratory has 8 precision temperature sensors and 6 humidity sensors. For an environmental control experiment, 4 sensors must be selected at random. a) In how many…
A laboratory has 8 precision temperature sensors and 6 humidity sensors. For an environmental control experiment, 4 sensors must be selected at random.
- a) In how many different ways can the selection of 4 sensors be made if order does not matter?
- b) What is the probability that exactly 2 temperature sensors and 2 humidity sensors are selected?
- c) What is the probability that all selected sensors are of the same type?
A cybersecurity team is analysing the vulnerability of an access system that uses passwords of $8$ characters. The allowed characters are the $26$ letters of the…
A cybersecurity team is analysing the vulnerability of an access system that uses passwords of $8$ characters. The allowed characters are the $26$ letters of the alphabet (case-insensitive) and the digits from $0$ to $9$. A password is considered "strong" if it meets the following conditions:
-
It contains exactly $2$ distinct numbers and $6$ letters.
-
The letters cannot be repeated.
-
The two numbers must be in consecutive positions.
Calculate:
- a) The total number of strong passwords that can be generated.
- b) If brute-force software generates a random password following only the structure of $8$ characters (letters or numbers), what is the probability that it guesses a specific strong password on the first attempt?
In the expansion of a new binomial, an engineering student needs to determine certain coefficients. Consider the binomial expansion of…
In the expansion of a new binomial, an engineering student needs to determine certain coefficients. Consider the binomial expansion of $Q(x) = \left( \dfrac{x^2}{2} - \dfrac{k}{x} \right)^{12}$, where $k$ is a positive real number.
- a) Determine the value of $k$ knowing that the term independent of $x$ in the expansion of $Q(x)$ is equal to $7920$.
- b) Having found $k$, calculate the coefficient of the term containing $x^9$.
A streaming platform uses a recommendation algorithm to predict whether a user will like a new series. The algorithm sometimes fails: $10\%$ of the series that a user…
A streaming platform uses a recommendation algorithm to predict whether a user will like a new series. The algorithm sometimes fails: $10\%$ of the series that a user would love are not recommended ($FN$: false negative), and $20\%$ of the series that a user would dislike are mistakenly recommended ($FP$: false positive).
If $60\%$ of all series in the catalog are potentially to the taste of a specific user, calculate:
- a) The probability that the algorithm recommends a randomly chosen series.
- b) If the algorithm has just recommended a series to this user, what is the probability that it is indeed a series they like?
A courier company uses drones to deliver packages in a city. The probability of a drone suffering a technical breakdown during a delivery flight is $0.02$. The company…
A courier company uses drones to deliver packages in a city. The probability of a drone suffering a technical breakdown during a delivery flight is $0.02$. The company makes $250$ daily deliveries independently.
- a) Justify whether the variable "number of daily breakdowns" can be approximated by a normal distribution. If so, state its parameters.
- b) Using the appropriate approximation, calculate the probability that on a given day exactly $5$ breakdowns occur.
- c) Calculate the probability that between $3$ and $8$ breakdowns occur (inclusive).
In a genetics laboratory, the resistance of a plant to a pest is studied. It is known that the probability of a plant being resistant is $p$. $8$ plants are chosen at…
In a genetics laboratory, the resistance of a plant to a pest is studied. It is known that the probability of a plant being resistant is $p$. $8$ plants are chosen at random and it is observed that the probability that exactly $2$ are resistant is equal to the probability that exactly $3$ are resistant.
- a) Calculate the value of the probability $p$.
- b) With the value of $p$ found, calculate the probability that at least one plant is resistant.
- c) Determine the expectation and standard deviation of the number of resistant plants in a sample of $100$ plants.
The weight of coffee packets produced by a factory follows a normal distribution $N(\mu, \sigma)$. It has been observed that $15.87\%$ of the packets weigh more than…
The weight of coffee packets produced by a factory follows a normal distribution $N(\mu, \sigma)$. It has been observed that $15.87\%$ of the packets weigh more than $510$ grams, and that $2.28\%$ of the packets weigh less than $480$ grams.
- a) Calculate the mean $\mu$ and standard deviation $\sigma$ of the distribution. (Recall that for a $Z \sim N(0,1)$, $P(Z < 1) \approx 0.8413$ and $P(Z < 2) \approx 0.9772$).
- b) If the net weight indicated on the label is $500$ grams, what percentage of the packets is below the legal weight?
A competitive examination consists of $80$ topics. The candidate studies $55$ topics chosen at random. The examination board draws $3$ topics by lottery and the…
A competitive examination consists of $80$ topics. The candidate studies $55$ topics chosen at random. The examination board draws $3$ topics by lottery and the candidate must choose one to write on.
- a) What is the probability that the candidate does not know any of the three drawn topics?
- b) What is the probability that they know exactly two of the topics?
- c) If the candidate passed the examination (which implies they knew at least one of the topics), what is the probability that they knew all three drawn topics?
An electronic components factory has three production lines: $L_1$, $L_2$ and $L_3$. Line $L_1$ produces twice as much as $L_2$, and $L_3$ produces the same amount as…
An electronic components factory has three production lines: $L_1$, $L_2$ and $L_3$. Line $L_1$ produces twice as much as $L_2$, and $L_3$ produces the same amount as $L_1$ and $L_2$ combined. The percentage of defective components is $1\%$ in $L_1$, $3\%$ in $L_2$ and $2\%$ in $L_3$.
- a) Calculate the probability that a component chosen at random from the total production is defective.
- b) If we select a component and it turns out to be defective, what is the probability that it comes from line $L_3$?
- c) If $10$ components from line $L_1$ are analysed independently, what is the probability that at least one of them is defective?