Given the probability density function (pdf) of a continuous random variable \(X\):
\[ f(x) = \begin{cases} x^3, & 0 \leq x \leq 1 \\ (2 - x)^3, & 1 \leq x \leq 2 \\ \frac{1}{2}, & 2 \leq x \leq 3 \\ 0, & \text{otherwise} \end{cases} \]
Step 1: Verify that \( f(x) \) is a valid pdf
We should confirm \(\int_{-\infty}^\infty f(x) dx = 1\). Given piecewise nature:
\[ \int_0^1 x^3 dx + \int_1^2 (2 - x)^3 dx + \int_2^3 \frac{1}{2} dx = 1 \]
Check if true:
Total:
\[ \frac{1}{4} + \frac{1}{4} + \frac{1}{2} = 1 \]
So \( f(x) \) is a valid pdf.
Step 2: Find the mean \( \mu = E[X] = \int x f(x) dx \)
Calculate piecewise:
\[ E[X] = \int_0^1 x \cdot x^3 dx + \int_1^2 x \cdot (2 - x)^3 dx + \int_2^3 x \cdot \frac{1}{2} dx \]
Calculate each integral:
Step 3: Add the results
\[ E[X] = \frac{1}{5} + \frac{3}{10} + \frac{5}{4} = \frac{2}{10} + \frac{3}{10} + \frac{12.5}{10} = \frac{17.5}{10} = \frac{35}{20} = \frac{7}{4} \]
Answer: The mean of the random variable is \(\boxed{\frac{7}{4}}\).
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 \)?