Smith has a small booth where he sells lottery tickets. Customers arrive according to a Poisson process of rate $\lambda$= 1 per minute. He will close the shop on the 1st occasion that $a$ minutes have elapsed since the last customer arrived.
let $X$ denote the first time when the gap between the arrival of two consecutive customers is less than a. Find $E(X)$
Attempt:
I think $X$ is just exponential distributed, but $X=0$ for $x>a$. So $E[X]=\int_0^a\lambda x e^{-\lambda x}dx$.
What do you guys think?
$X$ is not the length of the gap, $X$ is the time when the length of the gap is first of greater than $a$. Call it a "long-gap", while a lesser length is a "short-gap".
To clarify: Suppose some customers have arrived, all with a short-gaps before each and its previous, and then another customer arrives after a long-gap. $X$ is the time of arrival of that customer.
Thus $X$ is the expected time a long-gap plus the expect count of short-gaps before the first long-gap times the expected time of any short-gap (since each is iid, and expectation is linear).
$$\begin{align}\mathsf E(X) ~ = & ~ \mathsf E(\mathsf E(\Delta T_{N+1}\mid \Delta T_{N+1}\geq a) + \mathsf E(\sum_{k=1}^N\Delta T_k\mid\forall k\leq N:\Delta T_k<a)) \\ = & ~ \mathsf E(\Delta T_{\ast}\mid \Delta T_{\ast}\geq a) +\mathsf E(N)\cdot\mathsf E(\Delta T_\ast\mid\Delta T_\ast<a) \end{align}$$
Now the lengths of each gaps is iid exponentially distributed.
$$\Delta T_\ast \mathop{\sim}\limits^{iid} \mathcal {Exp}(1)$$
The count of short-gaps before the first long-gap is geometrically distributed, with success rate being the probability of a long-gap. $$N\sim\mathcal{Geo}_0(\mathsf P(\Delta T_\ast\geq a))$$
Can you complete?
(NB: "count of fails before success" is the $k\in\{0,1,...\}$ version of geometric distribution.)