Montecarlo Simulation
Posted: Mon May 06, 2013 1:21 pm
Hello,
I'm doing a Montecarlo Simulation, and I have to enter different sample sizes for my wf. The largest sample size is 10,000.
I start my program setting my worfile like this:
wf u 10000
But I have to test samples of this size, n = {100,500,1000, 10000} , so I'm generating series with 10000 values, when I only need 100, 500 or 1000 so I'm getting a lot of zeros in my series for those samples below 10,000
How can I correct this problem? Maybe setting the sample size as an argument of the program? If I repeat the program for the 4 sizes I'll have 4 wf and my program wouldn't be so efficient.
Thanks for the help,
I'm doing a Montecarlo Simulation, and I have to enter different sample sizes for my wf. The largest sample size is 10,000.
I start my program setting my worfile like this:
wf u 10000
But I have to test samples of this size, n = {100,500,1000, 10000} , so I'm generating series with 10000 values, when I only need 100, 500 or 1000 so I'm getting a lot of zeros in my series for those samples below 10,000
How can I correct this problem? Maybe setting the sample size as an argument of the program? If I repeat the program for the 4 sizes I'll have 4 wf and my program wouldn't be so efficient.
Thanks for the help,