mercredi 7 février 2018

Sampling from a multivariate probability density function in python

I have a multivariate probability density function P(x,y,z), and I want to sample from it. Normally, I would use numpy.random.choice() for this sort of task, but this function only works for 1-dimensional probability densities. Is there an equivalent function for multivariate pdfs?




Aucun commentaire:

Enregistrer un commentaire