I have a beginner's problem in random sampling from a given pdf.
For example, I have a random variable X with pdf f(x)=4xe^-x, where x>0.
How to draw a random sample of size, let's say, 1000 from this distribution?
Thanks.
Aucun commentaire:
Enregistrer un commentaire