1. A wheel of fortune has 15 possible results, with numbers from 1 through 15. The...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. A wheel of fortune has 15 possible results, with numbers from 1 through 15. The wheel is spun 10 times in a row. A player wins if a number higher than 15 is scored once, and a number lower than 3 is scored twice. • Write a code in a language of your choice (R, matlab, python or any other) that repeats this 10,000 times. In other words, you repeat the 10 spins of the wheel 10,000 times. Make a plot of the evolution of the probability that the player wins as a function of the amount of repetitions. In other words, you divide the amount of times the player has won by the amount of repetitions. For example: (a) Repetition 1: The player loses. The total amount of times the player has won is thus 0, and the probability that the player wins is thus 0/1. (b) Repetition 2: The player wins. The total amount of times the player has won is thus 1, and the probability that the player wins is thus 1/2. (c) Repetition 3: The player loses. The total amount of times the player has won is thus 1, and the probability that the player wins is thus 1/3. (d) Repetition 4: The player loses. The total amount of times the player has won is thus 1, and the probability that the player wins is thus 1/4. (e) Repetition 5: The player wins. The total amount of times the player has won is thus 2, and the probability that the player wins is thus 2/5. 1. A wheel of fortune has 15 possible results, with numbers from 1 through 15. The wheel is spun 10 times in a row. A player wins if a number higher than 15 is scored once, and a number lower than 3 is scored twice. • Write a code in a language of your choice (R, matlab, python or any other) that repeats this 10,000 times. In other words, you repeat the 10 spins of the wheel 10,000 times. Make a plot of the evolution of the probability that the player wins as a function of the amount of repetitions. In other words, you divide the amount of times the player has won by the amount of repetitions. For example: (a) Repetition 1: The player loses. The total amount of times the player has won is thus 0, and the probability that the player wins is thus 0/1. (b) Repetition 2: The player wins. The total amount of times the player has won is thus 1, and the probability that the player wins is thus 1/2. (c) Repetition 3: The player loses. The total amount of times the player has won is thus 1, and the probability that the player wins is thus 1/3. (d) Repetition 4: The player loses. The total amount of times the player has won is thus 1, and the probability that the player wins is thus 1/4. (e) Repetition 5: The player wins. The total amount of times the player has won is thus 2, and the probability that the player wins is thus 2/5.
Expert Answer:
Related Book For
Discrete and Combinatorial Mathematics An Applied Introduction
ISBN: 978-0201726343
5th edition
Authors: Ralph P. Grimaldi
Posted Date:
Students also viewed these mechanical engineering questions
-
Write a program in the language of your choice that behaves differently if the language used name equivalence than if it used structural equivalence.
-
Write a code in C for: A positive (strictly greater than zero) integer is called nice if it is of the form d00.0. In other words, a positive integer is nice if all its digits except the leftmost...
-
Write a code in C. Let d( n ) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n ). If d( a ) = b and d( b ) = a , where a b , then a and b are an amicable...
-
Company D is a merchandiser of MLB Hats. One of their biggest customers calls Company D and expresses concerns over their ability to pay the $20,000 owed to Company D. Company D agrees to covert the...
-
Sheaves Corporation economists estimate that a good business environment and a bad business environment are equally likely for the coming year. The managers of Sheaves must choose between two...
-
(a) If the intrinsic spin angular momentum S of the earth had the same limitations as that of the electron, what would be the angular velocity of our planet's spin on its axis? To get a reasonable...
-
Suppose our prior belief is is just as likely to be below 8 as it is to be above 8. (Our prior distribution g() has median 8.) Determine an S x an inverse chi-squared(k) that matches our prior...
-
Cash budget (appendix.) Refer to the information in problem 6-33. Assume the following: Pet Transport (PT) does not make any sales on credit PT sells only to the public; aid accepts cash and credit...
-
1 Define Management? Explain its features, importance and nature? 2 Briefly explain about functions of management 3 Define leadership and explain leadership styles? 4 Briefly explain about decision...
-
Assess the claim that the term public administration is difficult to define.
-
A bicyclist is riding on a path modeled by the function f(x) = 0.08x, where x and f(x) are measured in miles. Find the rate of change of elevation at x = 2.
-
Arthur, a US citizen, received a dividend of $350,000 from his 10 percent owned Greece subsidiary. The Greece subsidiary previously had Subpart F income of $1,000,000 reported to him the year before...
-
Suppose an electricity generating firm exists with the following cost functions, C(Q) = 2Q^2 + 3Q + 72, FC = 72, MC(Q) = 4Q + 3, AC(Q) = 2Q + 3 + (72/Q), AVC(Q) = 2Q + 3 Graph the AC(Q), the AVC(Q),...
-
Some of the key differences in the basis of preparation of the two financial annual reports for mb and gm refer to what you learned in the earlier modules of this course and what you learned in this...
-
What personality theories can I compare to learned helplessness theory and positive psychology? Is positive psychology considered a theory, or a branch of psychology?
-
1.What is the importance of ethical behavior in the field of accounting? 2. What are some common ethical dilemmas that accountants might face in their profession? 3. How does the concept of...
-
Ethics in Business Communications use this as the example...
-
Kims Konstructions has assembled the following data for a proposed straw-reinforced brick maker (SRBM): SRBM Cost: $26,000 Life: 5 years Revenue (p.a.) $11,000 Operating Expenses (p.a.) $3,000...
-
During the execution of a certain program segment (written in pseudocode), the user assigns to the integer variables x and n any (possibly different) positive integers. The segment shown in Fig. 4.8...
-
An alphabet of 40 symbols is used for transmitting messages in a communication system. How many distinct messages (lists of symbols) of 25 symbols can the transmitter generate if symbols can be...
-
Compute (n) for n equal to (a) 5186; (b) 5187; (c) 5188.
-
Refer to Problem 14.9. What would the loss of the seller of the put option be if, at expiration, XLB is trading at \($20?\) What would the profit of the seller be if, at expiration, XLB is trading at...
-
Ibrahim bought 200 shares of a stock trading in the Abu Dhabi Securities Exchange at AED 12 (United Arab Emirates dirham) per share. Over time, the price of the stock increased to AED 18 per share....
-
Which of the following methods is an investor least likely to use to terminate a futures contract? a. Exchanging cash for physical assets b. Permitting the contract to expire worthless c. Making an...
Study smarter with the SolutionInn App