Page 266: 9, 25
- Again, for each situation, simply write a procedure for a simulation just as we did in class.
- A full procedure would answer questions a,b,c for #9
- For 25, we can only write the procedure; tomorrow we will learn how to actually simulate and interpret our results
Also, don't forget your AP exam paperwork! (Due March 2nd)
- Get it in sooner rather than later so you don't have to worry about it!
Oh...and here are the homework answers--this might be more helpful (or less confusing) than the back of the book!
9.) You're pretty sure that your candidate for class president has about 55% of the votes in the entire school. But you're worried that only 100 students will show up to vote. How often will the underdog (the one with 45%) win? Set up a simulation.
1.) Generate two digit numbers from 00-99.
2.) Let 00-54 represent votes for the favorite (your candidate)
Let 55-99 represent votes for the underdog.
3.) Generate 100 random numbers; record who each voter (random number) votes for (F or U).
4.) Next, count the number of votes for each (favorite or underdog) and determine the winner of the election.
5.) Repeat. Conduct many trials.
6.) Find how often (out of the total # of trials) the underdog will win (or the probability the underdog wins).
25.) Many couples want to have both a boy and a girl. If they decide to continue to have children until they have one child of each gender, what would the average family size be? Assume that boys and girls are equally likely.
1.) Generate one digit numbers from 0 - 9. (OR, generate 2 digit numbers from 00-99).
2.) Let 0-4 represent boys, and 5-9 represent girls (OR, let 00-49 represent boys, and 50-99 represent girls).
3.) Generate random numbers until a family has both a boy and a girl.
4.) Record the family size.
5.) Repeat; conduct many (20) trials.
6.) Find the average family size after 20 trials.
No comments:
Post a Comment