23  Expected Values for Continuous Random Variables

Example 23.1 Continuing Example 22.1. Han’s arrival time \(X\) (minutes after noon) has pdf \[ f_X(x) = \begin{cases} (2/3600)x, & 0<x<60,\\ 0 & \text{otherwise.} \end{cases} \]

  1. Explain how you could use simulation to approximate \(\text{E}(X)\).




  2. Explain how you could approximate \(\text{E}(X)\) as a sum (as if \(X\) were a discrete random variable).




  3. How could you obtain a better approximation than the sum in the previous part? What happens in the limit?




  4. Compute and interpret \(\text{E}(X)\).




  5. Compute and interpret \(\text{P}(X \le \text{E}(X))\).




Example 23.2 Continuing Example 22.3. Let \(X\) be the times (minutes) until the next earthquake occurs (of any magnitude in a certain region). Assume that the pdf of \(X\) is \[ f_X(x) = (1/120) e^{-x/120}, \qquad x \ge0 \]

  1. Explain how you could use simulation to approximate \(\text{E}(X)\).




  2. Donny Dont says \(\text{E}(X) = \int_0^\infty (1/120)e^{-x/120}dx = 1\). Do you agree?




  3. Compute and interpret \(\text{E}(X)\).




  4. Compute and interpret \(\text{P}(X \le \text{E}(X))\).




Example 23.3 Continuing Example 23.1. Han’s arrival time \(X\) (minutes after noon) has pdf \[ f_X(x) = \begin{cases} (2/3600)x, & 0<x<60,\\ 0 & \text{otherwise.} \end{cases} \]

  1. Explain how you could use simulation to approximate \(\text{E}(X^2)\).




  2. Explain how you could approximate \(\text{E}(X^2)\) as a sum (like a discrete random variable).




  3. How could you obtain a better approximation than the sum in the previous part? What happens in the limit?




  4. Compute \(\text{E}(X^2)\).




  5. Compute \(\text{Var}(X)\).




  6. Compute \(\text{SD}(X)\).



     

Example 23.4 Continuing Example 23.2. Let \(X\) be the times (minutes) until the next earthquake occurs (of any magnitude in a certain region). Assume that the pdf of \(X\) is \[ f_X(x) = (1/120) e^{-x/120}, \qquad x \ge0 \]

  1. Explain how you could use simulation to approximate \(\text{E}(X^2)\).




  2. Donny Dont says: “I can just use LOTUS and replace \(x\) with \(x^2\), so \(\text{E}(X^2)\) is \(\int_{-\infty}^{\infty} (1/120)x^2 e^{-x^2/120} dx\)”. Do you agree?




  3. Compute \(\text{E}(X^2)\).




  4. Compute \(\text{Var}(X)\).



     
  5. Compute \(\text{SD}(X)\).