View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
[email protected] curiousgeorge408@hotmail.com is offline
external usenet poster
 
Posts: 85
Default How to use Monte Carlo Simulation in Excel?

On Jun 1, 9:26*am, Lars-Åke Aspelin wrote:
http://office.microsoft.com/en-us/ex...118931033.aspx


Great pointer!

Going a little off-topic, but hopefully finding some interest among
readers of this thread....

Can anyone provide VB code that demonstrates how to generate random
data in a normal distribution with known (sampling) mean and standard
deviation __without__ relying on Excel features such as NORMINV()?

I do not want to rely on Excel features because I actually want to
translate the solution into C. (For a Unix system, not Windows.)

I did this a few years ago, but I've forgotten how.

I think I used Box-Mueller. But when I look at the algorithm today, I
do not see how it works for a specific mean and standard deviation.

Extra credit: It would be ideal if I could use a beta distribution
instead of a normal distribution. (That is, I am interested in
__both__.) But I have never understood the theory and how to control
the shape of the curve using the alpha and beta parameters. And
perhaps for that reason, I have never understood how to implement it
in C.

Again, I played with it some years ago. But I have little memory of
what I learned, if anything.

Anyway, any turnkey solutions would be appreciated. I don't have much
time to spend on this, and I have access to a Unix system for only a
short time.

TIA.