Inverse transform sampling反变换采样法

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

Goal:

Let X be a random variable whose distribution can be described by the cumulative distribution function F X .
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 U U n i f [ 0 , 1 ] .
  • Find the inverse of the desired CDF, e.g. F X 1 ( x ) .
  • Compute X = F X 1 ( u ) . This random variablel X computed has distribution F X .

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

逆变换采样的直观解释:

这里写图片描述

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

猜你喜欢

转载自blog.csdn.net/Eric2016_Lv/article/details/81191430
今日推荐