Code covered by the BSD License  

Highlights from
Multivariate Lognormal Simulation with Correlation

4.0

4.0 | 5 ratings Rate this file 16 Downloads (last 30 days) File Size: 1.98 KB File ID: #6426

Multivariate Lognormal Simulation with Correlation

by

 

29 Nov 2004 (Updated )

A multivariate lognormal simulator.

| Watch this File

File Information
Description

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.40156
     0.19927 1 0.50008
     0.40156 0.50008 1

  CorrMat =
         1 0.2 0.4
       0.2 1 0.5
       0.4 0.5 1

Required Products Statistics Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (6)
23 Jul 2014 Dima  
10 Jul 2013 Nan Shen

question: is the meam and standard deviation normal or lognormal?

14 Nov 2012 Jenny Chew  
19 Jan 2008 Tube Event  
15 May 2007 jane matthew

i need information abaout matlab for lognormal distribution in statistik

26 Oct 2005 ofer setty  

Contact us