![]() |
Example: Another simple example is the Weibull distribution which has distribution function
| (1.5) |
Example: Similarly, the logistic distribution with distribution function
| (1.6) |
Example: Finally the Pareto distribution with probability density function
To use the inversion method, the inverse function
either has to be
available explicitly, as in the exponential, Weibull, logistic and Pareto cases, or has
to be computable in a reasonable amount of time. The equality
is equivalent to
, so that finding
for given
is equivalent to
finding a root of the equation
. When
is strictly monotone,
there is only one root and standard numerical root-finding algorithms can be
used, provided of course that
itself is easy to evaluate. If it is
required to sample repeatedly from the same distribution, it may be
worthwhile devoting some time to the development of an accurate approximation
to
beforehand. For the standard normal distribution
, a
numerical approximation to
is given in Abramovitz and Stegun [1].
However inversion is usually not the method of choice for the normal
distribution since there are other simple methods such as Algorithm 1.1.
The main advantage of the inversion method is that it is generally easy to verify that a computer algorithm which uses it is written correctly. In this sense the method is efficient, i.e. in saving the time of the programmer. However, there are usually competing methods which will run faster at the expense of mathematical and algorithmic complexity. We proceed to discuss some of these.