An exponential random variable is a continuous random variable with parameter that has the probability density function:
An Erlang random variable is a continuous random variable with parameters that has the probability density function:
An exponential random variable is typically used to model the time it takes for an event to occur. And, an Erlang random variable is typically (??) used to model the time it takes for events to occur.
The modelling of time by these distributions is appropriate if it is correct to think of time as composed of tiny intervals where the intervals are independent of each other and where each interval can have at most one occurrence – that is, two possible outcomes in each interval: occurrence (success) or no occurrence (failure).
When we have independent time intervals (sub-experiments) being run one after another each with a certain probability of occurrence (success), the number of time intervals (sub-experiments) to be run until an occurrence happens is modeled by the (discrete) geometric random variable, and the number of time intervals (sub-experiments) to be run until occurrences happen is modeled by the negative binomial random variable.
Thus, the exponential and Erlang random variables seem to be modelling such scenarios in the continuous world that when “discretized” are the ones modeled exactly by geometric and negative binomial random variables. This seems to imply that geometric and negative binomial random variables are the discrete counterparts to exponential and Erlang random variables.
The relation between geometric and exponential random variables and the relation between negative binomial and Erlang random variables are similar to the relation between binomial and Poisson random variables. Although, in the case of binomial and Poisson random variables, both are discrete.
In this article, we derive the probability density functions of the exponential and Erlang random variables using the probability mass functions of the geometric and negative binomial random variables.
Firstly, we work on the relation between geometric and exponential random variables.
As stated earlier, a geometric random variable applies to the scenarios where there is a sequence of trials conducted with each trial having a success probability of . In these scenarios, the geometric random variable counts the number of trials needed until a success occurs. The probability mass function of this geometric random variable
is given by:
Now, if we consider time to be divided into a sequence of small independent intervals of length and
is the probability that occurrence happens in a time interval and if
is the continuous random variable that gives the time
it takes until an occurrence happens, then:
Thus, , which is the probability density function of exponential random variable. Note that, in the above,
may be thought average number of occurrences per unit time, which is the same idea as when we relate a binomial random variable to a Poisson random variable. Thus, exponential random variables model exactly those scenarios in continuous world whose counterparts in the discrete world are modeled by geometric random variables.
Let us now work on the relation between the negative binomial and Erlang random variables. We proceed in a similar fashion as when working with geometric and exponential random variables.
Like the geometric random variable, a negative binomial random variable also applies to scenarios where there is a sequence of trials conducted with each trial having a success probability of . In these scenarios, the negative binomial random variable counts the number of trials needed until
successes occurs. The probability mass function of this negative binomial random variable
is given by:
If we consider time to be divided into a sequence of small independent intervals of length and
is the probability that occurrence happens in a time interval and if
is the continuous random variable that gives the time
it takes until
occurrences happens, then:
Thus, , which is the probability density function of Erlang random variable. Thus, Erlang random variables model exactly those scenarios in continuous world whose counterparts in the discrete world are modeled by negative binomial random variables.