Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default I need to set up a simulation

I need to set up a simulation that shows the probability that a pair of die
will land on 7 in 1000 trials. I have tried everything that I can and seem
so be stumped!!

Any help will be greatly appreciated. I have Monte Carlo add-in and crystal
ball.

Thanks,


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default I need to set up a simulation

How about the long way?

I put this in a new worksheet:

A1: Die #1
B1: Die #2
C1: Total

A2: =1+INT(RAND()*6)
B2: =1+INT(RAND()*6)
C2: =sum(a2:b2)

Each of those formulas will return a number from 1 to 6.

And then select A2:C2 and drag down to row 1001 (1000 rows)

Then I put 7 in D1.
and this formula in E1:
=COUNTIF(C2:C1001,D1)/COUNT(A2:A1001)

And you can rerun your simulation by hitting the F9 key (to recalc all those
=rand()'s and other formulas).

Janet wrote:

I need to set up a simulation that shows the probability that a pair of die
will land on 7 in 1000 trials. I have tried everything that I can and seem
so be stumped!!

Any help will be greatly appreciated. I have Monte Carlo add-in and crystal
ball.

Thanks,


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default I need to set up a simulation

Thank you so much! I posted in two areas just to make sure someone would
read it! You have saved the day!!!

Thank you!

"Dave Peterson" wrote:

How about the long way?

I put this in a new worksheet:

A1: Die #1
B1: Die #2
C1: Total

A2: =1+INT(RAND()*6)
B2: =1+INT(RAND()*6)
C2: =sum(a2:b2)

Each of those formulas will return a number from 1 to 6.

And then select A2:C2 and drag down to row 1001 (1000 rows)

Then I put 7 in D1.
and this formula in E1:
=COUNTIF(C2:C1001,D1)/COUNT(A2:A1001)

And you can rerun your simulation by hitting the F9 key (to recalc all those
=rand()'s and other formulas).

Janet wrote:

I need to set up a simulation that shows the probability that a pair of die
will land on 7 in 1000 trials. I have tried everything that I can and seem
so be stumped!!

Any help will be greatly appreciated. I have Monte Carlo add-in and crystal
ball.

Thanks,


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need to set up a simulation Janet Setting up and Configuration of Excel 1 July 6th 07 06:13 PM
Can you help me create this simulation avalpert Excel Discussion (Misc queries) 0 March 11th 06 08:26 PM
How can I speed up my VBA simulation?? Andy Excel Programming 4 December 3rd 05 05:16 PM
revenue simulation garfield Excel Discussion (Misc queries) 1 November 20th 05 09:58 AM
Car assign simulation L. Chung Excel Programming 1 April 8th 05 06:39 PM


All times are GMT +1. The time now is 07:57 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"