Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a456b0923fa74628

Jump to content

// Workers AI · dad joke modeWhy did the convolution random number generator go to therapy? It was mixed up.

From Wikipedia, the free encyclopedia

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.[1]

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

[edit]

Consider the problem of generating a random variable with an Erlang distribution, . Such a random variable can be defined as the sum of k random variables each with an exponential distribution . 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:

One can now generate samples using a random number generator for the exponential distribution:

if     then

References

[edit]