2) In creating a video game you program a basketball player to have a 70% chance of making a free throw.
a. Design and conduct a simulation to simulate the number of free throws made in a game if they shoot 6 free throws. Repeat the simulation for a total of 5 times. . Use the following digits:
18974 15864 63856 64877 06156 45468
b. How many free throws do you expect them to make?

Respuesta :

So for the part a) Let 0-6 stand for a score and 7-9 stand for a miss. This means 7 numbers that mean score and 3 numbers that mean miss, which gives it a 70% chance. Take 6 of the digits for each of the 5 simulations.
189741- 3 scores
586463- 5 scores
856648- 4 scores
770615- 4 scores
645468- 5 scores
Now for the part b. 
The expected number of free throws is the probability of one free throw it means 70% times the number of free throws. So what we do is 6 * 0.7 = 4.2 so you expect about 4 free throws out of the 6. As in the simulations above, the number of scores were all close to 4.