View Full Version : exponential distribution
aadesh
15 May 2008, 01:32 PM
I want to generate 52 exponential numbers whos mean is 22057 in matlab.. please help ASAP...
thank u
:(
shwaip
18 May 2008, 04:57 PM
you can generate an exponential RV with mean M by doing the following:
uni = rand(1,52);
ex = -log(uni)/M;
aadesh
19 May 2008, 07:27 PM
Dint actually get it.... i copied and pasted it but Matlab dint do anything.. there a full possibility that i did it wrong since i am a newbie at using the software. please if you can explain in detail...
wht i did was i copied the code
n just changed m in it...
you can generate an exponential RV with mean M by doing the following:
uni = rand(1,52);
ex = -log(uni)/M;
shwaip
20 May 2008, 05:45 AM
the variable ex is now an iid exponential random variable with mean 1/M. with 52 draws from it.
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.