2023-11-27
Identify the variable and the parameters in a story, and state in English what the variable and its parameters mean.
Use the formulas for the density, CDF, expected value, and variance to answer questions and find probabilities.
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}\]
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.
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?
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:
If we want to know the time, say \(t\), where the probability of the bus arriving at \(t\) or earlier is 0.35:
If we want to know the probability that the bus arrives between 3 and 5 minutes:
If we want to sample 20 bus arrival times from the distribution:
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.
Chapter 32 Slides