Publisher review:Multivariate Lognormal Simulation with Correlation - A multivariate lognormal simulator. MVLOGNRAND MultiVariate Lognormal random numbers with correlation.This function will generate multivariate lognormal random numbers with correlation.Often one would simulation a lognormal distribution by first simulating a normal and then taking the exponent of it.If you provide the correlation matrix to the multivariate normal random number generator and then exponeniate the results, you will not have the correlation stucture you input in the normal distribution because of the exponeniation. This function adjusts for that and passes the adjusted correlation matrix to the normal random number generator.Example:Mu = [ 11 12 13 ];Sigma= [ .1 .3 .5 ];Sims= 1e6;CorrMat=[1 .2 .4 ; .2 1 .5 ; .4 .5 1];y=MvLogNRand(Mu,Sigma,Sims,CorrMat );corrcoef(y)ans =1 0.19927 0.401560.19927 1 0.500080.40156 0.50008 1CorrMat =1 0.2 0.40.2 1 0.50.4 0.5 1 Requirements: · MATLAB Release: R14SP1 · Statistics Toolbox
Multivariate Lognormal Simulation with Correlation is a Matlab script for Statistics and Probability scripts design by Stephen Lienhard.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris