Erlang distribution
Probability density function | |||
Cumulative distribution function | |||
Parameters |
[math]\displaystyle{ k \in \{1,2,3,\ldots\}, }[/math] shape [math]\displaystyle{ \lambda \in (0,\infty), }[/math] rate alt.: [math]\displaystyle{ \beta = 1/\lambda, }[/math] scale | ||
---|---|---|---|
Support | [math]\displaystyle{ x \in [0, \infty) }[/math] | ||
[math]\displaystyle{ \frac{\lambda^k x^{k-1} e^{-\lambda x}}{(k-1)!} }[/math] | |||
CDF | [math]\displaystyle{ P(k, \lambda x) = \frac{\gamma(k, \lambda x)}{(k - 1)!} = 1 - \sum_{n=0}^{k-1}\frac{1}{n!}e^{-\lambda x}(\lambda x)^{n} }[/math] | ||
Mean | [math]\displaystyle{ \frac{k}{\lambda} }[/math] | ||
Median | No simple closed form | ||
Mode | [math]\displaystyle{ \frac{1}{\lambda}(k - 1) }[/math] | ||
Variance | [math]\displaystyle{ \frac{k}{\lambda^2} }[/math] | ||
Skewness | [math]\displaystyle{ \frac{2}{\sqrt{k}} }[/math] | ||
Kurtosis | [math]\displaystyle{ \frac{6}{k} }[/math] | ||
Entropy | [math]\displaystyle{ (1 - k)\psi(k) + \ln\left[\frac{\Gamma(k)}{\lambda}\right] + k }[/math] | ||
MGF | [math]\displaystyle{ \left(1 - \frac{t}{\lambda}\right)^{-k} }[/math] for [math]\displaystyle{ t \lt \lambda }[/math] | ||
CF | [math]\displaystyle{ \left(1 - \frac{it}{\lambda}\right)^{-k} }[/math] |
The Erlang distribution is a two-parameter family of continuous probability distributions with support [math]\displaystyle{ x \in [0, \infty) }[/math]. The two parameters are:
- a positive integer [math]\displaystyle{ k, }[/math] the "shape", and
- a positive real number [math]\displaystyle{ \lambda, }[/math] the "rate". The "scale", [math]\displaystyle{ \beta, }[/math] the reciprocal of the rate, is sometimes used instead.
The Erlang distribution is the distribution of a sum of [math]\displaystyle{ k }[/math] independent exponential variables with mean [math]\displaystyle{ 1/\lambda }[/math] each. Equivalently, it is the distribution of the time until the kth event of a Poisson process with a rate of [math]\displaystyle{ \lambda }[/math]. The Erlang and Poisson distributions are complementary, in that while the Poisson distribution counts the number of events that occur in a fixed amount of time, the Erlang distribution counts the amount of time until the occurrence of a fixed number of events. When [math]\displaystyle{ k=1 }[/math], the distribution simplifies to the exponential distribution. The Erlang distribution is a special case of the gamma distribution wherein the shape of the distribution is discretised.
The Erlang distribution was developed by A. K. Erlang to examine the number of telephone calls which might be made at the same time to the operators of the switching stations. This work on telephone traffic engineering has been expanded to consider waiting times in queueing systems in general. The distribution is also used in the field of stochastic processes.
Characterization
Probability density function
The probability density function of the Erlang distribution is
- [math]\displaystyle{ f(x; k,\lambda)={\lambda^k x^{k-1} e^{-\lambda x} \over (k-1)!}\quad\mbox{for }x, \lambda \geq 0, }[/math]
The parameter k is called the shape parameter, and the parameter [math]\displaystyle{ \lambda }[/math] is called the rate parameter.
An alternative, but equivalent, parametrization uses the scale parameter [math]\displaystyle{ \beta }[/math], which is the reciprocal of the rate parameter (i.e., [math]\displaystyle{ \beta = 1/\lambda }[/math]):
- [math]\displaystyle{ f(x; k,\beta)=\frac{ x^{k-1} e^{-\frac{x}{\beta}} }{\beta^k (k-1)!}\quad\mbox{for }x, \beta \geq 0. }[/math]
When the scale parameter [math]\displaystyle{ \beta }[/math] equals 2, the distribution simplifies to the chi-squared distribution with 2k degrees of freedom. It can therefore be regarded as a generalized chi-squared distribution for even numbers of degrees of freedom.
Cumulative distribution function (CDF)
The cumulative distribution function of the Erlang distribution is
- [math]\displaystyle{ F(x; k,\lambda) = P(k, \lambda x) = \frac{\gamma(k, \lambda x)}{\Gamma(k)} = \frac{\gamma(k, \lambda x)}{(k-1)!}, }[/math]
where [math]\displaystyle{ \gamma }[/math] is the lower incomplete gamma function and [math]\displaystyle{ P }[/math] is the lower regularized gamma function. The CDF may also be expressed as
- [math]\displaystyle{ F(x; k,\lambda) = 1 - \sum_{n=0}^{k-1}\frac{1}{n!}e^{-\lambda x}(\lambda x)^n. }[/math]
Erlang-k
The Erlang-k distribution (where k is a positive integer) [math]\displaystyle{ E_k(\lambda) }[/math] is defined by setting k in the PDF of the Erlang distribution.[1] For instance, the Erlang-2 distribution is [math]\displaystyle{ E_2(\lambda) ={\lambda^2 x} e^{-\lambda x} \quad\mbox{for }x, \lambda \geq 0 }[/math], which is the same as [math]\displaystyle{ f(x; 2,\lambda) }[/math].
Median
An asymptotic expansion is known for the median of an Erlang distribution,[2] for which coefficients can be computed and bounds are known.[3][4] An approximation is [math]\displaystyle{ \frac{k}{\lambda}\left(1-\dfrac{1}{3k+0.2}\right), }[/math] i.e. below the mean [math]\displaystyle{ \frac{k}{\lambda}. }[/math][5]
Generating Erlang-distributed random variates
Erlang-distributed random variates can be generated from uniformly distributed random numbers ([math]\displaystyle{ U \in [0,1] }[/math]) using the following formula:[6]
- [math]\displaystyle{ E(k,\lambda) = -\frac{1}\lambda \ln \prod_{i=1}^k U_{i} = -\frac{1}\lambda \sum_{i=1}^k \ln U_{i} }[/math]
Applications
Waiting times
Events that occur independently with some average rate are modeled with a Poisson process. The waiting times between k occurrences of the event are Erlang distributed. (The related question of the number of events in a given amount of time is described by the Poisson distribution.)
The Erlang distribution, which measures the time between incoming calls, can be used in conjunction with the expected duration of incoming calls to produce information about the traffic load measured in erlangs. This can be used to determine the probability of packet loss or delay, according to various assumptions made about whether blocked calls are aborted (Erlang B formula) or queued until served (Erlang C formula). The Erlang-B and C formulae are still in everyday use for traffic modeling for applications such as the design of call centers.
Other applications
The age distribution of cancer incidence often follows the Erlang distribution, whereas the shape and scale parameters predict, respectively, the number of driver events and the time interval between them.[7][8] More generally, the Erlang distribution has been suggested as good approximation of cell cycle time distribution, as result of multi-stage models.[9][10]
It has also been used in business economics for describing interpurchase times.[11]
Properties
- If [math]\displaystyle{ X \sim \operatorname{Erlang}(k, \lambda) }[/math] then [math]\displaystyle{ a \cdot X \sim \operatorname{Erlang}\left(k, \frac{\lambda}{a}\right) }[/math] with [math]\displaystyle{ a \in \mathbb{R} }[/math]
- If [math]\displaystyle{ X \sim \operatorname{Erlang}(k_1, \lambda) }[/math] and [math]\displaystyle{ Y \sim \operatorname{Erlang}(k_2, \lambda) }[/math] then [math]\displaystyle{ X + Y \sim \operatorname{Erlang}(k_1 + k_2, \lambda) }[/math] if [math]\displaystyle{ X, Y }[/math] are independent
Related distributions
- The Erlang distribution is the distribution of the sum of k independent and identically distributed random variables, each having an exponential distribution. The long-run rate at which events occur is the reciprocal of the expectation of [math]\displaystyle{ X, }[/math] that is, [math]\displaystyle{ \lambda/k. }[/math] The (age specific event) rate of the Erlang distribution is, for [math]\displaystyle{ k\gt 1, }[/math] monotonic in [math]\displaystyle{ x, }[/math] increasing from 0 at [math]\displaystyle{ x=0, }[/math] to [math]\displaystyle{ \lambda }[/math] as [math]\displaystyle{ x }[/math] tends to infinity.[12]
- That is: if [math]\displaystyle{ X_i \sim \operatorname{Exponential}(\lambda), }[/math] then [math]\displaystyle{ \sum_{i=1}^k{X_i} \sim \operatorname{Erlang}(k, \lambda) }[/math]
- Because of the factorial function in the denominator of the PDF and CDF, the Erlang distribution is only defined when the parameter k is a positive integer. In fact, this distribution is sometimes called the Erlang-k distribution (e.g., an Erlang-2 distribution is an Erlang distribution with [math]\displaystyle{ k=2 }[/math]). The gamma distribution generalizes the Erlang distribution by allowing k to be any positive real number, using the gamma function instead of the factorial function.
- That is: if k is an integer and [math]\displaystyle{ X \sim \operatorname{Gamma}(k, \lambda), }[/math] then [math]\displaystyle{ X \sim \operatorname{Erlang}(k, \lambda) }[/math]
- If [math]\displaystyle{ U \sim \operatorname{Exponential}(\lambda) }[/math] and [math]\displaystyle{ V \sim \operatorname{Erlang}(n, \lambda) }[/math] then [math]\displaystyle{ \frac{U}{V}+1 \sim \operatorname{Pareto}(1, n) }[/math]
- The Erlang distribution is a special case of the Pearson type III distribution[citation needed]
- The Erlang distribution is related to the chi-squared distribution. If [math]\displaystyle{ X \sim \operatorname{Erlang}(k,\lambda), }[/math] then [math]\displaystyle{ 2\lambda X\sim \chi^2_{2k}. }[/math][citation needed]
- The Erlang distribution is related to the Poisson distribution by the Poisson process: If [math]\displaystyle{ S_n = \sum_{i=1}^n X_i }[/math] such that [math]\displaystyle{ X_i \sim \operatorname{Exponential}(\lambda), }[/math] then [math]\displaystyle{ S_n \sim \operatorname{Erlang}(n, \lambda) }[/math] and [math]\displaystyle{ \operatorname{Pr}(N(x) \leq n - 1) = \operatorname{Pr}(S_n \gt x) = 1 - F_X(x; n, \lambda) = \sum_{k=0}^{n-1} \frac{1}{k!}e^{-\lambda x} (\lambda x)^k. }[/math] Taking the differences over [math]\displaystyle{ n }[/math] gives the Poisson distribution.
See also
- Coxian distribution
- Engset calculation
- Erlang B formula
- Erlang unit
- Phase-type distribution
- Traffic generation model
Notes
- ↑ "h1.pdf". https://www.win.tue.nl/~iadan/sdp/h1.pdf.
- ↑ Choi, K. P. (1994). "On the medians of gamma distributions and an equation of Ramanujan". Proceedings of the American Mathematical Society 121: 245–251. doi:10.1090/S0002-9939-1994-1195477-8.
- ↑ Adell, J. A.; Jodrá, P. (2010). "On a Ramanujan equation connected with the median of the gamma distribution". Transactions of the American Mathematical Society 360 (7): 3631. doi:10.1090/S0002-9947-07-04411-X.
- ↑ Jodrá, P. (2012). "Computing the Asymptotic Expansion of the Median of the Erlang Distribution". Mathematical Modelling and Analysis 17 (2): 281–292. doi:10.3846/13926292.2012.664571.
- ↑ Banneheka, BMSG; Ekanayake, GEMUPD (2009). "A new point estimator for the median of gamma distribution". Viyodaya J Science 14: 95–103.
- ↑ Resa. "Statistical Distributions - Erlang Distribution - Random Number Generator". http://www.xycoon.com/erlang_random.htm.
- ↑ Belikov, Aleksey V. (22 September 2017). "The number of key carcinogenic events can be predicted from cancer incidence". Scientific Reports 7 (1). doi:10.1038/s41598-017-12448-7. PMID 28939880.
- ↑ Belikov, Aleksey V.; Vyatkin, Alexey; Leonov, Sergey V. (2021-08-06). "The Erlang distribution approximates the age distribution of incidence of childhood and young adulthood cancers" (in en). PeerJ 9: e11976. doi:10.7717/peerj.11976. ISSN 2167-8359. PMID 34434669. PMC 8351573. https://peerj.com/articles/11976.
- ↑ Yates, Christian A. (21 April 2017). "A Multi-stage Representation of Cell Proliferation as a Markov Process". Bulletin of Mathematical Biology 79 (1): 2905–2928. doi:10.1007/s11538-017-0356-4.
- ↑ Gavagnin, Enrico (21 November 2019). "The invasion speed of cell migration models with realistic cell cycle time distributions". Journal of Theoretical Biology 481: 91–99. doi:10.1016/j.jtbi.2018.09.010.
- ↑ Chatfield, C.; Goodhardt, G.J. (December 1973). "A Consumer Purchasing Model with Erlang Interpurchase Times". Journal of the American Statistical Association 68: 828-835.
- ↑ Cox, D.R. (1967) Renewal Theory, p20, Methuen.
References
- Ian Angus "An Introduction to Erlang B and Erlang C", Telemanagement #187 (PDF Document - Has terms and formulae plus short biography)
- Stuart Harris "Erlang Calculations vs. Simulation"
External links
Original source: https://en.wikipedia.org/wiki/Erlang distribution.
Read more |