CoxianDistribution
✖
CoxianDistribution
represent an m-phase Coxian distribution with phase probabilities αi and rates λi.
Details

- An m-phase Coxian distribution can be interpreted as m sequential service phases with rates λi, where one continues to service phase i+1 with probability αi and finishes with probability 1-αi.
- The probability density for value
and distinct rates
is a linear combination of exponentials
for
and zero for
.
- CoxianDistribution allows αi to be any positive number not greater than 1 and λi to be any positive real numbers.
- CoxianDistribution allows λi to be any quantities of the same unit dimensions and αi to be dimensionless quantities. »
- CoxianDistribution can be used with such functions as Mean, CDF, and RandomVariate.
Background & Context
- CoxianDistribution[{α1,…,αm-1},{λ1,…,λm}] represents a continuous statistical distribution defined over the interval
, parameterized by two vectors (α1,…,αm-1) and (λ1,…,λm), and known as an
-phase Coxian distribution. The parameters αi are called "phase probabilities" and have values in the interval
, while the parameters λi are called "phase rates" and have positive real values. Together, these parameters determine the overall shape of the probability density function (PDF) and, depending on their values, the PDF may be monotonic decreasing or unimodal. In addition, the tails of the PDF are "thin" in the sense that the PDF decreases exponentially rather than decreasing algebraically for large values of
. (This behavior can be made quantitatively precise by analyzing the SurvivalFunction of the distribution.) Random variables
satisfying XCoxianDistribution[{α1,…,αm-1},{λ1,…,λm}] are sometimes said to have a Coxian distribution of order
.
- While the foundations of Coxian distributions originate with the work of mathematician D. R. Cox in the 1950s, much of the current corpus of knowledge was established through work on generalizations of hyperexponential distributions dating from the 1980s. To be mathematically precise, a random variable
has a Coxian distribution of order
if it starts in phase 1 and goes through no more than
exponential phases where, for the
phase (which has mean length equal to
),
continues to phase i+1 with probability αi and finishes with probability 1-αi. A number of real-world phenomena behave in a way naturally modeled by a Coxian distribution, including teletraffic in mobile cellular networks, durations of stay among patients in geriatric facilities, and queueing systems of various types.
- RandomVariate can be used to give one or more machine- or arbitrary-precision (the latter via the WorkingPrecision option) pseudorandom variates from a Coxian distribution. Distributed[x,CoxianDistribution[{α1,…,αm-1},{λ1,…,λm}]], written more concisely as xCoxianDistribution[{α1,…,αm-1},{λ1,…,λm}], can be used to assert that a random variable x is distributed according to a Coxian distribution. Such an assertion can then be used in functions such as Probability, NProbability, Expectation, and NExpectation.
- The probability density and cumulative distribution functions may be given using PDF[CoxianDistribution[{α1,…,αm-1},{λ1,…,λm}],x] and CDF[CoxianDistribution[{α1,…,αm-1},{λ1,…,λm}],x]. The mean, median, variance, raw moments, and central moments may be computed using Mean, Median, Variance, Moment, and CentralMoment, respectively.
- DistributionFitTest can be used to test if a given dataset is consistent with a Coxian distribution, EstimatedDistribution to estimate a Coxian parametric distribution from given data, and FindDistributionParameters to fit data to a Coxian distribution. ProbabilityPlot can be used to generate a plot of the CDF of given data against the CDF of a symbolic Coxian distribution and QuantilePlot to generate a plot of the quantiles of given data against the quantiles of a symbolic Coxian distribution.
- TransformedDistribution can be used to represent a transformed Coxian distribution, CensoredDistribution to represent the distribution of values censored between upper and lower values, and TruncatedDistribution to represent the distribution of values truncated between upper and lower values. CopulaDistribution can be used to build higher-dimensional distributions that contain a Coxian distribution, and ProductDistribution can be used to compute a joint distribution with independent component distributions involving Coxian distributions.
- The Coxian distribution is related to a number of other distributions. For example, CoxianDistribution is related to HyperexponentialDistribution both in its derivation and in the sense that the PDF of
-phase distribution CoxianDistribution[{1,…,1},{λ1,…,λm}] is the same as that of ExponentialDistribution[{λ1,…,λm}]. This creates a link between CoxianDistribution and ExponentialDistribution as well, and this link can be made precise by noting that the
-phase CoxianDistribution[{0,…,αm-1},{λ1,…,λm}] has the same PDF as ExponentialDistribution[λ1]. Finally, for any λ, the PDF of the
-phase distribution CoxianDistribution[{1,…,1},{λ,…,λ}] is the same as that of ErlangDistribution[{m,λ}].
Examples
open allclose allBasic Examples (4)Summary of the most common use cases

https://wolfram.com/xid/0e485ymvd01j0q-pjhn1b


https://wolfram.com/xid/0e485ymvd01j0q-0pwyru

Cumulative distribution function:

https://wolfram.com/xid/0e485ymvd01j0q-3cmr65


https://wolfram.com/xid/0e485ymvd01j0q-lx3361


https://wolfram.com/xid/0e485ymvd01j0q-nxa33t


https://wolfram.com/xid/0e485ymvd01j0q-hflsh0

Median can be found numerically:

https://wolfram.com/xid/0e485ymvd01j0q-41cr5n

