Content deleted Content added
m →Reduction of the number of inversions: HTTP → HTTPS for SSRN |
Henryrscharf (talk | contribs) |
||
Line 85:
: The idea is illustrated in the following graph:
: [[File:Inverse transformation method for exponential distribution.jpg|thumb|none|400px|Random numbers y<sub>i</sub> are generated from a uniform distribution between 0 and 1, i.e. Y ~ U(0, 1). They are sketched as colored points on the y-axis. Each of the points is mapped according to x=F<sup>−1</sup>(y), which is shown with gray arrows for two example points. In this example, we have used an exponential distribution. Hence, for x ≥ 0, the probability density is <math>\varrho_X(x) = \lambda e^{-\lambda \, x}</math> and the
: Note that the distribution does not change if we start with 1-y instead of y. For computational purposes, it therefore suffices to generate random numbers y in [0, 1] and then simply calculate
: <math>x = F^{-1}(y) = -\frac{1}{\lambda}\ln(y).</math>
|