All Exams Test series for 1 year @ ₹349 only
Question

Let $X$ be a random variable having 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}$
Then, the value of the expectation of $X, E[X]$ (rounded off up to two decimal places) is __________

Calculating Expectation E[X] for Piecewise PDF

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.

Step 1: Integrate Over \( 0 < x < 1 \)

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)} $

Step 2: Integrate Over \( 1 < x < 2 \)

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} $

Step 3: Calculate Total Expectation

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.

Was this answer helpful?

Important Questions from Continuous Distributions

  1. Suppose a random variable $Z$ follows $Normal(\mu = 0, \sigma^2 = 1)$ distribution with probability density function $g(z)$ and cumulative distribution function $G(z)$.
    Another random variable $Y$ follows $t_1$ distribution with probability density function $h(y)$ and cumulative distribution function $H(y)$. Let $c$ be the positive real number for which $g(c) = h(c)$.

    Which of the following statements is/are correct?
  2. Consider a continuous random variable $X$ which follows a normal distribution. A sample of size $n = 25$ is drawn from the distribution of $X$. Sample mean is 5. Sample standard deviation is 1.5. The probability of $P[X = 5]$ is _____ (Rounded off to two decimal places).
  3. A $\chi^2$ distribution with 10 degrees of freedom has variance
  4. 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 _________

  5. Let $X$ be a random variable uniformly distributed in the interval $[1, 3]$ and $Y$ be a random variable uniformly distributed in the interval $[2, 4]$. If $X$ and $Y$ are independent of each other, the probability $P(X \ge Y)$ is ________ (rounded off to three decimal places).
Need Expert Advice?

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App