Introduction to Statistics in R
Maggie Matsui
Content Developer, DataCamp
Probability of time between Poisson events
Examples
Also uses lambda (rate)
Continuous (time)
$P(\text{wait} < \text{1 min})$ =
pexp(1, rate = 0.5)
0.3934693
$P(\text{wait} > \text{4 min})$ =
pexp(4, rate = 0.5, lower.tail = FALSE)
0.1353353
$P(\text{1 min} < \text{wait} < \text{4 min})$ =
pexp(4, rate = 0.5) - pexp(1, rate = 0.5)
0.4711954
In terms of rate (Poisson):
In terms of time (exponential):
Variable whose logarithm is normally distributed
Examples:
Introduction to Statistics in R