[SciPy-User] random variable for truncated multivariate normal and t distributions
Bruce Southey
bsouthey at gmail.com
Thu Jun 2 12:24:55 EDT 2011
On 06/02/2011 09:35 AM, josef.pktd at gmail.com wrote:
> (another random question)
>
> I would like to generate random variables for multivariate normal and
> t distributions that are truncated on a rectangular area (element wise
> upper and lower bounds).
>
> Is there anything better available than sampling from the un-truncated
> distributions and throwing away the out of bounds samples ?
>
> Josef
> _______________________________________________
> SciPy-User mailing list
> SciPy-User at scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
You have seen R's tmvtnorm?
cran.r-project.org/web/packages/tmvtnorm
Bruce
More information about the SciPy-User
mailing list