image thumbnail

Truncated Multivariate Normal Generator

version (10.3 KB) by Zdravko Botev
(perfect) sampling from the truncated multivariate normal density


Updated 03 Nov 2015

View License

Simulates 'n' random vectors exactly (perfectly) distributed from the d-dimensional N(0,Sig) distribution (zero-mean normal with covariance 'Sig'), conditional on l<X<u. Infinite values for the truncation limits 'l' and 'u' are accepted.
Reference: Z. I. Botev (2015), "The Normal Law Under Linear Restrictions: Simulation and Estimation via Minimax Tilting", submitted to JRSS(B)

Cite As

Zdravko Botev (2022). Truncated Multivariate Normal Generator (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!