Categories
  Encyclosphere.org ENCYCLOREADER
  supported by EncyclosphereKSF

Convolution random number generator

From HandWiki - Reading time: 2 min

Short description: Non-uniform number generator

In statistics and computer software, a convolution random number generator is a pseudo-random number sampling method that can be used to generate random variates 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.

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).

Example

Consider the problem of generating a random variable with an Erlang distribution, [math]\displaystyle{ X\ \sim \operatorname{Erlang}(k, \theta) }[/math]. Such a random variable can be defined as the sum of k random variables each with an exponential distribution [math]\displaystyle{ \operatorname{Exp}(k \theta) \, }[/math]. This problem is equivalent to generating a random number for a special case of the Gamma distribution, in which the shape parameter takes an integer value.

Notice that:

[math]\displaystyle{ \operatorname{E}[X] = \frac{1}{k \theta} + \frac{1}{k \theta} + \cdots + \frac{1}{k \theta} = \frac{1}{\theta} . }[/math]

One can now generate [math]\displaystyle{ \operatorname{Erlang}(k, \theta) }[/math] samples using a random number generator for the exponential distribution:

if [math]\displaystyle{ X_i\ \sim \operatorname{Exp}(k \theta) }[/math]    then [math]\displaystyle{ X=\sum_{i=1}^k X_i \sim \operatorname{Erlang}(k,\theta) . }[/math]



Licensed under CC BY-SA 3.0 | Source: https://handwiki.org/wiki/Convolution_random_number_generator
12 views | Status: cached on July 19 2024 09:11:56
↧ Download this article as ZWI file
Encyclosphere.org EncycloReader is supported by the EncyclosphereKSF