Let $C$ be the event that a randomly chosen person has lung cancer. Let $S$ be the event of a person being a smoker.
Suppose that 10% of the population has lung cancer and 20% of the population are smokers. Also, suppose that we know that 70% of all people who have lung cancer are smokers.

Then determine the probability of a person having lung cancer given that the person is a smoker.

Let $P(E \mid F)$ be the probability that $E$ occurs given $F$ occurs. This is called a conditional probability of $E$ given $F$.

Suppose that we know $P(E), P(F)$ and $P(E \mid F)$. Then $P(F \mid E)$ can be computed by Bayes’ theorem (alternatively Bayes’ rule):
\[ P(E \mid F) = \frac{P(E) \cdot P(F \mid E)}{P(F)}.\]

Solution

Given information can be formulated as
\[P(C) = 0.1, P(S) = 0.2, \text{ and } P(S \mid C) = 0.7.\]

The required probability is $P(C \mid S)$. Using Bayes’ rule, we can compute it as follows.
\begin{align*}
P(C \mid S) &= \frac{P(C) \cdot P(S \mid C)}{P(S)}\\[6pt]
&= \frac{(0.1)(0.7)}{0.2}\\[6pt]
&= 0.35
\end{align*}

Remark

The data given here is artificial for educational purpose and is not based on a scientific fact.

Independent Events of Playing Cards
A card is chosen randomly from a deck of the standard 52 playing cards.
Let $E$ be the event that the selected card is a king and let $F$ be the event that it is a heart.
Prove or disprove that the events $E$ and $F$ are independent.
Definition of Independence
Events […]

Jewelry Company Quality Test Failure Probability
A jewelry company requires for its products to pass three tests before they are sold at stores. For gold rings, 90 % passes the first test, 85 % passes the second test, and 80 % passes the third test. If a product fails any test, the product is thrown away and it will not take the […]

What is the Probability that All Coins Land Heads When Four Coins are Tossed If…?
Four fair coins are tossed.
(1) What is the probability that all coins land heads?
(2) What is the probability that all coins land heads if the first coin is heads?
(3) What is the probability that all coins land heads if at least one coin lands […]

Pick Two Balls from a Box, What is the Probability Both are Red?
There are three blue balls and two red balls in a box.
When we randomly pick two balls out of the box without replacement, what is the probability that both of the balls are red?
Solution.
Let $R_1$ be the event that the first ball is red and $R_2$ be the event that the […]

Complement of Independent Events are Independent
Let $E$ and $F$ be independent events. Let $F^c$ be the complement of $F$.
Prove that $E$ and $F^c$ are independent as well.
Solution.
Note that $E\cap F$ and $E \cap F^c$ are disjoint and $E = (E \cap F) \cup (E \cap F^c)$. It follows that
\[P(E) = P(E \cap F) + P(E […]

Overall Fraction of Defective Smartphones of Three Factories
A certain model of smartphone is manufactured by three factories A, B, and C. Factories A, B, and C produce $60\%$, $25\%$, and $15\%$ of the smartphones, respectively.
Suppose that their defective rates are $5\%$, $2\%$, and $7\%$, respectively. Determine the overall fraction of […]

Independent and Dependent Events of Three Coins Tossing
Suppose that three fair coins are tossed. Let $H_1$ be the event that the first coin lands heads and let $H_2$ be the event that the second coin lands heads. Also, let $E$ be the event that exactly two coins lands heads in a row.
For each pair of these events, determine whether […]

Conditional Probability Problems about Die Rolling
A fair six-sided die is rolled.
(1) What is the conditional probability that the die lands on a prime number given the die lands on an odd number?
(2) What is the conditional probability that the die lands on 1 given the die lands on a prime number?
Solution.
Let $E$ […]