12  Continuous Random Variables

Example 12.1 Suppose that in your office everyone arrives to work between 8am and 9am. Randomly select an employee and let \(X\) be employee’s arrival time measured in minutes after 8am, including fractions of a minute, so that \(X\) takes a value in the continuous interval [0, 60].

Data on many randomly selected employees suggests that the distribution of \(X\) is described by this probability density function (pdf), where \(c\) is a constant that we’ll determine soon.

\[ f_X(x) = \begin{cases} c x, & 0<x<60\\ 0, & \text{otherwise.} \end{cases} \]

  1. Sketch a plot of the pdf. Roughly, what does this say about arival times?




  2. Find the value of \(c\) and specify the pdf of \(X\).




  3. Compute and interpret \(\text{P}(X<15)\).



     
  4. Compute and interpret \(\text{P}(X>45)\).




Example 12.2 Continuing Example 12.1, recall that \(X\) has pdf

\[ f_X(x) = \begin{cases} (2/3600)x, & 0\le x \le 60,\\ 0, & \text{otherwise.} \end{cases} \]

  1. Consider the probability that an employee arrives within 1 minute after 8:15. Compute \(\text{P}(15 < X < 16)\), the probability that \(X\), truncated to the nearest minute, is 15. How is the probability related to \(f(15)\)?




  2. Consider the probability that an employee arrives within 1 minute after 8:45. Compute \(\text{P}(45 < X < 46)\), the probability that \(X\), truncated to the nearest minute, is 45. How is the probability related to \(f(45)\)?




  3. Compute and interpret the ratio of the two previous probabilities.



     
  4. Consider the probability that an employee arrives within 1 second after 8:15. Compute \(\text{P}(15 < X < 15 + 1/60)\), the probability that \(X\), truncated to the nearest second, is 15. (The measurement units of \(X\) are minutes, so 1/60 minutes is 1 second.) How is the probability related to \(f(15)\)?



     
  5. Consider the probability that an employee arrives within 1 second after 8:45. Compute \(\text{P}(45 < X < 45 + 1/60)\), the probability that \(X\), truncated to the nearest second, is 45. How is the probability related to \(f(45)\)?



     
  6. Compute and interpret the ratio of the two previous probabilities.



     
  7. Consider the probability that an employee arrives within 1 millisecond after 8:15. Compute \(\text{P}(15 < X < 15 + 1/60000)\), the probability that \(X\), truncated to the nearest millisecond, is 15. (The measurement units of \(X\) are minutes, so 1/60000 minutes is 1 millisecond.) How is the probability related to \(f(15)\)?



     
  8. Consider the probability that an employee arrives within 1 millisecond after 8:45. Compute \(\text{P}(45 < X < 45 + 1/60000)\), the probability that \(X\), truncated to the nearest millisecond, is 45. How is the probability related to \(f(45)\)?



     
  9. Compute and interpret the ratio of the two previous probabilities.



     
  10. Compute and interpret \(\text{P}(X = 15)\).




  11. Compute and interpret \(\text{P}(X = 45)\).




  12. In practical terms, is any employee more likely to arrive “at 8:15” or “at 8:45”? Explain.




Example 12.3 Suppose that \(X\) is a claim amount in excess of the decuctible for a car insurance policy that incurs a claim, measured in thousands of dollars. Assume that \(X\) has pdf \[ f_X(x) = (1/4.3) e^{-x/4.3}, \qquad x >0 \]

  1. Sketch the pdf of \(X\) and interpret, roughly, its shape in context.




  2. Without integrating, approximate the probability that \(X\) rounded to the nearest hundred dollars is $500.




  3. Compute and interpret the ratio \(f(0.5)/f(5)\).




  4. Compute and interpret \(\text{P}(X < 5)\).




  5. Compute and interpret \(\text{P}(X > 10)\).




12.1 Exercises

Exercise 12.1 In a certain population, household income \(X\) ($ thousands) follows the pdf \[ f_X(x) = c x^{-2.5}, \quad x \ge 30 \] for an appropriate constant \(c\). Note that the measurement units are $ thousands, so 1 represents 1 thousand dollars. (This is not a super realistic example, but just go with it.)

  1. What are the possible values of \(X\)? Sketch the pdf of \(X\).




  2. Without integrating, find the probability that a household has an income, rounded to the nearest thousand dollars, of $200K.




  3. Without integrating, find the probability that a household has an income, rounded to the nearest hundred dollars, of $200K.




  4. Without integrating, determine how many times more likely it is for a household to have an income, rounded to the nearest hundred dollars, of $100K than $200K.




  5. Compute the value of \(c\). (For this and the following parts, set up any calculations you would need to perform, but you can use a calculator or software to do the computations.)




  6. Compute the probability that a household has an income under $100K.




  7. Compute the probability that a household has an income over $200K.




  8. Find the probability that a household has an income exactly equal to $200K.




Exercise 12.2 In Example 12.1, assume instead that employees are “equally likely” to arrive at any time between 8am and 9am. Let \(X\) be the arrival time of a randomly selected employee, measured in minutes after 8am. We’ll assume that \(X\) has a “Uniform distribution” on [0, 60].

  1. What shape would you want the pdf to have? Sketch that shape and then determine the pdf.




  2. Compute and interpret \(\text{P}(X <15)\).




  3. Compute and interpret \(\text{P}(X >45)\).




  4. How do the two previous parts compare to each other? Why? How do they compare to the corresponding parts in Example 12.1? Why?




  5. Compute \(\text{P}(X = 15)\).




  6. Replace the previous part with a more sensible question, then solve it.




  7. Make an educated guess for \(\text{E}(X)\).




  8. Make an educated guess for \(\text{SD}(X)\). (We’ll see how to compute expected value and variance for continuous random variables later, but for this example you should be able to make reasonable guesses without doing much computation.)




  • A continuous random variable \(X\) has a Uniform distribution with parameters \(a\) and \(b\), with \(a<b\), if its probability density function \(f_X\) satisfies \[\begin{align} f_X(x) & \propto \text{constant}, \quad & & a<x<b\\ & = \frac{1}{b-a}, \quad & & a<x<b. \end{align}\]
  • If \(X\) has a Uniform(\(a\), \(b\)) distribution then \[\begin{align} \text{E}(X) & = \frac{a+b}{2}\\ \text{Var}(X) & = \frac{|b-a|^2}{12}\\ \text{SD}(X) & = \frac{|b-a|}{\sqrt{12}} \approx 0.289|b-a| \end{align}\]