Inverse transform sampling反变换采样法

感谢上海交大黄晨博士的博客https://blog.****.net/doublehhcc/article/details/81166502
亦感谢上海交大博士生许志钦(现为纽约大学克朗研究院博士后)为直观解释所作的贡献,令博主与黄晨同学恍然大悟。

Goal:

Let X be a random variable whose distribution can be described by the cumulative distribution function FX.
We want to generate values of X which are distributed according to this distribution.

Algorithm:

The inverse transform sampling method works as follows:

  • Generate a random number u from the standard uniform distribution in the interval [0,1] e.g. from UUnif[0,1].
  • Find the inverse of the desired CDF, e.g. FX1(x).
  • Compute X=FX1(u). This random variablel X computed has distribution FX.

Expressed differently, given a continuous uniform variable U in [0,1]and an invertible cumulative distribution function FX, the random variable X=FX1(U) has distribution FX (or, X is distributed FX).

逆变换采样的直观解释:

Inverse transform sampling反变换采样法

参考链接:https://en.wikipedia.org/wiki/Inverse_transform_sampling