---
title: "Time to wait to observe alpha events"
canonical: "https://modelassist.epixanalytics.com/space/EA/26574981/Time%20to%20wait%20to%20observe%20alpha%20events"
format: markdown
---
####  

#### Motivation

If you have understood how the Poisson process works and are willing to accept that a Gamma distribution models the time to wait to observe *<span style="color: #222222">α</span>* events, this section is superfluous to your needs. We explain here:

  


- How the [Exponential distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575227/) models the time to wait for the first event and arises naturally out of a memoryless system;
- And therefore why the distribution of the time to wait to observe an event remains the same even if one has waited a while;
- How the [Gamma distribution](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575231/) is the sum of a number of Exponential distributions, and thus is the waiting time distribution for *<span style="color: #222222">α</span>* events.

  


  


#### Deriving the Exponential distribution

The Poisson process assumes that there is a constant probability that an event will occur per increment of time. If we consider a small element of time *Dt*, then the probability an event will occur in that element of time is *kDt*, where *k* is some constant. Now let *P(t)* be the probability that the event will not have occurred by time *t*. The probability that an event occurs the first time during the small interval *Dt* after time *t* is then *kDtP(t)*. This is also equal to *P(t) - P(t+Dt)* and we have:

![image](media://816fa07d-afeb-483d-886a-b85c42a24ed9)

  


> Macro (mathblock)

  


Making *Dt* infinitesimally small, this becomes the differential equation:

![image](media://57516ca8-05b5-468c-8cfe-d7906506e8d8)

  


> Macro (mathblock)

  


Integration gives:

![image](media://dc3699f2-6d2b-4b78-9c6f-29f9892e1180)

  


> Macro (mathblock)

![image](media://a13a5c6d-f0cf-4236-8aa1-a7114cbef8c8)

  


> Macro (mathblock)

  


If we define *F(t)* as the probability that the event will have occurred before time *t* (i.e. (1-*P(t)*), the cumulative distribution function for *t*), we then have:

![image](media://17c32a8b-aae5-432f-9e17-b039e69ce65c)

  


> Macro (mathblock)

  


which is the cumulative distribution function for an [Exponential](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575227/) distribution Exponential(*k*) with mean 1/*k*. Thus 1/*k* is the mean time between occurrences of events or, equivalently, *k* is the mean number of events per unit time, which is the Poisson parameter *<span style="color: #222222">λ</span>*. The parameter 1/*<span style="color: #222222">λ</span>*, the mean time between occurrences of events, is given the notation <span style="color: #222222">β</span>.

  


  


#### Derivation of the Gamma distribution

We have shown above that the time until occurrence of the first event for a Poisson distribution is given by:

  


*t*<sub>1</sub> = Exponential(1/<span style="color: #222222">β</span>)                         where <span style="color: #222222">β</span> = 1/*<span style="color: #222222">λ</span>*

  


From the mathematics of convolutions we have:

![image](media://edf29bba-e4c3-44e9-ae82-425828654bba)

  


> Macro (mathblock)

For X = [Gamma](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575671/)(0,<span style="color: #222222">β</span>,*<span style="color: #222222">α</span>*) and Y = [Exponential](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575672/)(1/<span style="color: #222222">β</span>) this gives:

![image](media://052003a3-974f-4045-8ea9-fc1569040957)

  


> Macro (mathblock)

  


This is equal to a Gamma (0,<span style="color: #222222">β</span>,*<span style="color: #222222">α</span>* +1).

  


Since Gamma(0,<span style="color: #222222">β</span>*,*1) = Y = [Exponential](https://epixanalytics.atlassian.net/wiki/spaces/EA/pages/26575672/)(1/<span style="color: #222222">β</span>) we have proven by induction that:

![image](media://69c3e8b8-8658-43a7-b423-62a308ff455e)

  


> Macro (mathblock)

#### The memoryless property of an Exponential distribution

The probability that the first event will occur at time *x*, given it has not yet occurred by time *t* (*x*>*t*), is given by:

![image](media://a20cb3e4-f21b-4dc1-b04b-7dd1a39ff260)

  


> Macro (mathblock)

  


which is another Exponential distribution. Thus, although the event may not have occurred after time *t*, the remaining time until it will occur has the same probability distribution as it had at any prior point in time.

  


---