# Problems of Probability

## Exercise 1

Construct the sample space of the following random experiments:

- Pick a random person and record the gender and whether she or he is smoker or not.
- Pick a random person and record the blood type and whether she or he is smoker or not.
- Pick a random person and record the gender, the blood type and whether she or he is smoker or not.

## Exercise 2

There are two boxes with balls of different colors. The first box contains 3 white balls and 2 black balls, and the second one contains 2 blue balls, 1 red ball and 1 green ball. Construct the sample space of the following random experiments:

- Pick a random ball from every box.
- Pick two random balls from every box.

## Exercise 3

The Morgan’s laws state that given two events $A$ and $B$ from the same sample space, $\overline{A\cup B}=\bar A \cap \bar B$ and $\overline{A\cap B}=\bar A \cup \bar B$. Proof both statements graphically using Venn diagrams.

## Exercise 4

Compute the probability of the following events of the random experiment consisting in tossing 3 coins:

- Get exactly 1 head.
- Get exactly 2 tails.
- Get two or more heads.
- Get some tails.

- $P(\mbox{1 head})=0.375$.
- $P(\mbox{2 tails})=0.375$.
- $P(\mbox{2 or more heads})=0.5$.
- $P(\mbox{some tails})=0.875$.

## Exercise 5

In a laboratory there are 4 flasks with sulfuric acid and 2 with nitric acid, and in another laboratory there are 1 flask with sulfuric acid and 3 with nitric acid. A random experiment consist in picking two flask, one from every laboratory. Compute the probability of the following events:

- The two picked flasks are of sulfuric acid.
- The two picked flasks are of nitric acid.
- The two picked flasks contains different acids.

Compute again the above probabilities if the flask picked in the first laboratory is put in the second laboratory before picking the flask from it.

- $P(\mbox{Two flasks of sulfuric acid})=4/24$.
- $P(\mbox{Two flasks of nitric acid})=6/24$.
- $P(\mbox{One flask of each})=14/24$.

Putting the first flask in the second laboratory: - $P(\mbox{Two flasks of sulfuric acid})=8/30$.
- $P(\mbox{Two flasks of nitric acid})=8/30$.
- $P(\mbox{One flask of each})=14/30$.

## Exercise 6

Let $A$ and $B$ two be events of a same sample space, such that $P(A)=3/8$, $P(B)=1/2$, $P(A\cap B)=1/4$. Compute the following probabilities:

- $P(A\cup B)$.
- $P(\bar A)$ y $P(\bar B)$.
- $P(\bar A\cap \bar B)$.
- $P(A\cap \bar B)$.
- $P(A\vert B)$.
- $P(A\vert \bar B)$.

- $P(A\cup B)=5/8$.
- $P(\bar A)=5/8$ and $P(\bar B)=1/2$.
- $P(\bar A\cap \bar B)=3/8$.
- $P(A\cap \bar B)=1/8$.
- $P(A\vert B)=1/2$.
- $P(A\vert \bar B)=1/4$.

## Exercise 7

In a hospital the probability of getting hepatitis in a blood transfusion from a unit of blood is $0.01$. A patient gets two units of blood while staying at the hospital. What is the probability of getting hepatitis?

## Exercise 8

Let $A$ and $B$ be two events of a same sample space, such that $P(A)=0.6$ and $P(A\cup B)=0.9.$ Compute $P(B)$ under the following assumptions:

- $A$ and $B$ are incompatible.
- $A$ and $B$ are independent.

- $P(B)=0.3$.
- $P(B)=0.75$.

## Exercise 9

A study about smoking has found that 40% of smokers have a smoker father, 25% have a smoker mother and 52% have al least one of the parents smoker. We pick a random person from this population. Answer the following questions:

- What is the probability of having a smoker mother if the father smokes?
- What is the probability of having a smoker mother if the father does not smoke?
- Are independent the events having a smoker father and having a smoker mother?

Naming $SF$ tho the event of having a smoker father and $SM$ to the event of having a smoker mother,

- $P(SM/SF)=0.325$.
- $P(SM/\bar SF)=0.2$.
- The events aren’t independent.

## Exercise 10

The probability that an injury $A$ is repeated is $4/5$, the probability that another injury $B$ is repeated is $1/2$, and the probability that both injuries are repeated is $1/3$. Compute the probability of the following events:

- Only injury $B$ is repeated.
- At least one injury is repeated.
- Injury $B$ is repeated if injury $A$ has been repeated.
- Injury $B$ is repeated if injury $A$ has not been repeated.

- $P(B\cap\overline A)=1/6$.
- $P(A\cup B)=29/30$.
- $P(B\vert A)=5/12$.
- $P(B\vert \overline A)=5/6$.

## Exercise 11

In a digestive clinic, from every 1000 patients that arrive with stomach pain, 700 have gastritis, 200 have an ulcer and 100 have cancer. After analyzing the gastric symptoms, it is known that the probability of vomiting is $0.3$ in case of gastritis, $0.6$ in case of ulcer and $0.9$ in case of cancer. What is the diagnosis for a new patient with stomach pain that suffers from vomiting?

Note: Assume that the only diseases are gastritis, ulcer and cancer and that are incompatible among them.

## Exercise 12

A severe pain without effusion in a particular zone of the knee joint is a symptom of sprained lateral collateral ligament (SLCL). If the sprains in that ligament are classified into grade 1, when there is only distension (60% of cases), grade 2 when there is a partial tearing (30% of cases) and grade 3 when there is a complete tearing (10% of cases). Taking into account that the symptom appears in 80% of cases of grade 1 sprains, 90% of cases of grade 2 and 100% of cases of grade 3, answer the following questions:

- If a person has SLCL what is the probability that he or she present severe pain without effusion?
- What is the diagnosis for a person with severe pain without effusion?
- From a total of 10000 people with severe pain without effusion, how many are expected to have a grade 1 sprain? How many are expected to have a grade 2 sprain? And a grade 3 sprain?

Naming $S$ to the event of presenting severe pain without effusion, and $G1$, $G2$ and $G3$ to the events of having a SLCL of grade 1, 2 and 3 respectively,

- $P(S)=0.85$.
- $P(G1\vert S)=0.5647$, $P(G2\vert S)=0.3176$ and $P(G3\vert S)=0.1176$, so the diagnosis is a SLCL of grade 1.
- $5647.0588$ will have a grade 1 sprain, $3176.4706$ will have a grade 2 sprain and $1176.4706$ will have a grade 3 sprain.

## Exercise 13

A physiotherapist uses two techniques $A$ and $B$ to cure an injury. It is known that the injury is 3 times more frequent in people over 30 than in people under 30. It is also known that in people over 30 technique $A$ works in 30% of cases and technique $B$ in 60%, while in people under 30 technique $A$ works in 50% of cases and technique $B$ in 70%. If both techniques are applied with the same probability, no matter the age,

- What is the probability that a random person under 30 is cured? And for a people over 30?
- What is the probability that a random person is cured?
- If after applying a technique to a person over 30, the person does not cure, what is the probability that the technique applied was $A$?

$P(C\vert J)=0.45.$ and $P(C\vert \bar J)=0.6$.

$P(C)=0.5625$.

$P(A/\bar J\cap \bar C)=0.625$.