Program a simulation of N coin flips that outputs the number each of head and tails. You
Fantastic news! We've Found the answer you've been seeking!
Question:
Program a simulation of N coin flips that outputs the number each of head and tails. You may use any packages you can find (the Python package random will probably be useful). Your simulation should allow you to specify a probability of heads other than 0.50 and should allow you to specify N.
Comment briefly on how well your simulation's results match up with what you would have expected to get. If you use a larger N, do you get closer to what you expect? (Try N = 10, 100, 1000, and 10000 to see what happens.)
Related Book For
Introduction to Operations Research
ISBN: 978-1259162985
10th edition
Authors: Frederick S. Hillier, Gerald J. Lieberman
Posted Date: