Content deleted Content added
m moved Convolution sampling to Convolution random number generator: more relevant title - sampling usually has different meaning |
Adding/improving reference(s) Tags: Visual edit Mobile edit Mobile web edit Advanced mobile edit Newcomer task Newcomer task: references |
||
(9 intermediate revisions by 6 users not shown) | |||
Line 1:
{{short description|Non-uniform number generator}}
{{More references|date=February 2025}}
In [[statistics]] and [[computer software]], a '''convolution random number generator''' is a [[pseudo-random number sampling]] method that can be used to generate [[random variate]]s from certain classes of [[probability distribution]]. The particular advantage of this type of approach is that it allows advantage to be taken of existing software for generating random variates from other, usually non-uniform, distributions. However, faster algorithms may be obtainable for the same distributions by other more complicated approaches.<ref>Antonov, N. (2020). [https://core.ac.uk/download/pdf/326322436.pdf ''Random number generator based on multiplicative convolution transform.'']</ref>
A number of distributions can be expressed in terms of the (possibly weighted) sum of two or more random variables from other distributions (The distribution of the sum is the convolution of the distributions of the individual random variables).▼
▲A number of distributions can be expressed in terms of the (possibly weighted) sum of two or more [[random
== Example ==
Consider the problem of generating a random variable with an [[Erlang distribution]], <math>X\ \sim \operatorname{Erlang}(k, \theta)</math>
Notice that:
:<math>\operatorname{E}[X] = \frac{1}{k \theta} + \frac{1}{k \theta} +
One can now generate
if <math>X_i\ \sim
▲One can now generate '''<math>Erlang(k, \theta)</math>''' samples using a random number generator for the exponential distribution:
== References ==
▲if <math>X_i\ \sim exp(k \theta)</math> then <math>X=\sum_{i=1}^k X_i \sim Erlang(k,\theta) .</math>
{{reflist}}
|