Given that ( X ) has the probability density function
[
f(x) = \begin{cases}
\frac{c}{x} & \text{for } 1 \leq x \leq n \
0 & \text{else}
\end{cases}
]
where ( n > 1 ) is a constant, let's answer the questions step-by-step.
(a) Determine the value of ( c ) for ( f(x) ) to be a valid probability density function
For ( f(x) ) to be a valid probability density function, the total area under the curve must be 1. Therefore, we need to compute the integral of ( f(x) ) over its support and set it equal to 1:
[
\int_{1}^{n} \frac{c}{x} , dx = 1
]
The integral of ( \frac{1}{x} ) is ( \ln|x| ):
[
c \int_{1}^{n} \frac{1}{x} , dx = c [\ln x]_{1}^{n} = c (\ln n - \ln 1)
]
Since ( \ln 1 = 0 ), this simplifies to:
[
c \ln n = 1 \implies c = \frac{1}{\ln n}
]
Thus, the value of ( c ) that makes ( f(x) ) a valid probability density function is:
[
c = \frac{1}{\ln n}
]
(b) Find the expected value ( E(X) ) and variance ( \text{Var}(X) ) of ( X )
Expected Value ( E(X) )
The expected value ( E(X) ) is given by:
[
E(X) = \int_{1}^{n} x f(x) , dx = \int_{1}^{n} x \cdot \frac{1}{\ln n} \cdot \frac{1}{x} , dx = \frac{1}{\ln n} \int_{1}^{n} 1 , dx = \frac{1}{\ln n} \left[ x \right]_{1}^{n}
]
[
E(X) = \frac{1}{\ln n} (n - 1)
]
Variance ( \text{Var}(X) )
The variance ( \text{Var}(X) ) is given by ( \text{Var}(X) = E(X^2) - (E(X))^2 ).
First, we find ( E(X^2) ):
[
E(X^2) = \int_{1}^{n} x^2 f(x) , dx = \int_{1}^{n} x^2 \cdot \frac{1}{\ln n} \cdot \frac{1}{x} , dx = \frac{1}{\ln n} \int_{1}^{n} x , dx = \frac{1}{\ln n} \left[ \frac{x^2}{2} \right]_{1}^{n}
]
[
E(X^2) = \frac{1}{\ln n} \left( \frac{n^2}{2} - \frac{1}{2} \right) = \frac{n^2 - 1}{2 \ln n}
]
Now, we use the values of ( E(X) ) and ( E(X^2) ) to find the variance:
[
\text{Var}(X) = E(X^2) - (E(X))^2 = \frac{n^2 - 1}{2 \ln n} - \left(\frac{n - 1}{\ln n}\right)^2
]
[
\text{Var}(X) = \frac{n^2 - 1}{2 \ln n} - \frac{(n-1)^2}{(\ln n)^2}
]
Combining these, we get the variance:
[
\text{Var}(X) = \frac{n^2 - 1}{2 \ln n} - \frac{(n-1)^2}{(\ln n)^2}
]
(c) Find the 50th percentile of ( X )
The 50th percentile (median) of ( X ) is the value ( x_p ) such that:
[
P(X \leq x_p) = 0.5
]
This corresponds to finding ( x_p ) such that the cumulative distribution function ( F(x_p) = 0.5 ). The CDF is obtained by integrating ( f(x) ):
[
F(x) = \int_{1}^{x} \frac{1}{\ln n} \cdot \frac{1}{x} , dx = \frac{\ln x - \ln 1}{\ln n} = \frac{\ln x}{\ln n}
]
Setting ( F(x_p) = 0.5 ):
[
\frac{\ln x_p}{\ln n} = 0.5
]
Solving for ( x_p ):
[
\ln x_p = 0.5 \ln n \implies x_p = e^{0.5 \ln n} \implies x_p = n^{0.5} \implies x_p = \sqrt{n}
]
Therefore, the value of the 50th percentile is:
[
x_p = \sqrt{n}
]