$f_X(x) = \begin{cases} \frac{e}{2(e - 1)}e^{-x}, & 0 < x < 1, \\ \frac{1}{2}, & 1 < x < 2, \\ 0, & \text{elsewhere}. \end{cases}$
Then, the value of the expectation of $X, E[X]$ (rounded off up to two decimal places) is __________
The expectation of a continuous random variable \(X\) is defined as \( E[X] = \int_{-\infty}^{\infty} x f_X(x) dx \). Given the probability density function (pdf):
$ f_X(x) = \begin{cases} \frac{e}{2(e - 1)}e^{-x}, & 0 < x < 1, \\ \frac{1}{2}, & 1 < x < 2, \\ 0, & \text{elsewhere}. \end{cases} $
We compute the expectation by integrating over the defined intervals where the pdf is non-zero.
The contribution from the first interval ($0 < x < 1$) is:
$ I_1 = \int_{0}^{1} x \cdot \frac{e}{2(e - 1)}e^{-x} dx $
Factor out the constant:
$ I_1 = \frac{e}{2(e - 1)} \int_{0}^{1} x e^{-x} dx $
Using integration by parts (\( \int u \, dv = uv - \int v \, du \)) with \( u=x \) and \( dv=e^{-x}dx \), we get \( du=dx \) and \( v=-e^{-x} \). The integral of \( x e^{-x} \) is \( -x e^{-x} - e^{-x} \).
Evaluate the definite integral:
$ \int_{0}^{1} x e^{-x} dx = [-x e^{-x} - e^{-x}]_{0}^{1} = \left[ -(x+1)e^{-x} \right]_{0}^{1} $
$ = \left( -(1+1)e^{-1} \right) - \left( -(0+1)e^{0} \right) = -2e^{-1} - (-1) = 1 - \frac{2}{e} $
Substitute this back into \( I_1 \):
$ I_1 = \frac{e}{2(e - 1)} \left( 1 - \frac{2}{e} \right) = \frac{e}{2(e - 1)} \left( \frac{e - 2}{e} \right) = \frac{e - 2}{2(e - 1)} $
The contribution from the second interval ($1 < x < 2$) is:
$ I_2 = \int_{1}^{2} x \cdot \frac{1}{2} dx $
$ I_2 = \frac{1}{2} \left[ \frac{x^2}{2} \right]_{1}^{2} $
$ = \frac{1}{2} \left( \frac{2^2}{2} - \frac{1^2}{2} \right) = \frac{1}{2} \left( \frac{4}{2} - \frac{1}{2} \right) = \frac{1}{2} \left( \frac{3}{2} \right) = \frac{3}{4} $
The total expectation is the sum of \( I_1 \) and \( I_2 \):
$ E[X] = I_1 + I_2 = \frac{e - 2}{2(e - 1)} + \frac{3}{4} $
Using the approximation \( e \approx 2.718 \):
$ E[X] \approx \frac{2.718 - 2}{2(2.718 - 1)} + \frac{3}{4} $
$ E[X] \approx \frac{0.718}{2(1.718)} + 0.75 \approx \frac{0.718}{3.436} + 0.75 $
$ E[X] \approx 0.20896 + 0.75 \approx 0.95896 $
Rounding to two decimal places, \( E[X] \approx 0.96 \). This value lies between 0.9 and 1.1.
Rock bolts have length $L = (150+X)$ cm, where X is a random variable with probability density function
$f(x) = \begin{cases} \frac{1}{4}(1-3x), & \text{if } -2 \le x \le 2 \\ 0, & \text{otherwise} \end{cases}$
If 95% of the bolt lengths (L) lie in the interval 150-c cm to 150+ ccm, the value of c is _________