[1] 0.082085
[1] 0.082085
Math 216: Statistical Thinking
Models waiting times between events (time/distance)
Key applications:
▸ Emergency intervals
▸ Equipment failures
▸ Rare species sightings
Defining features:
Alternate name: “Waiting-time distribution”
\[f(x)=\frac{1}{\theta} \exp \left(-\frac{x}{\theta}\right), \quad x>0\]
pexp: Calculates the cumulative probability for a given value.
pexp(q, rate = 1, lower.tail = TRUE)
pexp(5, rate = 1/2)
calculates \(P(X \leq 5)\) for \(\theta = 2\).pexp(5, rate = 1/2, lower.tail = FALSE)
for \(P(X > 5)\).qexp: Computes the quantile for a specified probability.
qexp(p, rate = 1, lower.tail = TRUE)
qexp(0.7, rate = 1/2)
finds the time by which 70% of events are expected to occur for \(\theta = 2\).[1] 0.082085
[1] 0.082085