122k views
0 votes
40% of OatyPop cereal boxes contain a prize. Hanna plans to keep buying cereal until she gets a prize. What is the probability that Hannah only has to buy 3 or less boxes before getting a prize? if we use random number generator ranging from 1-10 and assign 1-4 as the prize and 5-10 as no prize, what is the best way to perform the simulation?

40% of OatyPop cereal boxes contain a prize. Hanna plans to keep buying cereal until-example-1
User Xmedeko
by
8.2k points

2 Answers

7 votes

Answer:

a) the one that says repeat 150 times

Explanation:

User Lars Fischer
by
8.7k points
6 votes

Solution:

Number of OatyPop cereal boxes Which contains a prize= 40 %

Number of OatyPop cereal boxes Which does not contains a prize=100%- 40 %= 60%

Probability that Hannah only has to buy 3 or less boxes before getting a prize= S + F S + F F S = 40 %+ 60 %× 40 % + 60 % ×60 %× 40 %

= 0.40 +0.24 + 0.144

= 0.788

(b): If we use random number generator ranging from 1-10 and assign 1-4 as the prize and 5-10 as no prize, the best way to perform the simulation is:

Option(A): Keep track of how many tries it takes before you see a 1,2,3,or 4.These represent the number of purchases it will take to get a prize.Repeat this 150 times.

Why this simulation is preferred because we have created the table such that getting number from [1-4] means winning a prize. So , we are not sure that only in 3 tries we will get a success, it takes more than 3 . So, success means either a number from [1-4], and each number has probability of
(1)/(15) if 150 trials will be performed.


User William Gross
by
8.1k points