1) Consider a game where you role three fair dice and count the total. The dice are eight, ten and twelve sided respectively. (a) Write an R function that will compute one round of this game. Have it return the values of the three dice and their total. Store the dice roles by the number of sides of the dice (smallest to largest). (b) Using the code in (a) write a function that will simulate n rounds of the game. (c) Suppose you win another role if the total of the three dice roles is less than or equal to 14. Write an R function that will compute the proportion of roles that meet this criteria after n rounds.
1) Consider a game where you role three fair dice and count the total. The dice are eight, ten and twelve sided respectively. (a) Write an R function that will compute one round of this game. Have it return the values of the three dice and their total. Store the dice roles by the number of sides of the dice (smallest to largest). (b) Using the code in (a) write a function that will simulate n rounds of the game. (c) Suppose you win another role if the total of the three dice roles is less than or equal to 14. Write an R function that will compute the proportion of roles that meet this criteria after n rounds.
A First Course in Probability (10th Edition)
10th Edition
ISBN:9780134753119
Author:Sheldon Ross
Publisher:Sheldon Ross
Chapter1: Combinatorial Analysis
Section: Chapter Questions
Problem 1.1P: a. How many different 7-place license plates are possible if the first 2 places are for letters and...
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON
A First Course in Probability (10th Edition)
Probability
ISBN:
9780134753119
Author:
Sheldon Ross
Publisher:
PEARSON