Monte Carlo Simulation

T

TheRobsterUK

Has anyone ever created a spreadsheet that used Monte Carlo Simulation?

I've been able to create one that works using the random numbe
generator in conjunction with discrete probability distributions
that's fairly easy, just assign a probability to each discrete value i
the distribution and then decide whether or not to select it using
randomly generated number.

However, I want to perform a Monte Carlo simulation that uses
-continuous- (not discrete) probability distribution, but have no ide
how I would use the random number generator to then select a value fro
the distribution based on its probability of occurance.

I know it can be done, I just have no idea how!

Anyone done anything like this before?

Cheers
-Ro
 
M

Mike Middleton

Rob -

Yes, I do it several times each semester when I'm teaching MBAs. But after a
quick demonstration using worksheet functions, I shift to an add-in that
automates the process.

If you have a function or formula for the inverse of the cumulative function
for the desired distribution, it's easy.

For example, you can get normal-distribution random numbers using
=NORMINV(RAND(),mean,stdev). But NORMINV and RAND are numerically accurate
only in Excel 2003, and it's really slow. So commercial Monte Carlo
simulation software might use the Box-Muller algorithm.

And you can use the Data Table command to replicate trials. Then summarize
results using the array-entered FREQUENCY function or the Histogram tool.

If you'd like to look at my "Example of Simulation in Excel Without
Add-Ins," you can download RandSamp.xls from the "Decision Analysis Using
Excel" page of my university web site http://www.usfca.edu/~middleton.

- Mike
www.mikemiddleton.com

"TheRobsterUK" <[email protected]>
wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top