How to sample observation from a function that doesn't follow a distribution in R?

后端 未结 0 1200
深忆病人
深忆病人 2020-11-30 13:31

I have the cdf of a random variable H:

G(h) = 2x for 0 < h < 2
       
       1 otherwise 

How can I generate 10,000 observations from

相关标签:
回答
  • 消灭零回复
提交回复
热议问题