Consider the following game in a game arcade. The probability of winning a game is p and hence loosing the game is 1 − p. In order to win a prize you are given three choices: • A: win at least once in 6 games; • B: win at least twice in 12 games; and • C: win at least 3 times in 18 games. 1. If p = 1 6 which of A, B, or C should you choose to maximize your probability of winning the prize? You are required to compute the probabilities for each option to justify your answer. 2. Using the formulas derived in part (1), write a R-code to compute (not simulate) and plot the probability of winning the prize for options A, B, and C for different values of p varying from 0.1 to 0.9 in increments of 0.1. Summarize your observation. Regarding the plot: i) All three curves should be drawn in the same plot, ii) Make sure that the three curves are distinguishable (using different line styles, colors, and/or markers), and iii) make sure to add a legend that identifies the curves for the three different options (A, B, and C). Once you use the plot function, you can use lines to add lines to the plot. Also, use the legend function to add the legend.

MATLAB: An Introduction with Applications
6th Edition
ISBN:9781119256830
Author:Amos Gilat
Publisher:Amos Gilat
Chapter1: Starting With Matlab
Section: Chapter Questions
Problem 1P
icon
Related questions
Question

Consider the following game in a game arcade. The probability of winning a game is p and hence loosing
the game is 1 − p. In order to win a prize you are given three choices:
• A: win at least once in 6 games;
• B: win at least twice in 12 games; and
• C: win at least 3 times in 18 games.
1. If p = 1
6 which of A, B, or C should you choose to maximize your probability of winning the prize?
You are required to compute the probabilities for each option to justify your answer.
2. Using the formulas derived in part (1), write a R-code to compute (not simulate) and plot the probability
of winning the prize for options A, B, and C for different values of p varying from 0.1 to 0.9 in
increments of 0.1. Summarize your observation.
Regarding the plot: i) All three curves should be drawn in the same plot, ii) Make sure that the three
curves are distinguishable (using different line styles, colors, and/or markers), and iii) make sure to
add a legend that identifies the curves for the three different options (A, B, and C). Once you use the
plot function, you can use lines to add lines to the plot. Also, use the legend function to add
the legend.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Similar questions
Recommended textbooks for you
MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
Statistics
ISBN:
9781119256830
Author:
Amos Gilat
Publisher:
John Wiley & Sons Inc
Probability and Statistics for Engineering and th…
Probability and Statistics for Engineering and th…
Statistics
ISBN:
9781305251809
Author:
Jay L. Devore
Publisher:
Cengage Learning
Statistics for The Behavioral Sciences (MindTap C…
Statistics for The Behavioral Sciences (MindTap C…
Statistics
ISBN:
9781305504912
Author:
Frederick J Gravetter, Larry B. Wallnau
Publisher:
Cengage Learning
Elementary Statistics: Picturing the World (7th E…
Elementary Statistics: Picturing the World (7th E…
Statistics
ISBN:
9780134683416
Author:
Ron Larson, Betsy Farber
Publisher:
PEARSON
The Basic Practice of Statistics
The Basic Practice of Statistics
Statistics
ISBN:
9781319042578
Author:
David S. Moore, William I. Notz, Michael A. Fligner
Publisher:
W. H. Freeman
Introduction to the Practice of Statistics
Introduction to the Practice of Statistics
Statistics
ISBN:
9781319013387
Author:
David S. Moore, George P. McCabe, Bruce A. Craig
Publisher:
W. H. Freeman