[Thread Prev] [Thread Next]
Wendy,
You wrote:
>>You have piqued my curiosity, Mike. Would you be willing to share
with us your project using a slider in connection with generating
100,000 random samples? (either a description or the code or the
>>project itself as an attachment).
I doubt it is of much interest to anyone else. The program plots
the binomial distribution (theoretical distribution  (p + q)^n).
Where p is the probability an event will occur and n is the number of times
the event
could occur. In terms of the Galton board, which has been discussed recently,
the event could be a ball moving to the left on hitting a pin, p=50%,
and n is the number of pins a ball will hit on its descent.
In terms of the sliders in the program:
n = range
p = prob
num.sam = number of balls falling/1000.
The larger n the larger num.sam to give a smooth plot.
Mike
Attachment:
binomial_plot1.mw2
Description: Binary data
Previous by thread:
RE: variables
Next by thread:
dotimes
To save an attachment to your computer, PC users should rightclick (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the popup menu. A window will then pop up in which you can choose a location for the file.
