The probability of getting the first head on the \( k \)-th toss is given by:
\[ P(\text{first head on toss } k) = (1-p)^{k-1} \cdot p \]
This is because the first \( k-1 \) tosses must be tails (probability \( 1-p \)) and the \( k \)-th toss must be heads (probability \( p \)).
Step 2: We are asked to find the probability that the number of tosses required is even. The event that the number of tosses required is even corresponds to the sum of probabilities for \( k = 2, 4, 6, \ldots \), i.e., the tosses are even.
Step 3: The total probability of getting the first head on an even toss is:
\[ P(\text{even toss}) = (1-p)p + (1-p)^3p + (1-p)^5p + \cdots \]
This is an infinite series where the first term is \( (1-p)p \), and the common ratio between successive terms is \( (1-p)^2 \).
Step 4: The sum of this infinite geometric series is given by:
\[ P(\text{even toss}) = \frac{(1-p)p}{1 - (1-p)^2} \]
Simplifying the denominator:
\[ 1 - (1-p)^2 = 1 - \left(1 - 2p + p^2\right) = 2p - p^2 \]
Thus, the probability of an even toss is:
\[ P(\text{even toss}) = \frac{(1-p)p}{2p - p^2} \]
Step 5: We are told that \( P(\text{even toss}) = \frac{2}{5} \). Therefore, we set the above expression equal to \( \frac{2}{5} \):
\[ \frac{(1-p)p}{2p - p^2} = \frac{2}{5} \]
Step 6: Cross-multiply and simplify:
\[ 5(1-p)p = 2(2p - p^2) \] \[ 5p - 5p^2 = 4p - 2p^2 \] \[ 5p - 4p = 5p^2 - 2p^2 \] \[ p = 3p^2 \] \[ 3p^2 - p = 0 \] \[ p(3p-1) = 0 \]
Step 7: Solving for \( p \), we get \( p = 0 \) or \( p = \frac{1}{3} \). Since \( p = 0 \) is not a valid probability, we conclude that:
\[ p = \frac{1}{3} \]
Based upon the results of regular medical check-ups in a hospital, it was found that out of 1000 people, 700 were very healthy, 200 maintained average health and 100 had a poor health record.
Let \( A_1 \): People with good health,
\( A_2 \): People with average health,
and \( A_3 \): People with poor health.
During a pandemic, the data expressed that the chances of people contracting the disease from category \( A_1, A_2 \) and \( A_3 \) are 25%, 35% and 50%, respectively.
Based upon the above information, answer the following questions:
(i) A person was tested randomly. What is the probability that he/she has contracted the disease?}
(ii) Given that the person has not contracted the disease, what is the probability that the person is from category \( A_2 \)?