Scope (8)Survey of the scope of standard use cases
Generate a sample of pseudorandom numbers from a Coxian distribution:

https://wolfram.com/xid/0e485ymvd01j0q-tscvhm
Compare the histogram to the PDF:

https://wolfram.com/xid/0e485ymvd01j0q-fw0ala

Distribution parameters estimation:

https://wolfram.com/xid/0e485ymvd01j0q-45b7g2
Estimate the distribution parameters from sample data:

https://wolfram.com/xid/0e485ymvd01j0q-epi747

Compare a density histogram of the sample with the PDF of the estimated distribution:

https://wolfram.com/xid/0e485ymvd01j0q-f8ui5o


https://wolfram.com/xid/0e485ymvd01j0q-eiql9h


https://wolfram.com/xid/0e485ymvd01j0q-fmqn15


https://wolfram.com/xid/0e485ymvd01j0q-z8ruhw


https://wolfram.com/xid/0e485ymvd01j0q-j1nw9k

Different moments with closed forms as functions of parameters:

https://wolfram.com/xid/0e485ymvd01j0q-js043h

https://wolfram.com/xid/0e485ymvd01j0q-rx074o


https://wolfram.com/xid/0e485ymvd01j0q-pknsqa


https://wolfram.com/xid/0e485ymvd01j0q-zg9ct4


https://wolfram.com/xid/0e485ymvd01j0q-9gzmth


https://wolfram.com/xid/0e485ymvd01j0q-0gsst0


https://wolfram.com/xid/0e485ymvd01j0q-1ri4li


https://wolfram.com/xid/0e485ymvd01j0q-txywq

Consistent use of Quantity in parameters yields QuantityDistribution:

https://wolfram.com/xid/0e485ymvd01j0q-iwn5xx


https://wolfram.com/xid/0e485ymvd01j0q-vckn5


https://wolfram.com/xid/0e485ymvd01j0q-97d2q

Applications (2)Sample problems that can be solved with this function
A customer enters a feed-forward queueing system with two service locations that have exponential service times with rates of 25 and 28 customers per hour, respectively. After being serviced at the first location, the customer prematurely leaves the system with probability of ; otherwise, the customer proceeds to the next service location. Find the probability that the customer is in the system for more than 5 minutes:

https://wolfram.com/xid/0e485ymvd01j0q-c5qd3


https://wolfram.com/xid/0e485ymvd01j0q-hixxsn


https://wolfram.com/xid/0e485ymvd01j0q-e42t58

The first passage time of the continuous Markov chain into the only absorbing state, having started in a transient state, is generally described by a mixture of Coxian distributions:

https://wolfram.com/xid/0e485ymvd01j0q-d1uxcd

https://wolfram.com/xid/0e485ymvd01j0q-erkem8

The first time until this system reaches the absorbing state follows a Coxian distribution:

https://wolfram.com/xid/0e485ymvd01j0q-llh8n2


https://wolfram.com/xid/0e485ymvd01j0q-hpoa5g

Properties & Relations (5)Properties of the function, and connections to other functions
CoxianDistribution is closed under scaling by a positive factor:

https://wolfram.com/xid/0e485ymvd01j0q-5il0vf

Relationships to other distributions:

Coxian distribution with all phase probabilities equal to 1 is HypoexponentialDistribution:

https://wolfram.com/xid/0e485ymvd01j0q-s3w89


https://wolfram.com/xid/0e485ymvd01j0q-qna6tq


https://wolfram.com/xid/0e485ymvd01j0q-w5z4ve

Coxian distribution with identical rates and phase probabilities 1 is ErlangDistribution:

https://wolfram.com/xid/0e485ymvd01j0q-yq4xkt


https://wolfram.com/xid/0e485ymvd01j0q-kdejn7


https://wolfram.com/xid/0e485ymvd01j0q-zvxryr

Coxian distribution with first phase probability zero is ExponentialDistribution:

https://wolfram.com/xid/0e485ymvd01j0q-zm5zlz


https://wolfram.com/xid/0e485ymvd01j0q-0es93y


https://wolfram.com/xid/0e485ymvd01j0q-yeadse

Wolfram Research (2012), CoxianDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/CoxianDistribution.html (updated 2016).
Text
Wolfram Research (2012), CoxianDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/CoxianDistribution.html (updated 2016).
Wolfram Research (2012), CoxianDistribution, Wolfram Language function, https://reference.wolfram.com/language/ref/CoxianDistribution.html (updated 2016).
CMS
Wolfram Language. 2012. "CoxianDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/CoxianDistribution.html.
Wolfram Language. 2012. "CoxianDistribution." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2016. https://reference.wolfram.com/language/ref/CoxianDistribution.html.
APA
Wolfram Language. (2012). CoxianDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoxianDistribution.html
Wolfram Language. (2012). CoxianDistribution. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CoxianDistribution.html
BibTeX
@misc{reference.wolfram_2025_coxiandistribution, author="Wolfram Research", title="{CoxianDistribution}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/CoxianDistribution.html}", note=[Accessed: 22-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_coxiandistribution, organization={Wolfram Research}, title={CoxianDistribution}, year={2016}, url={https://reference.wolfram.com/language/ref/CoxianDistribution.html}, note=[Accessed: 22-April-2025
]}