Inverse transform sampling反变换采样法
感谢上海交大黄晨博士的博客:https://blog.****.net/doublehhcc/article/details/81166502
亦感谢上海交大博士生许志钦(现为纽约大学克朗研究院博士后)为直观解释所作的贡献,令博主与黄晨同学恍然大悟。
Goal:
Let be a random variable whose distribution can be described by the cumulative distribution function .
We want to generate values of which are distributed according to this distribution.
Algorithm:
The inverse transform sampling method works as follows:
- Generate a random number from the standard uniform distribution in the interval e.g. from
- Find the inverse of the desired CDF, e.g. .
- Compute . This random variablel computed has distribution .
Expressed differently, given a continuous uniform variable in and an invertible cumulative distribution function , the random variable has distribution (or, is distributed ).
逆变换采样的直观解释:
参考链接:https://en.wikipedia.org/wiki/Inverse_transform_sampling