random numbers with differnet distributions

froggy

New Member
Joined
Aug 10, 2006
Messages
46
Hi,

i am dealing with random number generator and the link below gives information to return random numbers from Normal Distribution but i would like to know how to return random numbers from LogNormal Distribution, Weibull Distribution and Gamma Distribution. Is anyone familiar with this or would be able to give me some advise?

http://www.anthony-vba.kefra.com/vba/vba4.htm

Thank you.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Lognormal and gamma are easy, since Excel gives inverse lognormal functions, and you need only use the RAND() function as the probability to generate the random number.

For the lognormal, your syntax would be:
LOGINV(RAND(),mu,sigma), where mu and sigma are the parameters of the distribution.

Similarly, for the gamma, use
GAMMAINV(RAND(),alpha,beta)

Excel doesn't have an inverse of the Weibull, so that's harder - I'll leave it for someone less rusty on statistics than I am...
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top