subject
Computers and Technology, 03.07.2020 18:01 gabbee

To play a game, you have a box containing 20 fair four-sided dice, with faces {1,2,3,4}. This bag also contains 15 fair six-sided dice (faces {1,2,3,4,5,6}) and 5 fair twenty-sided dice (faces {1,2,3,4,...,19,20}). Call these 3 classes of die "Four", "Six" and "Twenty" (or F, S, and T, for short). You grab one die at random from the box. Work the following problems by hand (and LaTeX your solutions) unless otherwise stated (but don't be afraid to simulate to check your result!).
Part A: You roll your die one time. What is the probability of the event 6R6, that you roll a 6? Include at least 4 decimal places in your final answer.
Solution:
Part B: Suppose you roll a 6. What is the probability that the die you chose from the box is a Six-sided die?
Solution:
Part C: Are the events 6R6 and S independent? Justify your answer using math.
Solution:
Part D: Suppose you roll your die n times and record each outcome. Obviously, if you roll 5 or 6 you know you did not pick a Four-sided die, and if you roll a 7 or higher, you must have picked a Twenty-sided die.
But, if you roll n times in a row and get only 1, 2, 3 or 4, you would have a stronger belief that you in fact grabbed one of the Four-sided dice. Let En be the event that you roll n rolls of 1, 2, 3 or 4 in a row. For example, one outcome in 3E3 is the sequence 2, 3, 1.
Given that you roll a single value of 1, 2, 3 or 4, what is the probability that you have grabbed a Four-sided die? That is, calculate by hand P(∣1)P(F∣E1).
Solution:
Part E: First, work out by hand a formula for the probability in general that you are rolling a Four-sided die, given that you have rolled n values in a row that are 1, 2, 3 or 4 (that is, En). So you want a formula for P(∣)P(F∣En) in terms of n.
Then, define and code a function prob_four to calculate P(∣)P(F∣En). This function should only take one positive integer argument, n.
Verify that your function is performing as expected by checking your answer to Part D when =1n=1.
Solution:
In [ ]:
def prob_four(n): # Your code here.
Part F: What is the smallest value of n successive rolls of 1, 2, 3 or 4 that would make you believe that there's a better-than-90% chance that the die you grabbed is Four-sided? Plugging larger and larger values for n into your prob_four function is a very reasonable way to check this.
In [ ]:
# Your code here.
Solution:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:00
Wich technology can a website use to allow you to listen to a concert live over the internet?
Answers: 3
question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 02:00
Read this excerpt from helen keller’s autobiography, the story of my life. have you ever been at sea in a dense fog, when it seemed as if a tangible white darkness shut you in, and the great ship, tense and anxious, groped her way toward the shore with plummet and sounding-line, and you waited with beating heart for something to happen? i was like that ship before my education began, only i was without compass or sounding-line, and had no way of knowing how near the harbour was. "light! give me light! " was the wordless cry of my soul, and the light of love shone on me in that very hour. . the morning after my teacher came she led me into her room and gave me a doll. the little blind children at the perkins institution had sent it and laura bridgman had dressed it; but i did not know this until afterward. when i had played with it a little while, miss sullivan slowly spelled into my hand the word "d-o-l-l." i was at once interested in this finger play and tried to imitate it. when i finally succeeded in making the letters correctly i was flushed with childish pleasure and pride. running downstairs to my mother i held up my hand and made the letters for doll. i did not know that i was spelling a word or even that words existed; i was simply making my fingers go in monkey-like imitation. in the days that followed i learned to spell in this uncomprehending way a great many words, among them pin, hat, cup and a few verbs like sit, stand and walk. based on this excerpt, which words best describe helen keller?
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
You know the right answer?
To play a game, you have a box containing 20 fair four-sided dice, with faces {1,2,3,4}. This bag al...
Questions
question
Mathematics, 12.02.2021 08:40
question
Mathematics, 12.02.2021 08:40
question
Engineering, 12.02.2021 08:40
question
English, 12.02.2021 08:40
question
Chemistry, 12.02.2021 08:40
Questions on the website: 13722367