Chapter 32: Exponential Random Variables

Meike Niederhausen and Nicky Wakim

2023-11-27

Learning Objectives

  1. Identify the variable and the parameters in a story, and state in English what the variable and its parameters mean.

  2. Use the formulas for the density, CDF, expected value, and variance to answer questions and find probabilities.

Properties of exponential RVs

  • Scenario: Modeling the time until the next (first) event

  • Continuous analog to the geometric distribution!

  • Shorthand: \(X \sim \text{Exp}(\lambda)\)

\[ f_X(x) = \lambda e^{-\lambda x}\text{ for } x>0, \lambda>0 \]

\[ F_X(x) = \left\{ \begin{array}{ll} 0 & \quad x<0 \quad \\ 1 - e^{-\lambda x} & \quad x\geq0 \\ \end{array} \right. \]

\[\text{E}(X) = \dfrac{1}{\lambda}\] \[\text{Var}(X) = \dfrac{1}{\lambda^2}\]

Memoryless Property

   

If \(b>0\),

\[P(X > a +b | X> a) = P(X > b)\]

     

  • This can be interpreted as:

    • If you have waited \(a\) seconds (or any other measure of time) without a success

    • Then the probability that you have to wait \(b\) more seconds is the same as as the probability of waiting \(b\) seconds initially.

Identifying exponential RV from word problems

  • Look for time between events/successes

  • Look for a rate of the events over time period

  • How does it differ from the geometric distribution?

    • Geometric is number of trials until first success

    • Exponential is time until first success

  • Relation to the Poisson distribution?

    • When the time between arrivals is exponential, the number of arrivals in a fixed time interval is Poisson with the mean \(\lambda\)

Helpful R code

Let’s say we’re sitting at the bus stop, measuring the time until our bus arrives. We know the bus comes every 10 minutes on average.

  • If we want to know the probability that the bus arrives in the next 5 minutes:

    pexp(q = 5, rate = 1/10)
    [1] 0.3934693
  • If we want to know the time, say \(t\), where the probability of the bus arriving at \(t\) or earlier is 0.35:

    qexp(p = 0.35, rate = 1/10)
    [1] 4.307829
  • If we want to know the probability that the bus arrives between 3 and 5 minutes:

    pexp(q = 5, rate = 1/10) - pexp(q = 3, rate = 1/10)
    [1] 0.1342876
  • If we want to sample 20 bus arrival times from the distribution:

    rexp(n = 20, rate = 1/10)
     [1] 30.0816505 21.7194972 16.3610530  8.3069168  6.5553312  1.3089050
     [7]  9.6093683 10.1363398  0.6275717 14.8675929  4.3278190  6.7367828
    [13] 31.0445867  4.0943354 20.5852011  0.6137783 11.3663773  4.4192161
    [19]  8.8711282  7.0947632

Transformation of independent exponential RVs

Example 1

Let \(X_i \sim \textrm{Exp}(\lambda_i)\) be independent RVs, for \(i=1 \ldots n\). Find the pdf for the first of the arrival times.